We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following works from the coffeescript REPL but doesnt work if I put it in a file and run it. It says that "a is not defined"
Coffee = require 'coffee-script' a = {b: 1} console.log Coffee.eval('a.b')
The text was updated successfully, but these errors were encountered:
Also, is there any documentation on .eval? I couldn't find any...
.eval
Sorry, something went wrong.
Hmm. sandbox is what I needed:
sandbox
https://github.com/jashkenas/coffeescript/blob/master/src/coffee-script.coffee#L144
I'll leave this issue open for the moment, because I think this ought to be documented
These are methods for internal use in the REPL.
No branches or pull requests
The following works from the coffeescript REPL but doesnt work if I put it in a file and run it. It says that "a is not defined"
The text was updated successfully, but these errors were encountered: