[Webkit-unassigned] [Bug 175432] [JSC] Use @putByValDirect instead array.prototyp. at push in builtins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 14 12:36:46 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=175432

--- Comment #1 from GSkachkov <gskachkov at gmail.com> ---
It seems that this task will require anther approach, than just replace @push by @putByValDirect. For instance Object.entries, that is implemented in builtins\ObjectConstructor.js, used [Set] operation somewhere in getOwnPropertyNames, tested by following code:
```
Object.defineProperty(Array.prototype, '0', { 
    set : function (x) { throw new Error('Should not be raised:' + x); }
});
```
Possible we need some internal data structure that closed to Array and implement push, slice and access to index item, but did not open its API

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170814/e4cdb763/attachment.html>


More information about the webkit-unassigned mailing list