Bug 1777486 - Part 1: Migrate XPCOMUtils.jsm to XPCOMUtils.sys.mjs. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D151213
This commit is contained in:
Tooru Fujisawa 2022-07-11 15:09:13 +00:00
Родитель fe1f9b330b
Коммит df8284476d
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -4,8 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["XPCOMUtils"];
const { AppConstants } = ChromeUtils.import(
"resource://gre/modules/AppConstants.jsm"
);
@ -35,7 +33,7 @@ function redefine(object, prop, value) {
return value;
}
var XPCOMUtils = {
export var XPCOMUtils = {
/**
* Defines a getter on a specified object that will be created upon first use.
*

Просмотреть файл

@ -49,7 +49,7 @@ EXPORTS.mozilla.loader += [
EXTRA_JS_MODULES += [
"ComponentUtils.jsm",
"XPCOMUtils.jsm",
"XPCOMUtils.sys.mjs",
]
FINAL_LIBRARY = "xul"