Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test evaluation context selector</title>
</head>
<body>
<h1 id="top-level">Test evaluation context selector</h1>
<script>
"use strict";
console.log("top-level", document);
globalThis.foobar = "hello";
globalThis.foobaz = "world";
globalThis.worker = new Worker(`data:application/javascript,console.log("worker")`, { name: "my worker" });
</script>
</body>
</html>