diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime-module.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-module.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/src/runtime/runtime-module.cc b/deps/v8/src/runtime/runtime-module.cc index a758050306..5c59a2f997 100644 --- a/deps/v8/src/runtime/runtime-module.cc +++ b/deps/v8/src/runtime/runtime-module.cc @@ -7,6 +7,8 @@ #include "src/arguments.h" #include "src/counters.h" #include "src/objects-inl.h" +#include "src/objects/js-promise.h" +#include "src/objects/module.h" namespace v8 { namespace internal { @@ -17,7 +19,7 @@ RUNTIME_FUNCTION(Runtime_DynamicImportCall) { CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); CONVERT_ARG_HANDLE_CHECKED(Object, specifier, 1); - Handle<Script> script(Script::cast(function->shared()->script())); + Handle<Script> script(Script::cast(function->shared()->script()), isolate); while (script->has_eval_from_shared()) { script = @@ -33,14 +35,14 @@ RUNTIME_FUNCTION(Runtime_GetModuleNamespace) { HandleScope scope(isolate); DCHECK_EQ(1, args.length()); CONVERT_SMI_ARG_CHECKED(module_request, 0); - Handle<Module> module(isolate->context()->module()); - return *Module::GetModuleNamespace(module, module_request); + Handle<Module> module(isolate->context()->module(), isolate); + return *Module::GetModuleNamespace(isolate, module, module_request); } RUNTIME_FUNCTION(Runtime_GetImportMetaObject) { HandleScope scope(isolate); DCHECK_EQ(0, args.length()); - Handle<Module> module(isolate->context()->module()); + Handle<Module> module(isolate->context()->module(), isolate); return *isolate->RunHostInitializeImportMetaObjectCallback(module); } |