summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/00_syntax/11_misc_literals
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-11 20:11:01 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-11 20:11:01 +0200
commit3f801169760a1817876648e6d22288ebd8ce97b8 (patch)
tree53f2627eef96b51f08280e8babccd4a707cfd3fe /tests/custom/00_syntax/11_misc_literals
parentf20b56ff64b3144d618d228fbe1a3d07aad96450 (diff)
compiler: fix local for-loop initializer variable declarations
In a loop statement like `for (let x = 1, y = 2; ...)` the initialization statement was incorrectly interpreted as `let x = 1; y = 2` instead of the correct `let ..., y = 2`, triggering reference error exceptions in strict mode. Solve the issue by continue parsing the rest of the comma expression seqence as declaration list expression when the initializer is compiled in local mode. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/00_syntax/11_misc_literals')
0 files changed, 0 insertions, 0 deletions