new vm.SyntheticModule(exportNames, evaluateCallback[, options])
exportNames<string[]> 将从模块中导出的名称数组。evaluateCallback<Function> 当模块被评估时调用。options
创建一个新的 SyntheticModule 实例。
【Creates a new SyntheticModule instance.】
分配给此实例导出的对象可能允许模块的导入者访问指定 context 之外的信息。使用 vm.runInContext() 在特定上下文中创建对象。
【Objects assigned to the exports of this instance may allow importers of
the module to access information outside the specified context. Use
vm.runInContext() to create objects in a specific context.】