fune/js/xpconnect/tests/unit/es6module_parse_error.js
Tooru Fujisawa cd99fa9ea8 Bug 1777801 - Check for failure before attempting to instantiate module graph in mozJSModuleLoader::ImportESModule r=arai
This fixes the overly general context kind checks pointed out in the bug and
adds error checking in ImportESModule.

This also showed that JS::ClearModuleEnvironment could fail if the module's
environment had not been initialized yet.

This patch also adds a couple more tests.

Differential Revision: https://phabricator.services.mozilla.com/D151006
2022-07-05 11:38:22 +00:00

1 line
21 B
JavaScript

this is not valid JS