You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nested functions cause script failure on line 1058 of jsparser3.py :
while (operators and opPrecedence.get(operators[-1].type_) > opPrecedence[NEW]):
easily repeatable, here's the js file i created to get the error message below :
//fakejs.js
function isnumber(numb) {
return !isNaN(parseFloat(numb) && isFinite(numb)
}
error message :
./jsparser3.py ../fakejs.js
Traceback (most recent call last):
File "./jsparser3.py", line 1146, in
print(str(parse(open(sys.argv[1]).read(),sys.argv[1])))
File "./jsparser3.py", line 1140, in parse
n = Script(t, x)
File "./jsparser3.py", line 363, in Script
n = Statements(t, x)
File "./jsparser3.py", line 474, in Statements
n.append(Statement(t, x))
File "./jsparser3.py", line 498, in Statement
return FunctionDefinition(t, x, True, type_)
File "./jsparser3.py", line 757, in FunctionDefinition
f.body = Script(t, x2)
File "./jsparser3.py", line 363, in Script
n = Statements(t, x)
File "./jsparser3.py", line 474, in Statements
n.append(Statement(t, x))
File "./jsparser3.py", line 682, in Statement
n.value = Expression(t, x)
File "./jsparser3.py", line 1058, in Expression
opPrecedence[NEW]):
TypeError: unorderable types: NoneType() > int()
The text was updated successfully, but these errors were encountered:
nested functions cause script failure on line 1058 of jsparser3.py :
while (operators and opPrecedence.get(operators[-1].type_) > opPrecedence[NEW]):
easily repeatable, here's the js file i created to get the error message below :
//fakejs.js
function isnumber(numb) {
return !isNaN(parseFloat(numb) && isFinite(numb)
}
error message :
./jsparser3.py ../fakejs.js
Traceback (most recent call last):
File "./jsparser3.py", line 1146, in
print(str(parse(open(sys.argv[1]).read(),sys.argv[1])))
File "./jsparser3.py", line 1140, in parse
n = Script(t, x)
File "./jsparser3.py", line 363, in Script
n = Statements(t, x)
File "./jsparser3.py", line 474, in Statements
n.append(Statement(t, x))
File "./jsparser3.py", line 498, in Statement
return FunctionDefinition(t, x, True, type_)
File "./jsparser3.py", line 757, in FunctionDefinition
f.body = Script(t, x2)
File "./jsparser3.py", line 363, in Script
n = Statements(t, x)
File "./jsparser3.py", line 474, in Statements
n.append(Statement(t, x))
File "./jsparser3.py", line 682, in Statement
n.value = Expression(t, x)
File "./jsparser3.py", line 1058, in Expression
opPrecedence[NEW]):
TypeError: unorderable types: NoneType() > int()
The text was updated successfully, but these errors were encountered: