Closed
Bug 591430
Opened 14 years ago
Closed 14 years ago
Reflect.parse(): TOK_NAME statement nodes with pn_lexdef
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dherman, Assigned: dherman)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
5.19 KB,
patch
|
cdleary
:
review+
|
Details | Diff | Splinter Review |
js> Reflect.parse("function f() { function g() { } function g() { } }") Assertion failure: unexpected statement type, at ../jsreflect.cpp:1899 Segmentation fault
Assignee | ||
Comment 1•14 years ago
|
||
Fix attached. Dave
Assignee | ||
Updated•14 years ago
|
Attachment #469960 -
Flags: review?(cdleary)
Comment 2•14 years ago
|
||
Comment on attachment 469960 [details] [diff] [review] follow the pn_lexdef link to find the real parse node This fix looks correct, but there are probably some more def/use chain crashers lurking: 'Reflect.parse("function f(g) { function g() { } function g() { } }' asserts out for me.
Attachment #469960 -
Flags: review?(cdleary) → review+
Assignee | ||
Comment 3•14 years ago
|
||
With the patches applied, WFM. If you see other def/use chain issues, though, please let me know. Dave
Assignee | ||
Comment 4•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/e13778864fca
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Comment 5•14 years ago
|
||
> With the patches applied, WFM. Ah, the test case in comment 2 is a dup of bug 591437. With that bug's fix it works. Dave
Comment 6•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/e13778864fca
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
•