Highlight
Sign up
or
Log in
New JavaScript code can be compiled and run immediately or compiled, saved, and run later.
Script.runInThisContext(code, [filename])
Similar to process.compile. Script.runInThisContext compiles code as if it were loaded from filename, runs it and returns the result. Running code does not have access to local scope. filename is optional.
nodejs.org
-
clausd
over 1 year
ago