-
Sub-task
-
Resolution: Duplicate
-
P4
-
None
-
8
-
None
-
generic
-
generic
jjs> Function("try { {} } catch(x) { with({}) throw x; } ");
Compiling threw: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: -1
at jdk.nashorn.internal.codegen.Label$Stack.pop(Label.java:102)
at jdk.nashorn.internal.codegen.MethodEmitter.popType(MethodEmitter.java:234)
at jdk.nashorn.internal.codegen.MethodEmitter.athrow(MethodEmitter.java:1002)
at jdk.nashorn.internal.codegen.CodeGenerator.enterThrowNode(CodeGenerator.java:1935)
at jdk.nashorn.internal.ir.ThrowNode.accept(ThrowNode.java:76)
at jdk.nashorn.internal.ir.Node.accept(Node.java:346)
at jdk.nashorn.internal.ir.Block.accept(Block.java:136)
at jdk.nashorn.internal.ir.LexicalContextNode.accept(LexicalContextNode.java:69)
at jdk.nashorn.internal.codegen.CodeGenerator.enterWithNode(CodeGenerator.java:2150)
at jdk.nashorn.internal.ir.WithNode.accept(WithNode.java:68)
at ...
Compiling threw: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: -1
at jdk.nashorn.internal.codegen.Label$Stack.pop(Label.java:102)
at jdk.nashorn.internal.codegen.MethodEmitter.popType(MethodEmitter.java:234)
at jdk.nashorn.internal.codegen.MethodEmitter.athrow(MethodEmitter.java:1002)
at jdk.nashorn.internal.codegen.CodeGenerator.enterThrowNode(CodeGenerator.java:1935)
at jdk.nashorn.internal.ir.ThrowNode.accept(ThrowNode.java:76)
at jdk.nashorn.internal.ir.Node.accept(Node.java:346)
at jdk.nashorn.internal.ir.Block.accept(Block.java:136)
at jdk.nashorn.internal.ir.LexicalContextNode.accept(LexicalContextNode.java:69)
at jdk.nashorn.internal.codegen.CodeGenerator.enterWithNode(CodeGenerator.java:2150)
at jdk.nashorn.internal.ir.WithNode.accept(WithNode.java:68)
at ...