From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- remote/doc/marionette/CodeStyle.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'remote/doc/marionette') 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 -- cgit v1.2.3