MCPcopy
hub / github.com/patriksimek/vm2 / compile

Method compile

lib/script.js:304–307  ·  view source on GitHub ↗

* Compile this script. * This is useful to detect syntax errors in the script. * * @public * @return {this} This for chaining. * @throws {SyntaxError} If there is a syntax error in the script.

()

Source from the content-addressed store, hash-verified

302 * @throws {SyntaxError} If there is a syntax error in the script.
303 */
304 compile() {
305 this._compileVM();
306 return this;
307 }
308
309 /**
310 * Get the compiled code.

Callers 2

getCoffeeScriptCompilerFunction · 0.80
vm.jsFile · 0.80

Calls 1

_compileVMMethod · 0.95

Tested by

no test coverage detected