mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Push a temporary execution context for setTimeout
This fixes a crash seen running stream tests.
This commit is contained in:
Notes:
github-actions[bot]
2024-11-01 17:12:52 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/1dc1bebd2af Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2107
@@ -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>
|
||||
Reference in New Issue
Block a user