(text)
| 910 | } |
| 911 | |
| 912 | function runIfWorkerThread(text) { |
| 913 | if (WASM_WORKERS || PTHREADS) { |
| 914 | return `if (${ENVIRONMENT_IS_WORKER_THREAD()}) { ${text} }`; |
| 915 | } else { |
| 916 | return ''; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | function expectToReceiveOnModule(name) { |
| 921 | return INCOMING_MODULE_JS_API.has(name); |
no test coverage detected