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

Allow to run shebang script with --no-syntax-extensions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • None
    • 8u66
    • core-libs

    Description

      A DESCRIPTION OF THE REQUEST :
      It's currently impossible to run a shebang script with --no-syntax-extensions

      JUSTIFICATION :
      I want to run my scripts with --no-syntax-extensions, as I want to keep them as "pure" as possible. However, I also want to provide parameters in the script itself, by using the shebang.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When "-scripting" is defined, either on the command line or in the shebang of the script, the shebang should not cause an error, regardless of whether --no-syntax-extensions is specified.
      ACTUAL -
      test.js:1:0 Expected an operand but found error
      #!jjs -strict -scripting
      ^


      Attachments

        Activity

          People

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: