Closed
Bug 1002741
Opened 10 years ago
Closed 6 years ago
Give nicer error when trying to use 'let' in Web content
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: botond, Unassigned)
References
Details
I just tried to use 'let' in a plain mochitest, without realizing that it is a new language feature that's not available yet by default. The error I got was: TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - SyntaxError: missing ; before statement at http://mochi.test:8888/tests/gfx/layers/apz/test/test_bug982141.html?autorun=1&closeWhenDone=1&logFile=%2Fdata%2Flocal%2Ftests%2Flog%2Fmochitest.log&fileLevel=INFO&consoleLevel=INFO&hideResultsTable=1&dumpOutputDirectory=%2Ftmp:15 JavaScript error: http://mochi.test:8888/tests/gfx/layers/apz/test/test_bug982141.html?autorun=1&closeWhenDone=1&logFile=%2Fdata%2Flocal%2Ftests%2Flog%2Fmochitest.log&fileLevel=INFO&consoleLevel=INFO&hideResultsTable=1&dumpOutputDirectory=%2Ftmp, line 15: missing ; before statement I think we could give a more helpful error in a situation like this.
Updated•10 years ago
|
Summary: Give nicer error when trying to use 'let' in plain mochitest → Give nicer error when trying to use 'let' in Web content
Updated•10 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Comment 1•6 years ago
|
||
Resolving as WFM because |let| is now enabled by default.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•