MCPcopy Create free account
hub / github.com/bytecodealliance/ComponentizeJS / baz

Method baz

test/cases/resource-with-lists/source.js:29–40  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

27 }
28
29 static baz(list) {
30 const suffix = new TextEncoder().encode(" Thing.baz")
31 let result = new Uint8Array(list.length + suffix.length)
32 result.set(list)
33 result.set(suffix, list.length)
34 let list2 = ImportThing.baz(result)
35 const suffix2 = new TextEncoder().encode(" Thing.baz again")
36 let result2 = new Uint8Array(list2.length + suffix2.length)
37 result2.set(list2)
38 result2.set(suffix2, list2.length)
39 return result2
40 }
41}
42
43export const resourceWithLists = {

Callers 1

testFunction · 0.45

Calls 1

setMethod · 0.80

Tested by 1

testFunction · 0.36