ES6: Support Array.of construction
<rdar://problem/19513655>
Created attachment 244877 [details] Patch
Comment on attachment 244877 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=244877&action=review r=me with two fixes below > Source/JavaScriptCore/runtime/ArrayConstructor.cpp:55 > + of arrayConstructorOf DontEnum|Function 1 Length should be 0, not 1. > Source/JavaScriptCore/runtime/ArrayConstructor.cpp:139 > + result->putDirectIndex(exec, i, args.at(i)); You should add a line to your testcase that verifies that Array.of does not invoke a setter for the index 0.
Comment on attachment 244877 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=244877&action=review > Source/JavaScriptCore/ChangeLog:9 > + Add and implementation of Array.of, described in 22.1.2.3 of the ES6 Nit: "Add and" -> "Add an"
Committed r178662: <http://trac.webkit.org/changeset/178662>
(In reply to comment #4) > > Nit: "Add and" -> "Add an" Oops!
*** Bug 131699 has been marked as a duplicate of this bug. ***