[Webkit-unassigned] [Bug 146339] New: Array destructuring seems to not follow the ES6 spec
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 26 02:02:26 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=146339
Bug ID: 146339
Summary: Array destructuring seems to not follow the ES6 spec
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bzbarsky at mit.edu
Consider this testcase:
var y = "FAIL";
Object.defineProperty(Array.prototype, 0, { get: function() { y = "PASS"; } });
var [,x] = [,1];
alert(y);
per spec, this should alert "PASS". In Safari (and in a WebKit nightly), this alerts "FAIL".
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150626/40e09c85/attachment.html>
More information about the webkit-unassigned
mailing list