зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
fe1f9b330b
Коммит
df8284476d
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче