Illegal break statement message displayed in wrong line
Reported by
lukas19...@gmail.com,
May 13 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Steps to reproduce the problem:
1. Run the attached code
function fn()
{
break;
}
fn();
What is the expected behavior?
An illegal break statement should be reported in line 3 (the line containing the break statement).
What went wrong?
The error is displayed at the call to the function containing the break statement (line 6).
Did this work before? N/A
Chrome version: 66.0.3359.170 Channel: n/a
OS Version: x86_64 Linux 4.16.8-1-ARCH
Flash Version:
,
May 14 2018
Thanks for filing the issue! Able to reproduce the issue on reported chrome version 66.0.3359.170 and on the latest canary 68.0.3430.0 using Mac 10.13.1, Ubuntu 14.04 and Windows 10. As the issue seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as Untriaged.
,
May 16 2018
,
May 23 2018
I think this is fine as it is. Sathya, what do you think?
,
May 23 2018
+marja This is because our pre parser isn't smart enough to throw all early errors. The current behavior isn't spec compatible, but making the pre parser smarter comes with performance cost. Related: https://bugs.chromium.org/p/v8/issues/detail?id=5663 We could re-evaluate this in the future but this is WontFix for now. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by krajshree@chromium.org
, May 14 2018