зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1901571 - Rename workers to use the .worker.(m)js pattern for ESLint (intl/). r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D213092
This commit is contained in:
Родитель
089e8b9c84
Коммит
79e066a24a
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-env worker */
|
|
||||||
|
|
||||||
self.onmessage = function () {
|
self.onmessage = function () {
|
||||||
let myLocale = Intl.NumberFormat().resolvedOptions().locale;
|
let myLocale = Intl.NumberFormat().resolvedOptions().locale;
|
||||||
self.postMessage(myLocale);
|
self.postMessage(myLocale);
|
|
@ -9,7 +9,7 @@ function run_test() {
|
||||||
|
|
||||||
let mainThreadLocale = Intl.NumberFormat().resolvedOptions().locale;
|
let mainThreadLocale = Intl.NumberFormat().resolvedOptions().locale;
|
||||||
let testWorker = new Worker(
|
let testWorker = new Worker(
|
||||||
"chrome://locale/content/intl_on_workers_worker.js"
|
"chrome://locale/content/intl_on_workers.worker.js"
|
||||||
);
|
);
|
||||||
testWorker.onmessage = function (e) {
|
testWorker.onmessage = function (e) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
head =""
|
head =""
|
||||||
support-files = [
|
support-files = [
|
||||||
"data/intl_on_workers_worker.js",
|
"data/intl_on_workers.worker.js",
|
||||||
"data/chrome.manifest",
|
"data/chrome.manifest",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче