From ee2decb20763f33c1ed0c7eb4453d1db358843b6 Mon Sep 17 00:00:00 2001 From: Johnson Zhang Date: Tue, 18 Apr 2023 17:15:38 +0800 Subject: [PATCH] [Runtime] Fix Can't "query_imports" Bug of VM Executable --- src/runtime/vm/executable.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/vm/executable.cc b/src/runtime/vm/executable.cc index 5696bc5314c1..899d86e9618f 100644 --- a/src/runtime/vm/executable.cc +++ b/src/runtime/vm/executable.cc @@ -116,9 +116,8 @@ PackedFunc Executable::GetFunction(const std::string& name, const ObjectPtr map = args[0]; LoadLateBoundConstantsFromMap(map); }); - } else { - LOG(FATAL) << "Unknown packed function: " << name; } + return nullptr; } const VMFunction& Executable::GetVMFunctionWithName(const std::string& func_name) const {