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

Method foo

test/cases/resource-with-lists/source.js:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 foo() {
13 let list = this.value.foo()
14 const suffix = new TextEncoder().encode(" Thing.foo")
15 let result = new Uint8Array(list.length + suffix.length)
16 result.set(list)
17 result.set(suffix, list.length)
18 return result
19 }
20
21 bar(list) {
22 const suffix = new TextEncoder().encode(" Thing.bar")

Callers 1

testFunction · 0.45

Calls 1

setMethod · 0.80

Tested by 1

testFunction · 0.36