[JSC] Array.from() and Array.of() try to build objects even if "this" is not a constructor
Created attachment 283265 [details] Patch
Comment on attachment 283265 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=283265&action=review r=me > Source/JavaScriptCore/ChangeLog:5 > + Nice. And PromiseConstructor.js's FIXME should be also fixed in the other patch. > Source/JavaScriptCore/builtins/ArrayConstructor.js:64 > + var result = @isConstructor(thisObj) ? @Object(new thisObj()) : []; Is this @Object() necessary? I think [[Construct]] is guaranteed that it always returns an object. > Source/JavaScriptCore/builtins/ArrayConstructor.js:90 > + var result = @isConstructor(thisObj) ? @Object(new thisObj(arrayLikeLength)) : new @Array(arrayLikeLength); Ditto.
Created attachment 283369 [details] Patch for landing
Comment on attachment 283369 [details] Patch for landing Clearing flags on attachment: 283369 Committed r203101: <http://trac.webkit.org/changeset/203101>
All reviewed patches have been landed. Closing bug.