This repository was archived by the owner on Dec 31, 2019. It is now read-only.
support javascript w/ bash shebang (#!)#143
Open
ancms2600 wants to merge 1 commit intodouglasduteil:masterfrom
Open
support javascript w/ bash shebang (#!)#143ancms2600 wants to merge 1 commit intodouglasduteil:masterfrom
ancms2600 wants to merge 1 commit intodouglasduteil:masterfrom
Conversation
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' }
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
for example, the
_mochabinary.resolves the following error: