Bug 1876988 - Enable ESLint rules no-undef and no-unused-vars. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D199812
This commit is contained in:
Mark Banner 2024-01-29 11:23:59 +00:00
parent e31ec8a399
commit 2cdfd413a4
4 changed files with 8 additions and 2 deletions

View File

@ -177,6 +177,7 @@ const extraBrowserTestPaths = [
"dom/broadcastchannel/tests/",
"dom/events/test/",
"dom/fetch/tests/",
"dom/file/ipc/tests/",
"dom/html/test/",
"dom/indexedDB/test/",
"dom/ipc/tests/",
@ -279,7 +280,6 @@ const extraChromeTestPaths = [
// of the file.
const extraMochitestTestPaths = [
"dom/file/tests/",
"dom/ipc/tests/",
"toolkit/xre/test/",
"accessible/tests/crashtests/",
@ -301,6 +301,7 @@ const extraMochitestTestPaths = [
"dom/encoding/test/",
"dom/events/test/",
"dom/file/tests/",
"dom/file/ipc/tests/",
"dom/filesystem/compat/tests/",
"dom/filesystem/tests/",
"dom/html/test/",
@ -395,6 +396,7 @@ let expectedDupePaths = new Set([
"dom/encoding/test/",
"dom/events/test/",
"dom/file/tests/",
"dom/file/ipc/tests/",
"dom/indexedDB/test/",
"dom/ipc/tests/",
"dom/localstorage/test/",

View File

@ -495,7 +495,6 @@ module.exports = {
"dom/base/test/jsmodules/**",
"dom/canvas/test/**",
"dom/events/test/**",
"dom/file/ipc/tests/**",
"dom/file/tests/**",
"dom/html/test/**",
"dom/media/webrtc/tests/**",

View File

@ -10,6 +10,8 @@
<script type="text/javascript">
function workerScript() {
// Available to workers.
/* global FileReaderSync */
onmessage = function(event) {
let readerMemoryBlob = new FileReaderSync();
let status = readerMemoryBlob.readAsText(new Blob(['hello world'])) == 'hello world';

View File

@ -9,6 +9,9 @@
<body>
<script type="text/javascript">
// Available to workers.
/* global FileReaderSync */
function test_workerOwner() {
info("test_workerOwner");