Bug 1586757 - Rename .jsm files to .jsm.js to allow type checking; r=julienw

Differential Revision: https://phabricator.services.mozilla.com/D47911

--HG--
rename : devtools/client/performance-new/popup/background.jsm => devtools/client/performance-new/popup/background.jsm.js
rename : devtools/client/performance-new/popup/menu-button.jsm => devtools/client/performance-new/popup/menu-button.jsm.js
extra : moz-landing-system : lando
This commit is contained in:
Greg Tatum 2019-10-08 20:48:04 +00:00
Родитель 59f6ac9ee1
Коммит b4b444658c
9 изменённых файлов: 9 добавлений и 9 удалений

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

@ -64,7 +64,7 @@ loader.lazyImporter(
loader.lazyImporter(
this,
"ProfilerMenuButton",
"resource://devtools/client/performance-new/popup/menu-button.jsm"
"resource://devtools/client/performance-new/popup/menu-button.jsm.js"
);
loader.lazyRequireGetter(
this,

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

@ -35,7 +35,7 @@ const {
setRecordingPreferencesOnBrowser,
getSymbolsFromThisBrowser,
} = ChromeUtils.import(
"resource://devtools/client/performance-new/popup/background.jsm"
"resource://devtools/client/performance-new/popup/background.jsm.js"
);
const { receiveProfile } = require("devtools/client/performance-new/browser");

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

@ -4,8 +4,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
DevToolsModules(
'background.jsm',
'menu-button.jsm',
'background.jsm.js',
'menu-button.jsm.js',
)
with Files('**'):

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

@ -108,7 +108,7 @@ async function makeSureProfilerPopupIsEnabled() {
info("> Load the profiler menu button.");
const { ProfilerMenuButton } = ChromeUtils.import(
"resource://devtools/client/performance-new/popup/menu-button.jsm"
"resource://devtools/client/performance-new/popup/menu-button.jsm.js"
);
if (!ProfilerMenuButton.isEnabled()) {

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

@ -9,7 +9,7 @@
function setupBackgroundJsm() {
const background = ChromeUtils.import(
"resource://devtools/client/performance-new/popup/background.jsm"
"resource://devtools/client/performance-new/popup/background.jsm.js"
);
return background;
}

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

@ -64,7 +64,7 @@ ChromeUtils.defineModuleGetter(
ChromeUtils.defineModuleGetter(
this,
"ProfilerMenuButton",
"resource://devtools/client/performance-new/popup/menu-button.jsm"
"resource://devtools/client/performance-new/popup/menu-button.jsm.js"
);
// We don't want to spend time initializing the full loader here so we create
@ -259,7 +259,7 @@ function isProfilerButtonEnabled() {
XPCOMUtils.defineLazyGetter(this, "ProfilerPopupBackground", function() {
return ChromeUtils.import(
"resource://devtools/client/performance-new/popup/background.jsm"
"resource://devtools/client/performance-new/popup/background.jsm.js"
);
});

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

@ -65,7 +65,7 @@ module.exports = {
browser: false,
"mozilla/jsm": true,
},
files: "**/*.jsm",
files: ["**/*.jsm", "**/*.jsm.js"],
rules: {
"mozilla/mark-exported-symbols-as-used": "error",
// TODO: Bug 1575506 turn `builtinGlobals` on here.