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)

PowerPC
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: testcase, verified1.8.1)

Attachments

(1 file)

js> p = function() { { while(0) function t() { } } } function () { { while (0) { function t() { } } } } js> eval("" + p) function () { while (0) { function t() { } } }
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
Duh, superfluous braces are preserved, as the first shell result shows. Should be easy to fix. /be
Attached patch fix — — Splinter Review
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #238029 - Flags: review?(mrbkap)
Attachment #238029 - Flags: review?(mrbkap) → review+
Fixed on trunk. /be
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #238029 - Flags: approval1.8.1?
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+
Fixed on the 1.8 branch. /be
Keywords: fixed1.8.1
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+
verified fixed 1.8 20060914 windows/linux 1.9 20060914 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: