You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ coffee index.coffeeSyntaxError: In child.js, reserved word "var" on line 1 at SyntaxError (unknown source) at Lexer.exports.Lexer.Lexer.error (/home/ubuntu/testrequire/node_modules/coffee-script/lib/coffee-script/lexer.js:682:13) ...
The error message comes from the child process, which is exec-ed as coffee child.js.
The error message comes from the child process, which is exec-ed as
coffee child.js
.Seems that the problem is in
process.execPath
, see:https://github.com/joyent/node/blob/master/lib/child_process.js#L444
https://github.com/jashkenas/coffee-script/blob/master/src/command.coffee#L79
So, in current state, it is impossible to fork javascript modules when using
coffee
command.Seems that it's also related to #1303
Context: From a coffeescript project, I'm require-ing a javascript module that forks a new node process and knows nothing about coffee.
The text was updated successfully, but these errors were encountered: