mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
0ffcb46e0f
This reverts commit 20aa0796e6
.
`main` has been failing consistenly on `kv_undelivered_test` and
`serve_test` after this upgrade.
16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
import { assert } from "../../../../test_util/std/testing/asserts.ts";
|
|
|
|
onmessage = function (e) {
|
|
if (typeof self.Deno === "undefined") {
|
|
throw new Error("Deno namespace not available in worker");
|
|
}
|
|
|
|
assert(!Object.isFrozen(self.Deno));
|
|
|
|
const desc = Object.getOwnPropertyDescriptor(self, "Deno");
|
|
assert(desc);
|
|
assert(desc.configurable);
|
|
assert(!desc.writable);
|
|
|
|
postMessage(e.data);
|
|
};
|