Comment #1 on issue 4373 by [email protected]: Non-reference
expression on left-hand side in for loop initializer should be a SyntaxError
https://code.google.com/p/v8/issues/detail?id=4373#c1
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/9b15445e6d4a3cb9b1655b9e57ac3e147118195a
commit 9b15445e6d4a3cb9b1655b9e57ac3e147118195a
Author: caitpotter88 <[email protected]>
Date: Sat Aug 15 17:57:01 2015
[parser] make kInvalidLhsInFor a SyntaxError
Second item in section 13.7.5.1 states that the error should be a
SyntaxError, when previously CheckAndRewriteReferenceExpression
would always emit a ReferenceError.
BUG=v8:4373
R=adamk, rossberg
LOG=N
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1292393002
Cr-Commit-Position: refs/heads/master@{#30184}
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/src/parser.cc
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/src/preparser.cc
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/src/preparser.h
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/message/for-loop-invalid-lhs.out
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/message/new-target-for-loop.out
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/mjsunit/harmony/new-target.js
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/mjsunit/invalid-lhs.js
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/webkit/fast/js/parser-syntax-check-expected.txt
[modify]
http://crrev.com/9b15445e6d4a3cb9b1655b9e57ac3e147118195a/test/webkit/fast/js/parser-syntax-check.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.