Closed Bug 302097 Opened 19 years ago Closed 19 years ago

E4X: Function.prototype.toString incorrectly quotes {} attribute values

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

Attachments

(1 file)

Given the function: function f(k) { return <xml k={k}/>; } f.toString() returns function f(k) { return <xml k="{k}"/> } which is incorrect.
Once bug 301692 is checked in, I think I'll be able to fix this, also.
Assignee: general → mrbkap
This simple (hah! A simple patch in the decompiler!) patch remembers whether the attribute value wants to be quoted or not.
Attachment #190606 - Flags: review?(shaver)
Status: NEW → ASSIGNED
Comment on attachment 190606 [details] [diff] [review] Don't quote every attribute r+a=shaver.
Attachment #190606 - Flags: review?(shaver)
Attachment #190606 - Flags: review+
Attachment #190606 - Flags: approval1.8b4+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: testcase?
Checking in regress-302097.js; /cvsroot/mozilla/js/tests/e4x/TypeConversion/regress-302097.js,v <-- regress-302097.js initial revision: 1.1
Flags: testcase? → testcase+
verified fixed 1.9 20060818 windows/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: