-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
8u66
-
x86
-
windows_8
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
^
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
^