Closed Bug 350242 Opened 18 years ago Closed 18 years ago

"delete 0x11.x" decompiles incorrectly

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase, verified1.8.1)

Attachments

(1 file)

> function () { delete 0x11.x }
function () { delete 17.x; }

> function () { delete 17.x; }
syntax error

I guess hex numbers end at a period but decimal numbers don't.  Adding parens around "153" would fix this.
Attached patch fixSplinter Review
See also bug 333541 (the jsopcode.tbl changes made there did not affect the prop- and elem-format JSOP_DEL* ops).

/be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #235535 - Flags: superreview?(shaver)
Attachment #235535 - Flags: review?(mrbkap)
OS: Mac OS X 10.4 → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
*** Bug 350241 has been marked as a duplicate of this bug. ***
Attachment #235535 - Flags: review?(mrbkap) → review+
Comment on attachment 235535 [details] [diff] [review]
fix

sr=shaver
Attachment #235535 - Flags: superreview?(shaver) → superreview+
Comment on attachment 235535 [details] [diff] [review]
fix

This follows existing case handling for other "lvalue" operators than delete, so it's as safe as those pre-existing cases.  It would be good to get this into js1.7, both to avoid hacks in Jesse's testers, and for decompiler-dependent clients (Venkman's debug-pretty-printed mode, Ebay scripts that decompile/edit/compile functions...).

/be
Attachment #235535 - Flags: approval1.8.1?
Fixed on trunk.

/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 235535 [details] [diff] [review]
fix

a=schrep/beltnzer for drivers.
Attachment #235535 - Flags: approval1.8.1? → approval1.8.1+
Fixed on the 1.8 branch.

/be
Keywords: fixed1.8.1
Checking in regress-350242.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-350242.js,v  <--  regress-350242.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8 20060828 windows/mac*/linux
verified fixed 1.9 20060830 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: