---
source: crates/oxc_linter/src/tester.rs
expression: no_shadow_restricted_names
---
  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·          ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·              ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·                         ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·                                        ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·                                            ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function NaN(NaN) { var NaN; !function NaN(NaN) { try {} catch(NaN) {} }; }
   ·                                                                ───
   ╰────
  help: Shadowing of global properties 'NaN'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function undefined(undefined) { !function undefined(undefined) { try {} catch(undefined) {} }; }
   ·          ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function undefined(undefined) { !function undefined(undefined) { try {} catch(undefined) {} }; }
   ·                    ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function undefined(undefined) { !function undefined(undefined) { try {} catch(undefined) {} }; }
   ·                                           ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function undefined(undefined) { !function undefined(undefined) { try {} catch(undefined) {} }; }
   ·                                                     ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function undefined(undefined) { !function undefined(undefined) { try {} catch(undefined) {} }; }
   ·                                                                               ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·          ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·                   ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·                                   ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·                                                       ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·                                                                ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function Infinity(Infinity) { var Infinity; !function Infinity(Infinity) { try {} catch(Infinity) {} }; }
   ·                                                                                         ────────
   ╰────
  help: Shadowing of global properties 'Infinity'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·          ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·                    ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·                                     ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·                                                          ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·                                                                    ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function arguments(arguments) { var arguments; !function arguments(arguments) { try {} catch(arguments) {} }; }
   ·                                                                                              ─────────
   ╰────
  help: Shadowing of global properties 'arguments'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·          ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·               ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                           ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                           ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                                ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ function eval(eval) { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                                                     ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·     ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·             ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                            ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                            ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                                 ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var eval = (eval) => { var eval; !function eval(eval) { try {} catch(eval) {} }; }
   ·                                                                      ────
   ╰────
  help: Shadowing of global properties 'eval'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var {undefined} = obj; var {a: undefined} = obj; var {a: {b: {undefined}}} = obj; var {a, ...undefined} = obj;
   ·      ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var {undefined} = obj; var {a: undefined} = obj; var {a: {b: {undefined}}} = obj; var {a, ...undefined} = obj;
   ·                                ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var {undefined} = obj; var {a: undefined} = obj; var {a: {b: {undefined}}} = obj; var {a, ...undefined} = obj;
   ·                                                               ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var {undefined} = obj; var {a: undefined} = obj; var {a: {b: {undefined}}} = obj; var {a, ...undefined} = obj;
   ·                                                                                              ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var normal, undefined; undefined = 5;
   ·             ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ try {} catch(undefined: undefined) {}
   ·              ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ var [undefined] = [1]
   ·      ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ class undefined { }
   ·       ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ class foo { undefined(undefined) { } }
   ·                       ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.

  ⚠ eslint(no-shadow-restricted-names): Shadowing of global properties such as 'undefined' is not allowed.
   ╭─[no_shadow_restricted_names.tsx:1:1]
 1 │ class foo { #undefined(undefined) { } }
   ·                        ─────────
   ╰────
  help: Shadowing of global properties 'undefined'.


