Closed Bug 23610 Opened 25 years ago Closed 25 years ago

JavaScript mishandles format-control characters

Categories

(Core :: JavaScript Engine, defect, P3)

All
Mac System 8.6
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: waldemar, Assigned: rogerl)

Details

(Keywords: js1.5)

ECMAScript Edition 3 section 7.1 requires JavaScript to ignore format-control characters (Unicode category Cf) that occur in the program source. Our engine generates syntax errors for them: js> eval("2\u200E4") 7: SyntaxError: illegal character: 7: 24 7: .^ The correct answer here is 24.
Assignee: mccabe → rogerl
Forwarding to Roger.
Keywords: js1.5
testcsae ecma_3/Unicode/uc-001.js added
Fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Marking Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.