diff --git a/src/wasm/wasm-code-manager.cc b/src/wasm/wasm-code-manager.cc index 778a52ee41..4ea46eb4e5 100644 --- a/src/wasm/wasm-code-manager.cc +++ b/src/wasm/wasm-code-manager.cc @@ -154,6 +154,7 @@ void WasmCode::LogCode(Isolate* isolate) const { native_module()->module()->LookupFunctionName(wire_bytes, index()); WasmName name_vec = wire_bytes.GetNameOrNull(name_ref); if (!name_vec.is_empty()) { + HandleScope scope(isolate); MaybeHandle maybe_name = isolate->factory()->NewStringFromUtf8( Vector::cast(name_vec)); Handle name;