Closed Bug 621814 Opened 14 years ago Closed 14 years ago

Incorrect decompilation with non-ASCII property name in destructuring

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Tracking Status
status2.0 --- ?

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

function f({"\xF51F": x}) {}
eval(uneval(f))

typein:10: SyntaxError: invalid property id:
typein:10: function f({\xF51F: x}) {}
typein:10: ............^
Attached patch proposed fixSplinter Review
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #500138 - Flags: review?(igor)
Stupidly safe fix for old bug that I bet is getting in the fuzzer's face.

/be
status2.0: --- → ?
Attachment #500138 - Flags: review?(igor) → review+
http://hg.mozilla.org/tracemonkey/rev/98ebb8eabfe4

/be
Whiteboard: fixed-in-tracemonkey
Attachment #500138 - Flags: approval2.0+
http://hg.mozilla.org/mozilla-central/rev/98ebb8eabfe4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: