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

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
critical
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: gkw, Unassigned)

Tracking

(Blocks: 2 bugs, {testcase})

Trunk
x86
Mac OS X
testcase
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: js-triage-needed)

Comment 1

5 years ago
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
(Reporter)

Comment 2

5 years ago
Fixed possibly before m-c changeset 24f2c7e26fbd. Possibly fixed by sharp removal in bug 566700.

-> FIXED.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

5 years ago
> 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.