* Will return the cached version of the script intended for NodeVM or compile it. * * @private * @return {vm.Script} The compiled script * @throws {SyntaxError} If there is a syntax error in the script.
()
| 364 | * @throws {SyntaxError} If there is a syntax error in the script. |
| 365 | */ |
| 366 | _compileNodeVM() { |
| 367 | let script = this._compiledNodeVM; |
| 368 | if (!script) { |
| 369 | this._compiledNodeVM = script = this._compile(MODULE_PREFIX, MODULE_SUFFIX); |
| 370 | } |
| 371 | return script; |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Will return the cached version of the script intended for NodeVM in strict mode or compile it. |