Hello,
I get the below stack trace when parsing the extjs[
http://extjs.com/
] js file.
I am using crosscheck version 0.2.1
cat events.jst
crosscheck.onSetup(function(){
crosscheck.addPath("/home/test")
crosscheck.require("ext-all.js")
crosscheck.require("ext-base.js")
})
crosscheck.addTest({
test_event_handler_executes_after_addEvent: function () {
}
})
--------------------------------------------------------------
java -jar crosscheck.jar events.jst
Running tests in environment: Mozilla 1.7 (Firefox 1.0)
org.mozilla.javascript.WrappedException: Wrapped
java.lang.IllegalArgumentException: out of range index (events.jst#3)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:
1693)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:
471)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:
66)
at org.mozilla.javascript.gen.c1._c1(events.jst:3)
at org.mozilla.javascript.gen.c1.call(events.jst)
at org.mozilla.javascript.ContextFactory.doTopCall
(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
2758)
at org.mozilla.javascript.gen.c1.call(events.jst)
at net.thefrontside.crosscheck.framework.AbstractScopeFactory$1.run
(AbstractScopeFactory.java:108)
at org.mozilla.javascript.Context.call(Context.java:515)
at org.mozilla.javascript.Context.call(Context.java:450)
at
net.thefrontside.crosscheck.framework.AbstractScopeFactory.initTestScope
(AbstractScopeFactory.java:94)
at
net.thefrontside.crosscheck.framework.DefaultScopeFactory.getTestScope
(DefaultScopeFactory.java:68)
at net.thefrontside.crosscheck.framework.TestCase$1.run(TestCase.java:
119)
at org.mozilla.javascript.Context.call(Context.java:528)
at org.mozilla.javascript.Context.call(Context.java:450)
at net.thefrontside.crosscheck.framework.TestCase.run(TestCase.java:
117)
at net.thefrontside.crosscheck.framework.TestSuite.run(TestSuite.java:
95)
at net.thefrontside.crosscheck.framework.Crosscheck.runAll
(Crosscheck.java:116)
at net.thefrontside.crosscheck.framework.ConsoleRunner.run
(ConsoleRunner.java:140)
at net.thefrontside.crosscheck.framework.ConsoleRunner.main
(ConsoleRunner.java:300)
Caused by: java.lang.IllegalArgumentException: out of range index
at org.mozilla.classfile.ClassFileWriter.add(ClassFileWriter.java:
544)
at org.mozilla.classfile.ClassFileWriter.addLoadConstant
(ClassFileWriter.java:604)
at org.mozilla.classfile.ClassFileWriter.addPush(ClassFileWriter.java:
840)
at
org.mozilla.javascript.optimizer.Codegen.emitConstantDudeInitializers
(Codegen.java:907)
at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:
308)
at org.mozilla.javascript.optimizer.Codegen.compileToClassFile
(Codegen.java:159)
at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:69)
at org.mozilla.javascript.Context.compileImpl(Context.java:2261)
at org.mozilla.javascript.Context.compileReader(Context.java:1246)
at net.thefrontside.crosscheck.framework.TestInterface$3.run
(TestInterface.java:226)
at org.mozilla.javascript.Context.call(Context.java:515)
at org.mozilla.javascript.Context.call(Context.java:450)
at net.thefrontside.crosscheck.framework.TestInterface.compileScript
(TestInterface.java:222)
at net.thefrontside.crosscheck.framework.TestInterface.getScript
(TestInterface.java:274)
at net.thefrontside.crosscheck.framework.TestInterface.load
(TestInterface.java:171)
at net.thefrontside.crosscheck.framework.TestInterface.require
(TestInterface.java:202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
... 20 more
Wrapped java.lang.IllegalArgumentException: out of range index
(events.jst#3)