Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructor property to Object #1403

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,13 @@ extern "C" {
pub fn assign3(target: &Object, source1: &Object, source2: &Object, source3: &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
/// object to provide the newly created object's prototype.
///
Expand Down