Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Cheng Shao's avatar
    aec0deb1
    wasm: make JSVal internal Weak# point to lifted JSVal · aec0deb1
    Cheng Shao authored
    JSVal has an internal Weak# with the unlifted JSVal# object as key to
    arrange its builtin finalization logic. The Weak# used to designate
    Unit_closure as a dummy value; now this commit designates the lifted
    JSVal closure as the Weak# value. This allows the implementation of
    mkWeakJSVal which can be used to observe the liveliness of a JSVal and
    attach a user-specified finalizer.
    
    (cherry picked from commit 4f342431)
    aec0deb1
    History
    wasm: make JSVal internal Weak# point to lifted JSVal
    Cheng Shao authored
    JSVal has an internal Weak# with the unlifted JSVal# object as key to
    arrange its builtin finalization logic. The Weak# used to designate
    Unit_closure as a dummy value; now this commit designates the lifted
    JSVal closure as the Weak# value. This allows the implementation of
    mkWeakJSVal which can be used to observe the liveliness of a JSVal and
    attach a user-specified finalizer.
    
    (cherry picked from commit 4f342431)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.