LibWeb: Push a temporary execution context for setTimeout

This fixes a crash seen running stream tests.
This commit is contained in:
Shannon Booth
2024-11-02 04:14:46 +13:00
committed by Tim Flynn
parent 4a1e109678
commit 1dc1bebd2a
Notes: github-actions[bot] 2024-11-01 17:12:52 +00:00
8 changed files with 2152 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<!doctype html>
<meta charset=utf-8>
<script>
self.GLOBAL = {
isWindow: function() { return true; },
isWorker: function() { return false; },
isShadowRealm: function() { return false; },
};
</script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/rs-utils.js"></script>
<script src="../resources/test-utils.js"></script>
<script src="../resources/recording-streams.js"></script>
<script src="../resources/rs-test-templates.js"></script>
<div id=log></div>
<script src="../../streams/readable-byte-streams/tee.any.js"></script>