Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Cheng Shao's avatar
    feecaeed
    wasm: properly pin the raiseJSException closure · feecaeed
    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)
    feecaeed
    History
    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)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.