ghc-experimental: add mkWeakJSVal
This commit adds a mkWeakJSVal function that can be used to set up a Weak pointer with a JSVal key to observe the key's lifetime and optionally attach a finalizer. (cherry picked from commit 55af20e6)
Showing
- libraries/ghc-experimental/src/GHC/Wasm/Prim.hs 1 addition, 0 deletionslibraries/ghc-experimental/src/GHC/Wasm/Prim.hs
- libraries/ghc-internal/src/GHC/Internal/Wasm/Prim.hs 1 addition, 0 deletionslibraries/ghc-internal/src/GHC/Internal/Wasm/Prim.hs
- libraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Types.hs 8 additions, 0 deletionslibraries/ghc-internal/src/GHC/Internal/Wasm/Prim/Types.hs
- testsuite/tests/jsffi/jsffigc.hs 3 additions, 10 deletionstestsuite/tests/jsffi/jsffigc.hs
Loading
Please register or sign in to comment