Closed
Bug 678961
Opened 14 years ago
Closed 13 years ago
The nested JS parser in GCLI does not handle nested { and }
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jwalker, Assigned: jwalker)
References
Details
For example:
> echo { (function() { return 'foo'; })() }
Requisition._tokenize will fail due to the nested { and }.
Commonly we expect people to use the scratchpad for complex JS expressions, and to properly comprehend this issue isn't just as simple as counting the nesting levels (due to strings, regexes, comments and other dangers)
The full solution would involve uglify/narcussus or the embedded JS parser in FF.
Assignee | ||
Comment 1•14 years ago
|
||
We should consider at least detecting this problem and warning the user rather than acting bizarrely.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → jwalker
Assignee | ||
Comment 2•13 years ago
|
||
See also bug 683121
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•