| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index f4cf505f5a910761dda7ba846dcc2f4ee630be89..9791cd9f7a1d846864c5cec63d1efffdc69485e4 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -1822,6 +1822,9 @@ int32_t GetInstanceMemorySize(Isolate* isolate, Handle<JSObject> instance) {
|
|
|
| int32_t GrowInstanceMemory(Isolate* isolate, Handle<JSObject> instance,
|
| uint32_t pages) {
|
| + if (pages == 0) {
|
| + return GetInstanceMemorySize(isolate, instance);
|
| + }
|
| Address old_mem_start = nullptr;
|
| uint32_t old_size = 0, new_size = 0;
|
|
|
|
|