Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 9
    • 8u60
    • core-libs
    • None
    • b42
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: