Skip to content

Commit

Permalink
Fix isIdentifier typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 22, 2019
1 parent 15acb86 commit d7cbc20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/parse/maybe-identifier.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isIdentifer from "./is-identifier.js"
import isIdentifier from "./is-identifier.js"
import shared from "../shared.js"

function init() {
Expand All @@ -7,7 +7,7 @@ function init() {

let parent = path.getParentNode()

if (! isIdentifer(node, parent)) {
if (! isIdentifier(node, parent)) {
return
}

Expand Down
4 changes: 2 additions & 2 deletions src/visitor/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import COMPILER from "../constant/compiler.js"

import Visitor from "../visitor.js"

import isIdentifer from "../parse/is-identifier.js"
import isIdentifier from "../parse/is-identifier.js"
import isShadowed from "../parse/is-shadowed.js"
import overwrite from "../parse/overwrite.js"
import shared from "../shared.js"
Expand Down Expand Up @@ -81,7 +81,7 @@ function init() {

if ((type === "UnaryExpression" &&
parent.operator === "typeof") ||
! isIdentifer(node, parent) ||
! isIdentifier(node, parent) ||
isShadowed(path, "eval", shadowedMap)) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions src/visitor/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import COMPILER from "../constant/compiler.js"

import Visitor from "../visitor.js"

import isIdentifer from "../parse/is-identifier.js"
import isIdentifier from "../parse/is-identifier.js"
import isShadowed from "../parse/is-shadowed.js"
import shared from "../shared.js"

Expand Down Expand Up @@ -92,7 +92,7 @@ function init() {

if ((type === "UnaryExpression" &&
parent.operator === "typeof") ||
! isIdentifer(node, parent) ||
! isIdentifier(node, parent) ||
isShadowed(path, name, shadowedMap)) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions src/visitor/undeclared.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import COMPILER from "../constant/compiler.js"

import Visitor from "../visitor.js"

import isIdentifer from "../parse/is-identifier.js"
import isIdentifier from "../parse/is-identifier.js"
import isShadowed from "../parse/is-shadowed.js"
import maybeIdentifier from "../parse/maybe-identifier.js"
import overwrite from "../parse/overwrite.js"
Expand Down Expand Up @@ -36,7 +36,7 @@ function init() {
const { name } = node

if (! this.undeclared.has(name) ||
! isIdentifer(node, parent) ||
! isIdentifier(node, parent) ||
isShadowed(path, name, shadowedMap)) {
return
}
Expand Down

0 comments on commit d7cbc20

Please sign in to comment.