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,29 @@ function maybeReportResultToServer(result, sync, port) {
# Check an absolute js code size, with some slack.
4299
4302
size=os.path.getsize('test.js')
4300
4303
print('size:', size)
4301
-
# Note that this size includes test harness additions (for reporting the result, etc.).
4302
-
self.assertLess(abs(size-5629), 100)
4304
+
# Note that this size includes test harness additions (so will change when, for example,
4305
+
# browser_reporting.js changed)
4306
+
self.assertLess(abs(size-5496), 100)
4303
4307
4304
4308
# Tests that it is possible to initialize and render WebGL content in a pthread by using OffscreenCanvas.
4305
4309
# -DTEST_CHAINED_WEBGL_CONTEXT_PASSING: Tests that it is possible to transfer WebGL canvas in a chain from main thread -> thread 1 -> thread 2 and then init and render WebGL content there.
0 commit comments