Closed Bug 715400 Opened 13 years ago Closed 12 years ago

Error with sharps does not cause shell to stop processing input file

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: gkw, Unassigned)

Details

(Keywords: testcase, Whiteboard: js-triage-needed)

Clearer testcase, without the crash:

try { ({ a: #1# }); } catch (e) { }
#1=[#1#];
try { x = #1#; print("FAIL"); } catch(e) { print("PASS: " + e); }

It prints "FAIL". If the first or second line is removed, it prints "PASS: Error: invalid sharp variable use #1#", like it should.
Group: core-security
Fixed possibly before m-c changeset 24f2c7e26fbd. Possibly fixed by sharp removal in bug 566700.

-> FIXED.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
> try { ({ a: #1# }); } catch (e) { }

It now prints an error at this line in the testcase in comment 1.
You need to log in before you can comment on or make changes to this bug.