Skip to content

Instantly share code, notes, and snippets.

/error.md Secret

Created Sep 17, 2015
Embed
What would you like to do?
result of L8D's code

For this code:

 ((x, y) => x + y))(1, 2)

This was the error:

/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:634
      throw err;
            ^
SyntaxError: [eval]: Unexpected token (1:18)
> 1 |  ((x, y) => x + y))(1, 2)
    |                   ^
    at Parser.pp.raise (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/location.js:80:13)
    at Parser.pp.unexpected (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/parseutil.js:95:8)
    at Parser.pp.semicolon (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/parseutil.js:74:73)
    at Parser.pp.parseExpressionStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/statement.js:384:8)
    at Parser.parseExpressionStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js:648:20)
    at Parser.pp.parseStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/statement.js:130:188)
    at Parser.parseStatement (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/plugins/flow.js:627:22)
    at Parser.pp.parseTopLevel (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/statement.js:30:21)
    at Object.parse (/usr/lib/node_modules/babel/node_modules/babel-core/lib/acorn/src/index.js:101:12)
    at Object.exports.default (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:72:19)
    at File.parse (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:561:41)
    at File.parseCode (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:646:22)
    at /usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/pipeline.js:130:12
    at File.wrap (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:610:16)
    at Pipeline.transform (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/pipeline.js:128:17)
    at _eval (/usr/lib/node_modules/babel/bin/_babel-node:46:16)
    at Object.<anonymous> (/usr/lib/node_modules/babel/bin/_babel-node:74:16)
    at Module._compile (module.js:426:26)
    at Object.Module._extensions..js (module.js:444:10)
    at Module.load (module.js:351:32)
    at Function.Module._load (module.js:306:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:117:18)
    at node.js:946:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment