diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-05-24 18:02:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-24 16:02:08 +0000 |
commit | 4ae72ecb8ea9af2d1e8a6be537f7616e7ecaf8ab (patch) | |
tree | 59fcd6457d21b54657a49f7aab3b9fb86d41bd07 /components/script_bindings | |
parent | 60eb7c923dbb0da826e348ff0765076c7546c8f3 (diff) | |
download | servo-4ae72ecb8ea9af2d1e8a6be537f7616e7ecaf8ab.tar.gz servo-4ae72ecb8ea9af2d1e8a6be537f7616e7ecaf8ab.zip |
Make unscopable objects writable and enumerable (#37119)
Testing: Covered by existing web platform tests
Fixes: https://github.com/servo/servo/issues/37118
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script_bindings')
-rw-r--r-- | components/script_bindings/interface.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script_bindings/interface.rs b/components/script_bindings/interface.rs index 08ee0a4f420..2491924d0c0 100644 --- a/components/script_bindings/interface.rs +++ b/components/script_bindings/interface.rs @@ -18,9 +18,9 @@ use js::jsapi::{ JS_AtomizeAndPinString, JS_GetFunctionObject, JS_GetProperty, JS_IterateCompartments, JS_NewFunction, JS_NewGlobalObject, JS_NewObject, JS_NewPlainObject, JS_NewStringCopyN, JS_SetReservedSlot, JS_WrapObject, JSAutoRealm, JSClass, JSClassOps, JSContext, - JSFUN_CONSTRUCTOR, JSFunctionSpec, JSObject, JSPROP_PERMANENT, JSPROP_READONLY, - JSPROP_RESOLVING, JSPropertySpec, JSString, JSTracer, ObjectOps, OnNewGlobalHookOption, - SymbolCode, TrueHandleValue, Value, jsid, + JSFUN_CONSTRUCTOR, JSFunctionSpec, JSObject, JSPROP_ENUMERATE, JSPROP_PERMANENT, + JSPROP_READONLY, JSPROP_RESOLVING, JSPropertySpec, JSString, JSTracer, ObjectOps, + OnNewGlobalHookOption, SymbolCode, TrueHandleValue, Value, jsid, }; use js::jsval::{JSVal, NullValue, PrivateValue}; use js::rust::wrappers::{ @@ -481,7 +481,7 @@ fn create_unscopable_object(cx: SafeJSContext, names: &[&CStr], mut rval: Mutabl rval.handle(), name.as_ptr(), HandleValue::from_raw(TrueHandleValue), - JSPROP_READONLY as u32, + JSPROP_ENUMERATE as u32, )); } } |