Closed Bug 290499 Opened 20 years ago Closed 20 years ago

E4X: Spidermonkey shell crashes on empty XMLList intializer

Categories

(Core :: JavaScript Engine, defect, P1)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED
mozilla1.8beta2

People

(Reporter: martin.honnen, Assigned: brendan)

Details

(Keywords: js1.5)

Attachments

(2 files)

I think an empty XMLList intializer in the form of <></> is allowed so var emptyList = <></>; should be parsed without problems and create an empty XMLList but the Spidermonkey shell crashes: js> var emptyList = <></>; Assertion failure: pn->pn_count != 0, at jsparse.c:4736 Rhino creates an empty list.
/cvsroot/mozilla/js/tests/e4x/Regress/regress-290499.js,v <-- regress-290499.js initial revision: 1.1
Assignee: general → brendan
Keywords: js1.5
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta2
Attached patch proposed fixSplinter Review
I need an e4x code buddy.... /be
Attachment #180833 - Flags: review+
Attachment #180833 - Flags: approval1.8b2+
Fixed. /be
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Flags: testcase+
Checking in regress-290499.js; /cvsroot/mozilla/js/tests/e4x/Regress/regress-290499.js,v <-- regress-290499.js new revision: 1.3; previous revision: 1.2 add missing call to TEST() verified fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: