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:
Mark Banner 2024-06-11 07:16:02 +00:00
Родитель 089e8b9c84
Коммит 79e066a24a
3 изменённых файлов: 2 добавлений и 4 удалений

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

@ -1,5 +1,3 @@
/* eslint-env worker */
self.onmessage = function () {
let myLocale = Intl.NumberFormat().resolvedOptions().locale;
self.postMessage(myLocale);

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

@ -9,7 +9,7 @@ function run_test() {
let mainThreadLocale = Intl.NumberFormat().resolvedOptions().locale;
let testWorker = new Worker(
"chrome://locale/content/intl_on_workers_worker.js"
"chrome://locale/content/intl_on_workers.worker.js"
);
testWorker.onmessage = function (e) {
try {

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

@ -1,7 +1,7 @@
[DEFAULT]
head =""
support-files = [
"data/intl_on_workers_worker.js",
"data/intl_on_workers.worker.js",
"data/chrome.manifest",
]