зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1610653 - Part 23: Stop using global this to define variable in devtools/. r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D146556
This commit is contained in:
Родитель
d82651ba0d
Коммит
288f7cc11f
|
@ -869,7 +869,8 @@ function registerProfileCaptureForBrowser(
|
|||
}
|
||||
|
||||
// Provide a fake module.exports for the JSM to be properly read by TypeScript.
|
||||
/** @type {any} */ (this).module = { exports: {} };
|
||||
/** @type {any} */
|
||||
var module = { exports: {} };
|
||||
|
||||
module.exports = {
|
||||
presets,
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
*/
|
||||
|
||||
// Provide an exports object for the JSM to be properly read by TypeScript.
|
||||
/** @type {any} */ (this).exports = {};
|
||||
/** @type {any} */
|
||||
var exports = {};
|
||||
|
||||
const { createLazyLoaders } = ChromeUtils.import(
|
||||
"resource://devtools/client/performance-new/typescript-lazy-load.jsm.js"
|
||||
|
|
|
@ -352,7 +352,8 @@ function initializePopup(panelState, panelview) {
|
|||
}
|
||||
|
||||
// Provide an exports object for the JSM to be properly read by TypeScript.
|
||||
/** @type {any} */ (this).module = {};
|
||||
/** @type {any} */
|
||||
var module = {};
|
||||
|
||||
module.exports = {
|
||||
initializePopup,
|
||||
|
|
|
@ -355,7 +355,8 @@ function createLocalSymbolicationService(sharedLibraries, objdirs, perfFront) {
|
|||
}
|
||||
|
||||
// Provide an exports object for the JSM to be properly read by TypeScript.
|
||||
/** @type {any} */ (this).module = {};
|
||||
/** @type {any} */
|
||||
var module = {};
|
||||
|
||||
module.exports = {
|
||||
createLocalSymbolicationService,
|
||||
|
|
|
@ -43,7 +43,8 @@ function createLazyLoaders(definition) {
|
|||
}
|
||||
|
||||
// Provide an exports object for the JSM to be properly read by TypeScript.
|
||||
/** @type {any} */ (this).module = {};
|
||||
/** @type {any} */
|
||||
var module = {};
|
||||
|
||||
module.exports = {
|
||||
createLazyLoaders,
|
||||
|
|
Загрузка…
Ссылка в новой задаче