Permalink
Browse files

Fix type checking in the parser.

  • Loading branch information...
mbebenita committed Jul 31, 2012
1 parent d662118 commit d31295951194ed0cd49bbf44917faa33889eac23
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/esprima.js
View
@@ -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

0 comments on commit d312959

Please sign in to comment.