Skip to content
Permalink
Browse files

Fix: no-obj-calls false positive (fixes #12437) (#12467)

  • Loading branch information
mysticatea authored and kaicataldo committed Oct 24, 2019
1 parent b3dbd96 commit 49faefbee3fc7daaf2482d9d7d23513d6ffda9e8
Showing with 5 additions and 1 deletion.
  1. +1 −1 package.json
  2. +4 −0 tests/lib/rules/no-obj-calls.js
@@ -52,7 +52,7 @@
"debug": "^4.0.1",
"doctrine": "^3.0.0",
"eslint-scope": "^5.0.0",
"eslint-utils": "^1.4.2",
"eslint-utils": "^1.4.3",
"eslint-visitor-keys": "^1.1.0",
"espree": "^6.1.2",
"esquery": "^1.0.1",
@@ -61,6 +61,10 @@ ruleTester.run("no-obj-calls", rule, {
{
code: "function foo() { var Atomics = bar(); var baz = Atomics(5); }",
globals: { Atomics: false }
},
{
code: "var construct = typeof Reflect !== \"undefined\" ? Reflect.construct : undefined; construct();",
globals: { Reflect: false }
}
],
invalid: [

0 comments on commit 49faefb

Please sign in to comment.