Closed Bug 678961 Opened 13 years ago Closed 13 years ago

The nested JS parser in GCLI does not handle nested { and }

Categories

(DevTools :: General, defect)

defect
Not set
normal

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.
We should consider at least detecting this problem and warning the user rather than acting bizarrely.
Assignee: nobody → jwalker
Blocks: GCLI-JS
No longer blocks: GCLI-FUTURE
See also bug 683121
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.