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