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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 8u66
    • Component/s: core-libs

      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
      ^


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

              Created:
              Updated:
              Resolved: