mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
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>
This commit is contained in:
parent
60eb7c923d
commit
4ae72ecb8e
2 changed files with 4 additions and 73 deletions
|
@ -18,9 +18,9 @@ use js::jsapi::{
|
||||||
JS_AtomizeAndPinString, JS_GetFunctionObject, JS_GetProperty, JS_IterateCompartments,
|
JS_AtomizeAndPinString, JS_GetFunctionObject, JS_GetProperty, JS_IterateCompartments,
|
||||||
JS_NewFunction, JS_NewGlobalObject, JS_NewObject, JS_NewPlainObject, JS_NewStringCopyN,
|
JS_NewFunction, JS_NewGlobalObject, JS_NewObject, JS_NewPlainObject, JS_NewStringCopyN,
|
||||||
JS_SetReservedSlot, JS_WrapObject, JSAutoRealm, JSClass, JSClassOps, JSContext,
|
JS_SetReservedSlot, JS_WrapObject, JSAutoRealm, JSClass, JSClassOps, JSContext,
|
||||||
JSFUN_CONSTRUCTOR, JSFunctionSpec, JSObject, JSPROP_PERMANENT, JSPROP_READONLY,
|
JSFUN_CONSTRUCTOR, JSFunctionSpec, JSObject, JSPROP_ENUMERATE, JSPROP_PERMANENT,
|
||||||
JSPROP_RESOLVING, JSPropertySpec, JSString, JSTracer, ObjectOps, OnNewGlobalHookOption,
|
JSPROP_READONLY, JSPROP_RESOLVING, JSPropertySpec, JSString, JSTracer, ObjectOps,
|
||||||
SymbolCode, TrueHandleValue, Value, jsid,
|
OnNewGlobalHookOption, SymbolCode, TrueHandleValue, Value, jsid,
|
||||||
};
|
};
|
||||||
use js::jsval::{JSVal, NullValue, PrivateValue};
|
use js::jsval::{JSVal, NullValue, PrivateValue};
|
||||||
use js::rust::wrappers::{
|
use js::rust::wrappers::{
|
||||||
|
@ -481,7 +481,7 @@ fn create_unscopable_object(cx: SafeJSContext, names: &[&CStr], mut rval: Mutabl
|
||||||
rval.handle(),
|
rval.handle(),
|
||||||
name.as_ptr(),
|
name.as_ptr(),
|
||||||
HandleValue::from_raw(TrueHandleValue),
|
HandleValue::from_raw(TrueHandleValue),
|
||||||
JSPROP_READONLY as u32,
|
JSPROP_ENUMERATE as u32,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
69
tests/wpt/meta/dom/idlharness.window.js.ini
vendored
69
tests/wpt/meta/dom/idlharness.window.js.ini
vendored
|
@ -1,10 +1,4 @@
|
||||||
[idlharness.window.html?exclude=Node]
|
[idlharness.window.html?exclude=Node]
|
||||||
[Element interface: operation replaceWith((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation prepend((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AbortSignal must be primary interface of new AbortController().signal]
|
[AbortSignal must be primary interface of new AbortController().signal]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -35,54 +29,30 @@
|
||||||
[AbortController interface: operation abort()]
|
[AbortController interface: operation abort()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Element interface: operation prepend((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AbortController interface: attribute signal]
|
[AbortController interface: attribute signal]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CharacterData interface: operation before((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AbortSignal interface: attribute aborted]
|
[AbortSignal interface: attribute aborted]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Element interface: operation after((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CharacterData interface: existence and properties of interface prototype object's @@unscopables property]
|
[CharacterData interface: existence and properties of interface prototype object's @@unscopables property]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CharacterData interface: operation remove()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AbortController interface: new AbortController() must inherit property "signal" with the proper type]
|
[AbortController interface: new AbortController() must inherit property "signal" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[AbortController interface: new AbortController() must inherit property "abort()" with the proper type]
|
[AbortController interface: new AbortController() must inherit property "abort()" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Element interface: attribute slot]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: existence and properties of interface prototype object's @@unscopables property]
|
[DocumentType interface: existence and properties of interface prototype object's @@unscopables property]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CharacterData interface: operation replaceWith((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation replaceWith((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[EventTarget interface: calling dispatchEvent(Event) on new AbortController().signal with too few arguments must throw TypeError]
|
[EventTarget interface: calling dispatchEvent(Event) on new AbortController().signal with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DocumentFragment interface: existence and properties of interface prototype object's @@unscopables property]
|
[DocumentFragment interface: existence and properties of interface prototype object's @@unscopables property]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DocumentType interface: operation before((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[AbortSignal interface: new AbortController().signal must inherit property "aborted" with the proper type]
|
[AbortSignal interface: new AbortController().signal must inherit property "aborted" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -104,51 +74,15 @@
|
||||||
[AbortSignal interface: existence and properties of interface prototype object]
|
[AbortSignal interface: existence and properties of interface prototype object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Element interface: operation remove()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentFragment interface: operation replaceChildren((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[NodeFilter interface: existence and properties of interface object]
|
[NodeFilter interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Stringification of new AbortController().signal]
|
[Stringification of new AbortController().signal]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CharacterData interface: operation after((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation replaceChildren((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentFragment interface: operation prepend((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation replaceChildren((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: operation append((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation remove()]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DocumentType interface: operation after((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: existence and properties of interface prototype object's @@unscopables property]
|
[Element interface: existence and properties of interface prototype object's @@unscopables property]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DocumentFragment interface: operation append((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation append((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Element interface: operation before((Node or DOMString)...)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[XPathNSResolver interface: document.createNSResolver(document.body) must inherit property "lookupNamespaceURI(DOMString?)" with the proper type]
|
[XPathNSResolver interface: document.createNSResolver(document.body) must inherit property "lookupNamespaceURI(DOMString?)" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -454,6 +388,3 @@
|
||||||
|
|
||||||
[Element interface: element must inherit property "customElementRegistry" with the proper type]
|
[Element interface: element must inherit property "customElementRegistry" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
[idlharness.window.html?include=Node]
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue