[Webkit-unassigned] [Bug 160955] [ES2016] Allow assignment in for-in head in not-strict mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 23 14:14:52 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=160955
Saam Barati <sbarati at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #286755|review?, commit-queue? |review+, commit-queue-
Flags| |
--- Comment #14 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 286755
--> https://bugs.webkit.org/attachment.cgi?id=286755
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=286755&action=review
> JSTests/stress/for-in-tests.js:161
> + var foo = function(a, b, first) {
> + {
> + let p = 'some-value';
> + for (var p = b in a) {}
> + if (first)
> + return p;
> + }
> + return p;
> + };
can you also add this test to make sure if throws a runtime exception when we write to the const variable:
foo = function(a, b) {
{
const p = 'some-value';
for (var p = b in a) { }
}
}
--
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/20160823/c21693d0/attachment.html>
More information about the webkit-unassigned
mailing list