mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
feat: add CanGc argument in get_dictionary_property (#36156)
* feat: add CanGc argument in get_dictionary_property Signed-off-by: Arya Nair <aryaajitnair@gmail.com> * feat: add CanGc argument in get_dictionary_property Signed-off-by: Arya Nair <aryaajitnair@gmail.com> --------- Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
This commit is contained in:
parent
5a5e49ce47
commit
80fc64d063
6 changed files with 29 additions and 15 deletions
|
@ -78,7 +78,7 @@ impl ByteLengthQueuingStrategyMethods<crate::DomTypeHolder> for ByteLengthQueuin
|
|||
let fun = native_fn!(byte_length_queuing_strategy_size, c"size", 1, 0);
|
||||
// Step 3. Set globalObject’s byte length queuing strategy size function to
|
||||
// a Function that represents a reference to F,
|
||||
// with callback context equal to globalObject’s relevant settings object.
|
||||
// with callback context equal to globalObject's relevant settings object.
|
||||
global.set_byte_length_queuing_strategy_size(fun.clone());
|
||||
Ok(fun)
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ pub(crate) unsafe fn byte_length_queuing_strategy_size(
|
|||
object.handle(),
|
||||
"byteLength",
|
||||
MutableHandleValue::from_raw(args.rval()),
|
||||
CanGc::note(),
|
||||
)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue