Closed
Bug 23609
Opened 25 years ago
Closed 25 years ago
NullPointerException processing postincrement
Categories
(Rhino Graveyard :: Compiler, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: norrisboyd, Assigned: rogerl)
Details
(Keywords: js1.5)
From n.p.m.jseng:
Subject:
rhino problem with post increment inside array index
Date:
Mon, 10 Jan 2000 13:08:14 GMT
From:
aanten@my-deja.com
Organization:
Deja.com - Before you buy.
Newsgroups:
netscape.public.mozilla.jseng
I am having problems with the following code, which seems to cause the
rhino engine to fail
var k=0;
var x=new Array(1,2,3);
x[k]+=3; //works fine
x[k++]+=3; //breaks rhino
from the final line, i get the exception. I can work around the
problem, by incrementing k elsewhere, but should this work ?
Just as a side issue, does anyone know how the rhino tip builds are
scheduled ? there doesn't seem to have been any for a while.
many thanks.
java.lang.NullPointerException
at org.mozilla.javascript.optimizer.Codegen.visitIncDec
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.generateCodeFromNode
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.generateCodeFromNode
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.generateCodeFromNode
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.generateCodeFromNode
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.generateCode
(Compiled Code)
at org.mozilla.javascript.optimizer.Codegen.compile(Compiled
Code)
at org.mozilla.javascript.Context.compile(Compiled Code)
at org.mozilla.javascript.Context.compile(Compiled Code)
at org.mozilla.javascript.Context.compileReader(Compiled Code)
at org.mozilla.javascript.Context.evaluateReader(Compiled Code)
at org.mozilla.javascript.Context.evaluateString(Compiled Code)
at org.mozilla.javascript.tools.shell.Main.processSource
(Compiled Code)
at org.mozilla.javascript.tools.shell.Main.main(Compiled Code)
Sent via Deja.com http://www.deja.com/
Before you buy.
Updated•25 years ago
|
QA Contact: cbegle → rginda
Comment 1•25 years ago
|
||
Changing qa contact.
Assignee | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 2•25 years ago
|
||
Fixed - IRFactory was trying to optimize the formation of post-increment trees
but didn't handle indexing with side effects correctly.
You need to log in
before you can comment on or make changes to this bug.
Description
•