Closed
Bug 695238
Opened 14 years ago
Closed 14 years ago
Reflect.parse doesn't reject missing RHS in object literals
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: dherman, Assigned: dherman)
References
Details
(Whiteboard: reflect-parse)
Attachments
(1 file)
3.50 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
This should fail:
Reflect.parse("({foo})")
but doesn't. The problem is that jsemit.cpp does the check (and throws a TypeError with JSMSG_BAD_OBJECT_INIT), and jsreflect.cpp is not doing the same check.
Fix should be easy: just check for the PNX_DESTRUCT bit, same as jsemit.cpp.
Dave
Assignee | ||
Comment 1•14 years ago
|
||
CC'ing Jesse, who may want to feed his fuzzer with some tasty new inputs.
Dave
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #567654 -
Flags: review?(jorendorff)
Updated•14 years ago
|
Attachment #567654 -
Flags: review?(jorendorff) → review+
Assignee | ||
Comment 3•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Flags: in-testsuite+
Target Milestone: --- → mozilla10
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•