Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upThe object Element.prototype[Symbol.unscopables] itself has a prototype but shouldn't #25022
Labels
Projects
Comments
|
https://heycam.github.io/webidl/#interface-prototype-object 8.1 tells us to create this object with a null prototype. interface.rs create_unscopable_object calls JS_NewPlainObject, which is the wrong constructor: it's creating a "plain" object in the sense that {} is a plain object, having the default Object.prototype rather than the unusual special case of a completely absent prototype. I'll see if JS_NewObject(*cx, ptr::null()), as seen in create_callback_interface_object, has the desired result. Update: No, it did not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WPT WebIDL/emcascript-binding/interface-prototype-object.html tests this and fails; other browsers pass.