Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix type checking in the parser.

  • Loading branch information...
commit d31295951194ed0cd49bbf44917faa33889eac23 1 parent d662118
@mbebenita authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/esprima.js
View
2  src/esprima.js
@@ -282,7 +282,7 @@
}
function toType(expr) {
- if (expr.type === Syntax.Identifier && expr.name in Types) {
+ if (expr.type === Syntax.Identifier && Types.hasOwnProperty(expr.name)) {
return {
type: Syntax.TypeIdentifier,
name: expr.name
Please sign in to comment.
Something went wrong with that request. Please try again.