Bug 160637

Summary: [Web IDL] Add support for [Unscopable] extended attribute
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: BindingsAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, cgarcia, commit-queue, darin, dbates, esprehn+autocc, ggaren, kangil.han, kondapallykalyan, rniwa, sam
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: http://heycam.github.io/webidl/#Unscopable
Attachments:
Description Flags
Patch
none
Patch none

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.