Closed Bug 356247 Opened 18 years ago Closed 17 years ago

Round-trip bracing change with "let {} = [1];" in a loop

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha5

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase)

Attachments

(1 file)

(1) With for..let as the outer loop js> f = function() { for(let x in []) let {} = [1]; } function () { for (let x in []) let [] = [1]; } js> eval("" + f) function () { for (let x in []) { let [] = [1]; } } (2) With while as the outer loop js> f = function() { while(0) let {} = [1]; } function () { while (0) let [] = [1]; } js> eval("" + f) function () { while (0) { let [] = [1]; } }
Attached patch fixSplinter Review
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #266667 - Flags: review?(mrbkap)
OS: Mac OS X → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha5
Attachment #266667 - Flags: review?(mrbkap) → review+
Fixed on trunk: Checking in jsopcode.c; /cvsroot/mozilla/js/src/jsopcode.c,v <-- jsopcode.c new revision: 3.249; previous revision: 3.248 done /be
Blocks: js1.7src
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-356247.js,v <-- regress-356247.js initial revision: 1.1
Flags: in-testsuite+
I'm getting a syntax error during the compile stage of the source comparison in the browser but not the shell. <http://test.bclary.com/tests/mozilla.org/js/js-test-driver-standards.html?test=js1_7/decompilation/regress-356247.js;language=type;text/javascript;version=1.7> and still getting the extra braces on the evald comparison in the shell.
(In reply to comment #5) > > and still getting the extra braces on the evald comparison in the shell. > ignore this, was using an older version of the shell accidentially. sorry. but the syntax error in the browser remains.
deal with anon fun /cvsroot/mozilla/js/tests/js1_7/decompilation/regress-356247.js,v <-- regress-356247.js new revision: 1.2; previous revision: 1.1 test passes now, ignore me.
verified fixed 1.9.0 linux/mac*/windows.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: