RESOLVED FIXED 160637
[Web IDL] Add support for [Unscopable] extended attribute
https://bugs.webkit.org/show_bug.cgi?id=160637
Summary [Web IDL] Add support for [Unscopable] extended attribute
Chris Dumez
Reported 2016-08-06 15:10:56 PDT
Add support for [Unscopable] extended attribute: - http://heycam.github.io/webidl/#Unscopable
Attachments
Patch (9.78 KB, patch)
2016-08-06 15:28 PDT, Chris Dumez
no flags
Patch (9.75 KB, patch)
2016-08-06 19:00 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-08-06 15:28:38 PDT
Darin Adler
Comment 2 2016-08-06 18:36:15 PDT
Comment on attachment 285501 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285501&action=review > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2186 > + push(@implContent, " JSObject* unscopables = constructEmptyObject(globalObject()->globalExec(), globalObject()->nullPrototypeObjectStructure());\n"); I would use a reference for this. I know we don’t do that in JavaScriptCore itself, but I would like to do that in bindings. > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2188 > + push(@implContent, " unscopables->putDirect(vm, Identifier::fromString(&vm, \"${unscopable}\"), jsBoolean(true));\n"); Braces are optional in ${unscopable} here and I would have omitted them. > Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:1353 > + JSObject* unscopables = constructEmptyObject(globalObject()->globalExec(), globalObject()->nullPrototypeObjectStructure()); Ditto.
Chris Dumez
Comment 3 2016-08-06 19:00:45 PDT
WebKit Commit Bot
Comment 4 2016-08-06 19:30:32 PDT
Comment on attachment 285514 [details] Patch Clearing flags on attachment: 285514 Committed r204234: <http://trac.webkit.org/changeset/204234>
WebKit Commit Bot
Comment 5 2016-08-06 19:30:40 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.