Gecko does this for external scripts: * https://searchfox.org/mozilla-central/source/dom/script/ScriptLoader.cpp#2619-2620 There's also a setModule function that we should replicate for our module scripts: * https://searchfox.org/mozilla-central/rev/ab26427a8d31be475be11bbae0e04c84cc7f20ef/js/public/CompileOptions.h#566-572
Gecko does this for external scripts:
There's also a setModule function that we should replicate for our module scripts: