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)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha5
People
(Reporter: jruderman, Assigned: brendan)
References
Details
(Keywords: testcase)
Attachments
(1 file)
6.01 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
(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];
}
}
Assignee | ||
Comment 2•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
OS: Mac OS X → All
Priority: -- → P2
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha5
Updated•17 years ago
|
Attachment #266667 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 3•17 years ago
|
||
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
Comment 4•17 years ago
|
||
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-356247.js,v <-- regress-356247.js
initial revision: 1.1
Flags: in-testsuite+
Comment 5•17 years ago
|
||
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.
Comment 6•17 years ago
|
||
(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.
Comment 7•17 years ago
|
||
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.
You need to log in
before you can comment on or make changes to this bug.
Description
•