Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8193296

Nashorn Parser eagerly transform deletes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • None
    • core-libs
    • None
    • b36
    • generic
    • generic

        Nashorn's parser eagerly transforms delete expressions whose arguments are neither ident nodes nor base nodes. This leads to Parser API producing unexpected results, e.g. for:

        function x() { }; delete x();

        These kinds of transformations should be left to Lower. Also, it was kinda hacky how it was inserting expression statements for side effects. COMMARIGHT expression is much nicer for that purpose.

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

                Created:
                Updated:
                Resolved: