Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        jjs> Function("L: if(true) {x} if([].sort(function x (x){})) { if (eval(\"this\", 0)) {/a/gireturn;return; } else {/*infloop*/for\t(y; (0); 1 ? /x/ : 1) (this);({a:0});{} }}")
        <shell>:1 SyntaxError: <function>:1:81 Unsupported RegExp flag: r
        jjs> Function("L: if(true) {x} if([].sort(function x (x){})) { if (eval(\"this\", 0)) {/a/gireturn;return; } else {/*infloop*/for\t(y; (0); 1 ? /x/ : 1) (this);({a:0});{} }}")
        Exception in thread "main" java.lang.AssertionError
           at jdk.nashorn.internal.codegen.AssignSymbols.enterFunctionBody(AssignSymbols.java:494)
           at jdk.nashorn.internal.codegen.AssignSymbols.enterBlock(AssignSymbols.java:453)
           at jdk.nashorn.internal.ir.Block.accept(Block.java:177)
           at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
           at jdk.nashorn.internal.ir.Block.accept(Block.java:425)
           at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:384)
           at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
           at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:47)
           at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:59)
           at jdk.nashorn.internal.ir.Node.accept(Node.java:265)
           ...

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  attila Attila Szegedi
                  Reporter:
                  lagergren Marcus Lagergren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: