Details

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

      Backports

        Description

        jjs> try { function f() { eval("get, a") } f() } catch (e) { e.printStackTrace() }
        jdk.nashorn.internal.runtime.ParserException: <shell>#1:21<eval>:1:3 Expected ident but found ,
        get, a
          ^
           at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:292)
           at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:277)
           at jdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:348)
           at jdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:335)
           at jdk.nashorn.internal.parser.AbstractParser.getIdentifierName(AbstractParser.java:486)
           at jdk.nashorn.internal.parser.Parser.propertyName(Parser.java:2228)
           at jdk.nashorn.internal.parser.Parser.propertyGetterFunction(Parser.java:2294)
           at jdk.nashorn.internal.parser.Parser.statement(Parser.java:966)
           at jdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:787)
           at jdk.nashorn.internal.parser.Parser.program(Parser.java:712)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hannesw Hannes Wallnoefer
                  Reporter:
                  lagergren Marcus Lagergren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: