Closed
Bug 418285
Opened 17 years ago
Closed 10 years ago
Round-trip bracing change with "with", "try..finally", inner function
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
js> f = function() { { with({}) try { } finally { function three() { return 3; } } } }
function () {
{
with ({}) {
try {
} finally {
function three() {
return 3;
}
}
}
}
}
js> eval("" + f)
function () {
with ({}) {
try {
} finally {
function three() {
return 3;
}
}
}
}
Reporter | ||
Comment 1•17 years ago
|
||
Same thing can happen with "if" instead of "with" as the outer block.
js> f = function() { {if(v) try { } finally { function t() { } } } }
function () {
{
if (v) {
try {
} finally {
function t() {
}
}
}
}
}
js> eval("" + f)
function () {
if (v) {
try {
} finally {
function t() {
}
}
}
}
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 2•10 years ago
|
||
No longer reproducible - Resolving as WFM.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•