Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index ee364b9bc6496d786c93eaf747b163476fa6a922..86d0277f2afcc4bc7b2751399b31805c5eeaf252 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -205,8 +205,10 @@ |
Handle<Object> CallSite::GetFunctionName() { |
if (IsWasm()) { |
- return wasm::GetWasmFunctionNameOrNull(isolate_, wasm_obj_, |
- wasm_func_index_); |
+ MaybeHandle<String> name = |
+ wasm::GetWasmFunctionName(wasm_obj_, wasm_func_index_); |
+ if (name.is_null()) return isolate_->factory()->null_value(); |
+ return name.ToHandleChecked(); |
} |
Handle<String> result = JSFunction::GetName(fun_); |
if (result->length() != 0) return result; |