Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

support javascript w/ bash shebang (#!) #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ancms2600
Copy link

for example, the _mocha binary.

resolves the following error:

Transformation error; return original code                                                                                                                                                                           
{ Error: Line 1: Unexpected token ILLEGAL                                                                                                                                                                            
    at ErrorHandler.constructError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5012:22)                                                                                            
    at ErrorHandler.createError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5028:27)                                                                                               
    at ErrorHandler.throwError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5035:21)                                                                                                
    at Scanner.throwUnexpectedToken (node_modules/isparta/node_modules/esprima/dist/esprima.js:5164:35)                                                                                           
    at Scanner.scanPunctuator (node_modules/isparta/node_modules/esprima/dist/esprima.js:5667:19)                                                                                                 
    at Scanner.lex (node_modules/isparta/node_modules/esprima/dist/esprima.js:6264:22)
    at Parser.nextToken (node_modules/isparta/node_modules/esprima/dist/esprima.js:2079:34)
    at new Parser (node_modules/isparta/node_modules/esprima/dist/esprima.js:1916:15)
    at parse (node_modules/isparta/node_modules/esprima/dist/esprima.js:120:19)
    at Instrumenter.instrumentSync (node_modules/isparta/lib/instrumenter.js:66:40)
  index: 0,
  lineNumber: 1,
  description: 'Unexpected token ILLEGAL' }

for example, the `_mocha` binary.

resolves the following error:
```
Transformation error; return original code                                                                                                                                                                           
{ Error: Line 1: Unexpected token ILLEGAL                                                                                                                                                                            
    at ErrorHandler.constructError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5012:22)                                                                                            
    at ErrorHandler.createError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5028:27)                                                                                               
    at ErrorHandler.throwError (node_modules/isparta/node_modules/esprima/dist/esprima.js:5035:21)                                                                                                
    at Scanner.throwUnexpectedToken (node_modules/isparta/node_modules/esprima/dist/esprima.js:5164:35)                                                                                           
    at Scanner.scanPunctuator (node_modules/isparta/node_modules/esprima/dist/esprima.js:5667:19)                                                                                                 
    at Scanner.lex (node_modules/isparta/node_modules/esprima/dist/esprima.js:6264:22)
    at Parser.nextToken (node_modules/isparta/node_modules/esprima/dist/esprima.js:2079:34)
    at new Parser (node_modules/isparta/node_modules/esprima/dist/esprima.js:1916:15)
    at parse (node_modules/isparta/node_modules/esprima/dist/esprima.js:120:19)
    at Instrumenter.instrumentSync (node_modules/isparta/lib/instrumenter.js:66:40)
  index: 0,
  lineNumber: 1,
  description: 'Unexpected token ILLEGAL' }
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant