deno/tests/specs/npm/workers/worker5.mjs
Bartek Iwańczuk 1f02d34877
fix: remove self from global middleware (#29734)
Follow up to https://github.com/denoland/deno/pull/29543 that does
the same for `self` global. Unfortunately this omission led to a problem
described in https://github.com/denoland/deno/issues/29726 where
packages started thinking that they are being run in a web worker
context (because they are!) but the expected "self" global is not
there.
2025-06-13 12:48:26 +02:00

4 lines
84 B
JavaScript

import "npm:@denotest/check-worker-globals/inverse";
console.log(5);
self.close();