diff options
Diffstat (limited to 'libdeno/binding.cc')
-rw-r--r-- | libdeno/binding.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libdeno/binding.cc b/libdeno/binding.cc index a1b3f20f1..d292f2638 100644 --- a/libdeno/binding.cc +++ b/libdeno/binding.cc @@ -590,7 +590,7 @@ void DenoIsolate::ResolveOk(const char* filename, const char* source) { } bool ExecuteMod(v8::Local<v8::Context> context, const char* js_filename, - const char* js_source) { + const char* js_source, bool resolve_only) { auto* isolate = context->GetIsolate(); v8::Isolate::Scope isolate_scope(isolate); v8::HandleScope handle_scope(isolate); @@ -616,6 +616,11 @@ bool ExecuteMod(v8::Local<v8::Context> context, const char* js_filename, } CHECK_EQ(v8::Module::kInstantiated, module->GetStatus()); + + if (resolve_only) { + return true; + } + auto result = module->Evaluate(context); if (result.IsEmpty()) { |