0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-01 16:51:32 -05:00

Reflow comment and fix a typo in it (#391)

Closes: #374
This commit is contained in:
Bert Belder 2020-05-31 23:01:46 +02:00
parent 1937d30eba
commit 771acbab02
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -98,12 +98,11 @@ impl Object {
unsafe { scope.to_local(ptr) }.unwrap()
}
/// Creates a JavaScript object with the given properties, and
/// a the given prototype_or_null (which can be any JavaScript
/// value, and if it's null, the newly created object won't have
/// a prototype at all). This is similar to Object.create().
/// All properties will be created as enumerable, configurable
/// and writable properties.
/// Creates a JavaScript object with the given properties, and the given
/// prototype_or_null (which can be any JavaScript value, and if it's null,
/// the newly created object won't have a prototype at all). This is similar
/// to Object.create(). All properties will be created as enumerable,
/// configurable and writable properties.
pub fn with_prototype_and_properties<'sc>(
scope: &mut impl ToLocal<'sc>,
prototype_or_null: Local<'sc, Value>,