• Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • core-libs
    • None

      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 ...

            attila Attila Szegedi
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: