If \u is not followed by four hex characters it must be a syntax error (mutatis mutandis for \x)

RESOLVED FIXED in mozilla7

Status

()

Core
JavaScript Engine
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

Trunk
mozilla7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 attachment)

We currently incorrectly treat \u, \uAG, etc. as the literal characters following the \.  test262 has a dozen or so (!) tests for this.
Created attachment 538422 [details] [diff] [review]
Patch and test, and test fixes
Attachment #538422 - Flags: review?(nnethercote)
Comment on attachment 538422 [details] [diff] [review]
Patch and test, and test fixes

Review of attachment 538422 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #538422 - Flags: review?(nnethercote) → review+
https://bugzilla.mozilla.org/show_bug.cgi?id=663300
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla7
Er, http://hg.mozilla.org/tracemonkey/rev/5ba462e407f1
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/5ba462e407f1
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Depends on: 690267
You need to log in before you can comment on or make changes to this bug.