Closed
Bug 352281
Opened 20 years ago
Closed 20 years ago
Round-trip bracing change with "while" and function declaration
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jruderman, Assigned: brendan)
Details
(Keywords: testcase, verified1.8.1)
Attachments
(1 file)
|
4.43 KB,
patch
|
mrbkap
:
review+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
js> p = function() { { while(0) function t() { } } }
function () {
{
while (0) {
function t() {
}
}
}
}
js> eval("" + p)
function () {
while (0) {
function t() {
}
}
}
| Assignee | ||
Comment 1•20 years ago
|
||
Superfluous braces are not preserved. Doing so costs extra bytecode (NOP at least) and source note space and code complexity. I would like to WONTFIX this. Jesse, what do you say?
/be
| Assignee | ||
Comment 2•20 years ago
|
||
Duh, superfluous braces are preserved, as the first shell result shows. Should be easy to fix.
/be
| Assignee | ||
Comment 3•20 years ago
|
||
Updated•20 years ago
|
Attachment #238029 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Comment 4•20 years ago
|
||
Fixed on trunk.
/be
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•20 years ago
|
Attachment #238029 -
Flags: approval1.8.1?
Comment 5•20 years ago
|
||
Comment on attachment 238029 [details] [diff] [review]
fix
a=schrep for 181drivers for JS decompiler fuzz bugs.
Attachment #238029 -
Flags: approval1.8.1? → approval1.8.1+
Comment 7•20 years ago
|
||
Checking in regress-352281.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-352281.js,v <-- regress-352281.js
initial revision: 1.1
done
Flags: in-testsuite+
Comment 8•20 years ago
|
||
verified fixed 1.8 20060914 windows/linux 1.9 20060914 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
•