Closed
Bug 351793
Opened 19 years ago
Closed 19 years ago
Double-parenthesized object literal decompiles incorrectly.
Categories
(Core :: JavaScript Engine, defect, P2)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.8.1
People
(Reporter: jruderman, Assigned: brendan)
References
Details
(Keywords: regression, testcase, verified1.8.1)
Attachments
(1 file)
|
1.53 KB,
patch
|
mrbkap
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
js> function() { (({a:b, c:3})); }
function () {
{a:b, c:3};
}
Note that if I use only single parens around the object literal, it decompiles correctly, thanks to the fix for bug 351625.
| Assignee | ||
Comment 1•19 years ago
|
||
Comment says it all.
Incomplete fix for bug 351625, I'll note the dependency for posterity in a sec.
/be
| Assignee | ||
Updated•19 years ago
|
OS: Mac OS X 10.4 → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.8.1
Updated•19 years ago
|
Attachment #237343 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Comment 2•19 years ago
|
||
Fixed on trunk.
/be
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 3•19 years ago
|
||
Comment on attachment 237343 [details] [diff] [review]
avoid redundant JSOP_GROUPs
This is safe and important for js1.7 -- we should not regress decompilation of object initializers, even if they are used as whole expression statements (this happens with JSON data used with eval/uneval).
/be
Attachment #237343 -
Flags: approval1.8.1?
Comment 4•19 years ago
|
||
Comment on attachment 237343 [details] [diff] [review]
avoid redundant JSOP_GROUPs
a=schrep for drivers.
Attachment #237343 -
Flags: approval1.8.1? → approval1.8.1+
Comment 6•19 years ago
|
||
Checking in regress-351793.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-351793.js,v <-- regress-351793.js
initial revision: 1.1
Flags: in-testsuite+
Comment 7•19 years ago
|
||
verified fixed 1.8 1.9 20060909 windows/mac*/linux
Status: RESOLVED → VERIFIED
Keywords: fixed1.8.1 → verified1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•