static code(script, filename, options) {
    if (filename != null) {
      if ('object' === typeof filename) {
        options = filename;
        filename = null;
      } else if ('string' === typeof filename) {
        filename = pa.resolve(filename);
      } else {
        throw new VMError('Invalid arguments.');
      }
    }

    if (arguments.length > 3) {
      throw new VMError('Invalid number of arguments.');
    }

    return new NodeVM(options).run(script, filename);
  }
Create NodeVM and run code inside it.

@param {String} script Javascript code.
@param {String} [filename] File name (used in stack traces only).
@param {Object} [options] VM options.
@return {NodeVM} VM.