Closed Bug 353000 Opened 18 years ago Closed 18 years ago

RegExp literal after "catch" block is considered a syntax error

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase, verified1.8.1.1)

Similar to bug 352649, but not fixed by the current patch in bug 346642.

js> function() { try{}catch(e){} (/g/.x) }
function () {
    try {
    } catch (e) {
    }
    /g/.x;
}

js> function() { try{}catch(e){} /g/.x }       
SyntaxError: syntax error: [...]

Works correctly if I have a "finally" block instead of a "catch" block.
Depends on: desdec
Fixed on trunk because "prep patch for plan A, v9d" in bug 346642 was checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checking in regress-353000.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-353000.js,v  <--  regress-353000.js
initial revision: 1.1
done

oops.

Checking in regress-353000.js;
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-353000.js,v  <--  regress-353000.js
new revision: 1.2; previous revision: 1.1
done


Not sure this test is correct|sufficient as I can not get it to fail on 20060914, 20060916 or 20060917 builds.
Flags: in-testsuite+
verified fixed 1.9 20060921 windows/mac*/linux but this doesn't fail on 1.8 for me, ...
Status: RESOLVED → VERIFIED
fixed by Bug 346642.
verified fixed 20061203 1.8.1.1 windows/linux/mac*
Keywords: verified1.8.1.1
You need to log in before you can comment on or make changes to this bug.