Closed
Bug 590678
Opened 15 years ago
Closed 2 years ago
Add tests for syntax errors in Reflect.parse()
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: WeirdAl, Unassigned)
References
Details
In glancing over the patch for bug 533784, I don't see any tests for syntax errors in the src argument of Reflect.parse(). I'm hoping one of two things will happen:
(1) A syntax error will be thrown with file name & line number, which I can catch, or
(2) Reflect.parse returns a special value indicating "I couldn't parse this, due to a syntax error at ..."
Flags: in-testsuite?
Comment 1•15 years ago
|
||
It's #1. I've added this information to the docs:
https://developer.mozilla.org/en/SpiderMonkey/Parser_API#parse%28string.5b.2c_string.3dnull.5b.2c_number.3d1.5d.5d%29
You're right, there should be tests for this.
Dave
Reporter | ||
Comment 2•14 years ago
|
||
Looks like this check-in took you most of the way:
http://hg.mozilla.org/mozilla-central/rev/fb5b64e975c9
So we would just need to test "with file name & line number".
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Reporter | ||
Updated•7 years ago
|
Flags: in-testsuite?
Updated•3 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•