Skip to content
  • Cheng Shao's avatar
    4f342431
    wasm: make JSVal internal Weak# point to lifted JSVal · 4f342431
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    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.
    4f342431
    wasm: make JSVal internal Weak# point to lifted JSVal
    Cheng Shao authored and Marge Bot's avatar Marge Bot committed
    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.
Loading