Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Note: These are not the same thing as standard JavaScript modules. See export
and import
to learn more about how to use standard modules.
JavaScript code modules let multiple privileged JavaScript scopes share code. For example, a module could be used by Firefox itself as well as by extensions, in order to avoid code duplication.
Components.utils.import
Components.utils.unload
Date
objects and ISO 8601 date strings.ChromeWorker
which uses Promises to return the worker's result instead of using an event to do so.yield
operator.window.setTimeout
.