Permalink
Browse files

Fix call to get_as_num (bug 934463)

This would otherwise crash validation of `'123' in array`
  • Loading branch information...
1 parent 0ecd5df commit 9ce687a48803e819b9e86d12b19f81958b151400 @mattbasta committed Nov 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 appvalidator/testcases/javascript/jstypes.py
@@ -293,7 +293,7 @@ def get(self, traverser, index, instantiate=False):
def has_var(self, name, traverser=None):
index = None
if isinstance(name, types.StringTypes) and name.isdigit():
- index = utils.get_as_num(name, traverser)
+ index = utils.get_as_num(name)
elif isinstance(name, int):
index = name

0 comments on commit 9ce687a

Please sign in to comment.