From c5a354a1d6ba46aeac61e02322d1d72928c0befd Mon Sep 17 00:00:00 2001 From: Zibi Braniecki Date: Fri, 25 Aug 2017 12:59:18 -0700 Subject: [PATCH] Bug 1393928 - Expose intl/l10n .jsm APIs explicitly. r=mossop MozReview-Commit-ID: Z57nlQJnQT --HG-- extra : rebase_source : 5b6e5e804a14eef7847dfa1aada4588d401a43f6 --- intl/l10n/L10nRegistry.jsm | 2 +- intl/l10n/Localization.jsm | 2 +- intl/l10n/MessageContext.jsm | 2 +- tools/lint/eslint/modules.json | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/intl/l10n/L10nRegistry.jsm b/intl/l10n/L10nRegistry.jsm index c85b842b5d9f..a378d25e779e 100644 --- a/intl/l10n/L10nRegistry.jsm +++ b/intl/l10n/L10nRegistry.jsm @@ -343,4 +343,4 @@ this.L10nRegistry = L10nRegistry; this.FileSource = FileSource; this.IndexedFileSource = IndexedFileSource; -this.EXPORTED_SYMBOLS = []; +this.EXPORTED_SYMBOLS = ['L10nRegistry', 'FileSource', 'IndexedFileSource']; diff --git a/intl/l10n/Localization.jsm b/intl/l10n/Localization.jsm index de88b102b0b6..4a04ab1e59af 100644 --- a/intl/l10n/Localization.jsm +++ b/intl/l10n/Localization.jsm @@ -403,4 +403,4 @@ function keysFromContext(method, ctx, keys, translations) { } this.Localization = Localization; -this.EXPORTED_SYMBOLS = []; +this.EXPORTED_SYMBOLS = ['Localization']; diff --git a/intl/l10n/MessageContext.jsm b/intl/l10n/MessageContext.jsm index dce9c5d29df2..93c29c00b002 100644 --- a/intl/l10n/MessageContext.jsm +++ b/intl/l10n/MessageContext.jsm @@ -1861,4 +1861,4 @@ class MessageContext { } this.MessageContext = MessageContext; -this.EXPORTED_SYMBOLS = []; +this.EXPORTED_SYMBOLS = ['MessageContext']; diff --git a/tools/lint/eslint/modules.json b/tools/lint/eslint/modules.json index f2d15cae99c9..dfcfe0b4231a 100644 --- a/tools/lint/eslint/modules.json +++ b/tools/lint/eslint/modules.json @@ -117,9 +117,11 @@ "kinto-http-client.js": ["KintoHttpClient"], "kinto-offline-client.js": ["Kinto"], "kinto-storage-adapter.js": ["FirefoxAdapter"], + "L10nRegistry.jsm": ["L10nRegistry", "FileSource", "IndexedFileSource"], "loader-plugin-raw.jsm": ["requireRawId"], "loader.js": ["WorkerDebuggerLoader", "worker"], "Loader.jsm": ["DevToolsLoader", "devtools", "BuiltinProvider", "require", "loader"], + "Localization.jsm": ["Localization"], "logger.jsm": ["Logger"], "logging.js": ["getTestLogger", "initTestLogging"], "LoginManagerContent.jsm": ["LoginManagerContent", "LoginFormFactory", "UserAutoCompleteResult"], @@ -131,6 +133,7 @@ "MatchPattern.jsm": ["MatchPattern", "MatchGlobs", "MatchURLFilters"], "mcc_iso3166_table.jsm": ["MCC_ISO3166_TABLE"], "message.js": ["Command", "Message", "MessageOrigin", "Response"], + "MessageContext.jsm": ["MessageContext"], "Messaging.jsm": ["sendMessageToJava", "Messaging", "EventDispatcher"], "microformat-shiv.js": ["Microformats"], "MigrationUtils.jsm": ["MigrationUtils", "MigratorPrototype"],