• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u60
    • core-libs
    • None
    • b120
    • generic
    • generic


      jjs> function f() { x; throw null; (function (){ var x; }); } f()
      Exception in thread "main" java.lang.AssertionError: Couldn't find scope depth for symbol x in [object] function {U%}f()
         at jdk.nashorn.internal.codegen.CodeGenerator.loadFastScopeProto(CodeGenerator.java:516)
         at jdk.nashorn.internal.codegen.CodeGenerator.access$100(CodeGenerator.java:183)
         at jdk.nashorn.internal.codegen.CodeGenerator$LoadFastScopeVar.getProto(CodeGenerator.java:483)
         at jdk.nashorn.internal.codegen.CodeGenerator$LoadScopeVar.loadStack(CodeGenerator.java:456)
         at jdk.nashorn.internal.codegen.CodeGenerator$OptimisticOperation.emit(CodeGenerator.java:4407)
         at jdk.nashorn.internal.codegen.CodeGenerator$OptimisticOperation.emit(CodeGenerator.java:4392)
         at jdk.nashorn.internal.codegen.CodeGenerator.loadIdent(CodeGenerator.java:331)
         at jdk.nashorn.internal.codegen.CodeGenerator.access$400(CodeGenerator.java:183)
         at jdk.nashorn.internal.codegen.CodeGenerator$1.enterIdentNode(CodeGenerator.java:725)
         at jdk.nashorn.internal.ir.IdentNode.accept(IdentNode.java:138)
         ...

            hannesw Hannes Wallnoefer
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: