-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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
How do you create an environment? #16
Comments
The readme is wrong.
|
You can find an example of a successful environment object creation here Example: js = CommonJS::Environment.new(V8::Context.new, path: './node_modules') |
Any ideas on how I can eval() js code now if I am using commonjs and therubyracer? |
What rogsmith said :) |
Looking at the source - this will just add them as modules into the existing runtime, you would re-use the |
The README says
But it doesn't explain what the path to lib directory is supposed to be a path to? What library? I've tried using the current directory but get an error.
The text was updated successfully, but these errors were encountered: