| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 620e59c6aa32595b31ce2bb77bb54194277142c4..9d379fd5207a80205ef50a809fb463e275abaa96 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -1268,10 +1268,11 @@ WasmDebugInfo* GetDebugInfo(JSObject* wasm) {
|
| return *new_info;
|
| }
|
|
|
| -bool UpdateWasmModuleMemory(JSObject* object, Address old_start,
|
| +bool UpdateWasmModuleMemory(Handle<JSObject> object, Address old_start,
|
| Address new_start, uint32_t old_size,
|
| uint32_t new_size) {
|
| - if (!IsWasmObject(object)) {
|
| + DisallowHeapAllocation no_allocation;
|
| + if (!IsWasmObject(*object)) {
|
| return false;
|
| }
|
|
|
|
|