MCPcopy Index your code
hub / github.com/nodejs/node / makeWtf16TestDataSegment

Function makeWtf16TestDataSegment

deps/v8/test/mjsunit/wasm/stringrefs-exec.js:267–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265}
266
267function makeWtf16TestDataSegment() {
268 let data = []
269 let valid = {};
270
271 for (let str of interestingStrings) {
272 valid[str] = { offset: data.length, length: str.length };
273 for (let byte of encodeWtf16LE(str)) {
274 data.push(byte);
275 }
276 }
277
278 return { valid, data: Uint8Array.from(data) };
279};
280
281(function TestStringNewWtf16() {
282 print(arguments.callee.name);

Callers 1

stringrefs-exec.jsFile · 0.70

Calls 3

encodeWtf16LEFunction · 0.70
pushMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected