Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android' && os_version == '14' && arch == 'x86_64'
- Manifest: js/xpconnect/tests/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
add_task(async function testJsonImportAttributeInWorker() {
let { promise, resolve } = Promise.withResolvers();
worker.onmessage = event => {
resolve(event.data);
};
worker.postMessage("");
const result = await promise;
Assert.equal(result.value, 42);
});