Skip to content

Commit df82844

Browse files
committed
Bug 1777486 - Part 1: Migrate XPCOMUtils.jsm to XPCOMUtils.sys.mjs. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151213
1 parent fe1f9b3 commit df82844

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

js/xpconnect/loader/XPCOMUtils.jsm renamed to js/xpconnect/loader/XPCOMUtils.sys.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* License, v. 2.0. If a copy of the MPL was not distributed with this
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
66

7-
var EXPORTED_SYMBOLS = ["XPCOMUtils"];
8-
97
const { AppConstants } = ChromeUtils.import(
108
"resource://gre/modules/AppConstants.jsm"
119
);
@@ -35,7 +33,7 @@ function redefine(object, prop, value) {
3533
return value;
3634
}
3735

38-
var XPCOMUtils = {
36+
export var XPCOMUtils = {
3937
/**
4038
* Defines a getter on a specified object that will be created upon first use.
4139
*

js/xpconnect/loader/moz.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ EXPORTS.mozilla.loader += [
4949

5050
EXTRA_JS_MODULES += [
5151
"ComponentUtils.jsm",
52-
"XPCOMUtils.jsm",
52+
"XPCOMUtils.sys.mjs",
5353
]
5454

5555
FINAL_LIBRARY = "xul"

0 commit comments

Comments
 (0)