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

Method addLocals

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:1297–1304  ·  view source on GitHub ↗
(type, count, names)

Source from the content-addressed store, hash-verified

1295 }
1296
1297 addLocals(type, count, names) {
1298 this.locals.push({type: type, count: count});
1299 names = names || [];
1300 if (names.length > count) throw new Error('too many locals names given');
1301 this.local_names.push(...names);
1302 if (count > names.length) this.local_names.push(count - names.length);
1303 return this;
1304 }
1305
1306 end() {
1307 return this.module;

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected