mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 21:47:00 -04:00
parent
1937d30eba
commit
771acbab02
1 changed files with 5 additions and 6 deletions
|
@ -98,12 +98,11 @@ impl Object {
|
||||||
unsafe { scope.to_local(ptr) }.unwrap()
|
unsafe { scope.to_local(ptr) }.unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a JavaScript object with the given properties, and
|
/// Creates a JavaScript object with the given properties, and the given
|
||||||
/// a the given prototype_or_null (which can be any JavaScript
|
/// prototype_or_null (which can be any JavaScript value, and if it's null,
|
||||||
/// value, and if it's null, the newly created object won't have
|
/// the newly created object won't have a prototype at all). This is similar
|
||||||
/// a prototype at all). This is similar to Object.create().
|
/// to Object.create(). All properties will be created as enumerable,
|
||||||
/// All properties will be created as enumerable, configurable
|
/// configurable and writable properties.
|
||||||
/// and writable properties.
|
|
||||||
pub fn with_prototype_and_properties<'sc>(
|
pub fn with_prototype_and_properties<'sc>(
|
||||||
scope: &mut impl ToLocal<'sc>,
|
scope: &mut impl ToLocal<'sc>,
|
||||||
prototype_or_null: Local<'sc, Value>,
|
prototype_or_null: Local<'sc, Value>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue