MCPcopy Create free account
hub / github.com/nodejs/node / grow

Function grow

deps/v8/test/mjsunit/wasm/memory64.js:210–214  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

208
209 let instance = builder.instantiate();
210 function grow(arg) {
211 instance.exports.grow(arg);
212 let i64_arr = new BigInt64Array(instance.exports.memory.buffer, 0, 1);
213 return i64_arr[0];
214 }
215
216 assertEquals(1n, grow(2n));
217 assertEquals(3n, grow(1n));

Calls

no outgoing calls

Tested by

no test coverage detected