You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'JS engine does not provide full typed array support');
306
306
#endif
307
307
308
-
#if IN_TEST_HARNESS
309
-
// Test runs in browsers should always be free from uncaught exceptions. If an uncaught exception is thrown, we fail browser test execution in the REPORT_RESULT() macro to output an error value.
310
-
if(ENVIRONMENT_IS_WEB){
311
-
window.addEventListener('error',function(e){
312
-
if(e.message.includes('unwind'))return;
313
-
console.error('Page threw an exception '+e);
314
-
Module['pageThrewException']=true;
315
-
});
316
-
}
317
-
#endif
318
-
319
308
#if IMPORTED_MEMORY
320
309
// In non-standalone/normal mode, we create the memory here.
if(typeofwindow==='object'&&window&&hasModule&&!Module['pageThrewException']/* for easy debugging, don't close window on failure */)setTimeout(function(){window.close()},1000);
17
+
if(hasWindow&&hasModule&&!keepWindowAlive){
18
+
setTimeout(function(){window.close()},1000);
19
+
}
19
20
}
20
21
21
22
/** @param {boolean=} sync
@@ -25,18 +26,35 @@ function maybeReportResultToServer(result, sync, port) {
0 commit comments