runFile(filename) {
		const resolvedFilename = pa.resolve(filename);

		if (!fs.existsSync(resolvedFilename)) {
			throw new VMError(`Script '${filename}' not found.`);
		}

		if (fs.statSync(resolvedFilename).isDirectory()) {
			throw new VMError('Script must be file, got directory.');
		}

		return this.run(fs.readFileSync(resolvedFilename, 'utf8'), resolvedFilename);
	}
Run the code in VM.

@public
@since v3.9.0
@param {string} filename - Filename of file to load and execute in a NodeVM.
@return {*} Result of executed code.
@throws {Error} If filename is not a valid filename.
@throws {SyntaxError} If there is a syntax error in the script.
@throws {Error} An error is thrown when the script took to long and there is a timeout.
@throws {*} If the script execution terminated with an exception it is propagated.