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

Nashorn Parser eagerly transform deletes

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: