Skip to content

Commit

Permalink
Add no-undef test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Aug 26, 2020
1 parent 1b72352 commit 312d497
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/lib/rules/no-undef.js
Expand Up @@ -59,6 +59,7 @@ ruleTester.run("no-undef", rule, {
{ code: "requestIdleCallback;", env: { browser: true } },
{ code: "customElements;", env: { browser: true } },
{ code: "PromiseRejectionEvent;", env: { browser: true } },
{ code: "(foo, bar) => { foo ||= WeakRef; bar ??= FinalizationRegistry; }", env: { es2021: true } },

// Notifications of readonly are removed: https://github.com/eslint/eslint/issues/4504
"/*global b:false*/ function f() { b = 1; }",
Expand Down

0 comments on commit 312d497

Please sign in to comment.