mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 06:02:13 +00:00
Merge pull request #1403 from RReverser/expose-constructor
Add `constructor` property to `Object`
This commit is contained in:
commit
1121393203
@ -1878,6 +1878,13 @@ extern "C" {
|
|||||||
pub fn assign3(target: &Object, source1: &Object, source2: &Object, source3: &Object)
|
pub fn assign3(target: &Object, source1: &Object, source2: &Object, source3: &Object)
|
||||||
-> Object;
|
-> Object;
|
||||||
|
|
||||||
|
/// The constructor property returns a reference to the Object constructor
|
||||||
|
/// function that created the instance object.
|
||||||
|
///
|
||||||
|
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
|
||||||
|
#[wasm_bindgen(method, getter)]
|
||||||
|
pub fn constructor(this: &Object) -> Function;
|
||||||
|
|
||||||
/// The Object.create() method creates a new object, using an existing
|
/// The Object.create() method creates a new object, using an existing
|
||||||
/// object to provide the newly created object's prototype.
|
/// object to provide the newly created object's prototype.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user