MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / beforeUnloadEventHandlerFunc

Function beforeUnloadEventHandlerFunc

src/lib/libhtml5.js:2039–2041  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2037 $registerBeforeUnloadEventCallback__deps: ['$JSEvents', '$findEventTarget'],
2038 $registerBeforeUnloadEventCallback: (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) => {
2039 var beforeUnloadEventHandlerFunc = (e) => {
2040 // Note: This is always called on the main browser thread, since it needs synchronously return a value!
2041 var confirmationMessage = {{{ makeDynCall('pipp', 'callbackfunc') }}}(eventTypeId, 0, userData);
2042
2043 if (confirmationMessage) {
2044 confirmationMessage = UTF8ToString(confirmationMessage);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected