]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/tests/lib/rules/no-undef.js
import 7.12.1 upstream release
[pve-eslint.git] / eslint / tests / lib / rules / no-undef.js
index 8c9c053a55a4ed1d66fc5c82c00a8702bd7f15bb..43697ec957d7cbe0ab1d678c40459d940679ff96 100644 (file)
@@ -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; }",