Closed
Bug 368224
Opened 18 years ago
Closed 18 years ago
"Assertion failure: pnprop->pn_type == TOK_COLON" or crash [@ CheckDestructuring] with sharp declaration
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha5
People
(Reporter: jruderman, Assigned: brendan)
References
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(1 file, 1 obsolete file)
3.35 KB,
patch
|
igor
:
review+
|
Details | Diff | Splinter Review |
js> ({ x: [] }) = #3={}
Assertion failure: pnprop->pn_type == TOK_COLON, at jsparse.c:2065
In opt, instead of an assertion failure, I get a null-deref crash [@ CheckDestructuring].
Assignee | ||
Comment 1•18 years ago
|
||
Trivially correct.
/be
Assignee | ||
Updated•18 years ago
|
OS: Mac OS X → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha5
Comment 2•18 years ago
|
||
Comment on attachment 263417 [details] [diff] [review]
fix
>Index: jsparse.c
>===================================================================
>RCS file: /cvsroot/mozilla/js/src/jsparse.c,v
>retrieving revision 3.277
>diff -p -u -8 -r3.277 jsparse.c
>--- jsparse.c 10 Apr 2007 13:29:10 -0000 3.277
>+++ jsparse.c 2 May 2007 01:49:01 -0000
>@@ -2046,31 +2046,34 @@ FindPropertyValue(JSParseNode *pn, JSPar
There is a loop that fills the table at the end of FindPropertyValue. Should it also skip the first pn when it is a defsharp?
Assignee | ||
Comment 3•18 years ago
|
||
Ugh, should have seen that. Not sure about the worth of this hashing code, but separate bug if need be.
/be
Attachment #263417 -
Attachment is obsolete: true
Attachment #263440 -
Flags: review?(igor)
Attachment #263417 -
Flags: review?(igor)
Updated•18 years ago
|
Attachment #263440 -
Flags: review?(igor) → review+
Assignee | ||
Comment 4•18 years ago
|
||
Fixed on trunk:
js/src/jsparse.c 3.278
/be
Comment 5•18 years ago
|
||
/cvsroot/mozilla/js/tests/js1_7/extensions/regress-368224.js,v <-- regress-368224.js
initial revision: 1.1
Flags: in-testsuite+
Comment 6•18 years ago
|
||
verified fixed 1.9.0 linux/mac* 2007-05-05 shell.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: wanted1.8.1.x+
Updated•13 years ago
|
Crash Signature: [@ CheckDestructuring]
You need to log in
before you can comment on or make changes to this bug.
Description
•