History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-12311
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Charles Wise
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

JavaScript continuations aren't parsed correctly

Created: 27 Nov 06 18:46   Updated: 29 Nov 06 00:11
Component/s: JavaScript
Fix Version/s: Demetra 6.0.3, Selena 6656

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,107
Fixed in build: 6,575
Severity: High


 Description  « Hide
This is an old bug that resurfaced in the 6.x series. JavaScript string continuations aren't parsed correctly. They are always flagged as syntax errors. The following should be valid:

var x = '\
continue me';

But it is flagged as an unterminated string.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 28 Nov 06 19:30
ECMA-262 does not allow line terminator within literal:

SingleStringCharacter ::
SourceCharacter but not single-quote ' or backslash \ or LineTerminator
\ EscapeSequence


Maxim Mossienko - 28 Nov 06 19:45
But 5.1 does not flag the error