Open ambiguousname opened 1 week ago
Overly conservative edge setup.
For instance, Foo.bar should have this.#aEdge
instead of this
for aEdges
.
We could either immediately destroy anything, or register a garbage collection hook
Set anything that we pass into WASM to something that wasm can't parse when it is destroyed.
Possible values: Symbol() or bigints
When returning a reference to an opaque, skip the step where you register the opaque with the FinalizationRegistry
(and make sure selfEdge is appropriately populated when a method does this)
For opaques: If we don't want to retain the
selfEdge
argument itself, we couldthis.#selfEdge.push(...selfEdge)
(seeexample/ICU4XDataProvider
for an example of this)Need to do more testing for anything borrowed: slices, structs, opaques, etc.