1
0
Fork 0
firefox/devtools/client/webconsole/test/browser/test-console-workers.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
600 B
HTML

<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<meta charset="utf-8">
<title>Console test</title>
</head>
<body>
<script type="text/javascript">
"use strict";
/* exported logFromWorker */
const worker = new Worker("./test-worker.js");
function logFromWorker(message) {
const sab = new SharedArrayBuffer(1024);
worker.postMessage({type: "log-objects", message, sab});
}
</script>
</body>
</html>