(filename)
| 470 | * @returns {any} The result of the very last statement executed in the script. |
| 471 | */ |
| 472 | const runBytecodeFile = function (filename) { |
| 473 | if (typeof filename !== 'string') { |
| 474 | throw new Error(`filename must be a string. ${typeof filename} was given.`); |
| 475 | } |
| 476 | |
| 477 | const bytecodeBuffer = fs.readFileSync(filename); |
| 478 | |
| 479 | return runBytecode(bytecodeBuffer); |
| 480 | }; |
| 481 | |
| 482 | Module._extensions[COMPILED_EXTNAME] = function (fileModule, filename) { |
| 483 | const bytecodeBuffer = fs.readFileSync(filename); |
nothing calls this directly
no test coverage detected
searching dependent graphs…