[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:15:21 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=160955
--- Comment #15 from Saam Barati <sbarati at apple.com> ---
(In reply to comment #14)
> Comment on attachment 286755 [details]
> 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) { }
> }
> }
Correction: *when we try to write*, we should not successfully write to it.
--
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/7ede94c2/attachment.html>
More information about the webkit-unassigned
mailing list