Skip to content
  • Cheng Shao's avatar
    01111760
    wasm: properly pin the raiseJSException closure · 01111760
    Cheng Shao authored
    We used to use keepAlive# to pin the raiseJSException closure when
    blocking on a JSFFI import thunk, since it can potentially be used by
    RTS. But raiseJSException may be used in other places as well (e.g.
    the promise.throwTo logic), and it's better to simply unconditionally
    pin it in the JSFFI initialization logic.
    
    (cherry picked from commit da34f0aa)
    (cherry picked from commit feecaeed)
    01111760
    wasm: properly pin the raiseJSException closure
    Cheng Shao authored
    We used to use keepAlive# to pin the raiseJSException closure when
    blocking on a JSFFI import thunk, since it can potentially be used by
    RTS. But raiseJSException may be used in other places as well (e.g.
    the promise.throwTo logic), and it's better to simply unconditionally
    pin it in the JSFFI initialization logic.
    
    (cherry picked from commit da34f0aa)
    (cherry picked from commit feecaeed)
Loading