Bug 1913773 - Ensure mCurrentShmem is valid. r=aosmond
[gecko.git] / dom / workers / test / chromeWorker_worker.sys.mjs
blobee96d7829b2b7c734e0dc06314a6f73f4edeb68a
1 /**
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/publicdomain/zero/1.0/
4  */
6 // our onmessage handler lives in the module.
7 import _ from "./chromeWorker_worker_submod.sys.mjs";
9 if (!("ctypes" in self)) {
10   throw "No ctypes!";
13 // Go ahead and verify that the ctypes lazy getter actually works.
14 if (ctypes.toString() != "[object ctypes]") {
15   throw "Bad ctypes object: " + ctypes.toString();