Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: js/xpconnect/tests/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
add_task(async function() {
let caught = false;
try {
ChromeUtils.importESModule("data:text/javascript,");
} catch (e) {
caught = true;
Assert.equal(e.message, "System modules must be loaded from a trusted scheme");
}
Assert.ok(caught);
});