fn module_type_allowed(global: &GlobalScope, module_type: ModuleType) -> bool
https://html.spec.whatwg.org/multipage/#module-type-allowed