Commit 97f4baaa authored by Sathya Gunasekaran's avatar Sathya Gunasekaran Committed by Commit Bot

[modules] Pass native context to HostImportModuleDynamically

Bug: v8:5785
Change-Id: I3d9b530ce3acd5d4685d5565475ea0bb96c822f6
Reviewed-on: https://chromium-review.googlesource.com/559731
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46421}
parent 5641559d
......@@ -3353,8 +3353,7 @@ MaybeHandle<JSPromise> NewRejectedPromise(Isolate* isolate,
MaybeHandle<JSPromise> Isolate::RunHostImportModuleDynamicallyCallback(
Handle<String> source_url, Handle<Object> specifier) {
v8::Local<v8::Context> api_context =
v8::Utils::ToLocal(handle(context(), this));
v8::Local<v8::Context> api_context = v8::Utils::ToLocal(native_context());
if (host_import_module_dynamically_callback_ == nullptr) {
Handle<Object> exception =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment