summaryrefslogtreecommitdiffstats
path: root/remote/doc/marionette/CodeStyle.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /remote/doc/marionette/CodeStyle.md
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'remote/doc/marionette/CodeStyle.md')
-rw-r--r--remote/doc/marionette/CodeStyle.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/remote/doc/marionette/CodeStyle.md b/remote/doc/marionette/CodeStyle.md
index 0658018a46..19c7ff716d 100644
--- a/remote/doc/marionette/CodeStyle.md
+++ b/remote/doc/marionette/CodeStyle.md
@@ -21,15 +21,14 @@ Marionette is written in JavaScript and ships
as part of Firefox. We have access to all the latest ECMAScript
features currently in development, usually before it ships in the
wild and we try to make use of new features when appropriate,
-especially when they move us off legacy internal replacements
-(such as Promise.jsm and Task.jsm).
+especially when they move us off legacy internal replacements.
One of the peculiarities of working on JavaScript code that ships as
part of a runtime platform is, that unlike in a regular web document,
we share a single global state with the rest of Firefox. This means
we have to be responsible and not leak resources unnecessarily.
-JS code in Gecko is organised into _modules_ carrying _.js_ or _.jsm_
+JS code in Gecko is organised into _modules_ carrying _.js_ or _.sys.mjs_
file extensions. Depending on the area of Gecko you’re working on,
you may find they have different techniques for exporting symbols,
varying indentation and code style, as well as varying linting
@@ -178,7 +177,7 @@ The practical details of working on the Marionette code is outlined
in [Contributing.md], but generally you do not have to re-build
Firefox when changing code. Any change to remote/marionette/*.js
will be picked up on restarting Firefox. The only notable exception
-is remote/components/Marionette.jsm, which does require
+is remote/components/Marionette.sys.mjs, which does require
a re-build.
[strict mode]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Strict_mode