Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

add_task(function specify_both() {
// Specifying both should throw.
SimpleTest.doesThrow(() => {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
}, "Should throw if both moduleURI and esModuleURI are specified.");
SimpleTest.doesThrow(() => {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
}, "Should throw if both moduleURI and esModuleURI are specified.");
SimpleTest.doesThrow(() => {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
}, "Should throw if both moduleURI and esModuleURI are specified.");
SimpleTest.doesThrow(() => {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
}, "Should throw if both moduleURI and esModuleURI are specified.");
});
add_task(function specify_mixed() {
// Mixing JSM and ESM should work.
try {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
} finally {
ChromeUtils.unregisterProcessActor("TestProcessActor");
}
try {
ChromeUtils.registerProcessActor("TestProcessActor", {
},
},
});
} finally {
ChromeUtils.unregisterProcessActor("TestProcessActor");
}
});