* Runs a script in the current context. * Internal version of `vm.Script.prototype.runInThisContext()` which skips argument validation. * @param {ReturnType } script - The script to run. * @param {boolean} displayErrors - Whether to display errors. * @param {boolean} breakOn
(script, displayErrors, breakOnFirstLine)
| 216 | * @returns {any} |
| 217 | */ |
| 218 | function runScriptInThisContext(script, displayErrors, breakOnFirstLine) { |
| 219 | return FunctionPrototypeCall( |
| 220 | runInContext, |
| 221 | script, |
| 222 | null, // sandbox - use current context |
| 223 | -1, // timeout |
| 224 | displayErrors, // displayErrors |
| 225 | false, // breakOnSigint |
| 226 | breakOnFirstLine, // breakOnFirstLine |
| 227 | ); |
| 228 | } |
| 229 | |
| 230 | module.exports = { |
| 231 | getHostDefinedOptionId, |
no outgoing calls
no test coverage detected
searching dependent graphs…