当未指定或未定义 importModuleDynamically 选项时


¥When the importModuleDynamically option is not specified or undefined

如果未指定此选项,或者如果是 undefined,则包含 import() 的代码仍可以由 vm API 编译,但当执行编译后的代码并实际调用 import() 时,结果将拒绝并显示 ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING

¥If this option is not specified, or if it's undefined, code containing import() can still be compiled by the vm APIs, but when the compiled code is executed and it actually calls import(), the result will reject with ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING.