Skip to content

Commit 8c6d6f5

Browse files
committed
When SharedArrayBuffer is not supported, give browser test runner a small delay to report test being skipped before the test window is closed so that the XHR request can reach the test harness.
1 parent f87bd74 commit 8c6d6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/preamble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ if (typeof SharedArrayBuffer === 'undefined' || typeof Atomics === 'undefined')
11431143
xhr = new XMLHttpRequest();
11441144
xhr.open('GET', 'http://localhost:8888/report_result?skipped:%20SharedArrayBuffer%20is%20not%20supported!');
11451145
xhr.send();
1146-
window.close();
1146+
setTimeout(function() { window.close() }, 2000);
11471147
#endif
11481148
abort('Your browser does not support the SharedArrayBuffer and Atomics specification! Try running in Firefox Nightly.');
11491149
}

0 commit comments

Comments
 (0)