Large number of |else if| statements causing an error

NEW
Assigned to

Status

P5
normal
17 years ago
12 years ago

People

(Reporter: pschwartau, Assigned: norrisboyd)

Tracking

Details

(Reporter)

Description

17 years ago
I've just added a new regression test, js/tests/js1_5/Regress/regress-96526.js. 
(http://lxr.mozilla.org/mozilla/source/js/tests/js1_5/Regress/regress-96526.js )

This was for bug 96526, a Mac-only bug. It contains one function with
475 |else if| statements in it. In SpiderMonkey, this test passes on WinNT
and Linux, but fails on Mac due to different memory management there.

In Rhino, this test passes for me in my WinNT rhinoi shell, but fails
in the rhino shell:

*-* Testcase js1_5/Regress/regress-96526.js failed:
Expected exit code 0, got 1
Testcase terminated with signal 0
Complete testcase output was:

java.lang.VerifyError: (class: c11, method: call signature: 
(Lorg/mozilla/javascript/Context;Lorg/mozilla/javascript/Scriptab
le;Lorg/mozilla/javascript/Scriptable;[Ljava/lang/Object;)Ljava/lang/Object;) 
Illegal target of jump or branch
       at 
c12.initScript(D:\JS_trunk\mozilla\js\tests\js1_5\Regress\regress-96526.js) 
       at 
c12.exec(D:\JS_trunk\mozilla\js\tests\js1_5\Regress\regress-96526.js)
       at org.mozilla.javascript.Context.evaluateReader(Context.java:778)
       at 
org.mozilla.javascript.tools.shell.Main.evaluateReader(Main.java:317)
       at 
org.mozilla.javascript.tools.shell.Main.processFile(Main.java:308)
       at 
org.mozilla.javascript.tools.shell.Main.processSource(Main.java:247)
       at org.mozilla.javascript.tools.shell.Main.exec(Main.java:106)
       at org.mozilla.javascript.tools.shell.Main.main(Main.java:68)
Exception in thread "main"
(Assignee)

Comment 1

12 years ago
Changing priority to P5 based on recent bug triage.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.