mirror of https://github.com/nodejs/node.git
js2c: raise proper Exception, not a string
Fixes the following error message: TypeError: exceptions must be old-style classes or derived from BaseException, not str Fixes #4303.pull/24504/head
parent
335f20896a
commit
aa3441ae45
|
@ -206,7 +206,7 @@ def ReadMacros(lines):
|
||||||
fun = eval("lambda " + ",".join(args) + ': ' + body)
|
fun = eval("lambda " + ",".join(args) + ': ' + body)
|
||||||
macros[name] = PythonMacro(args, fun)
|
macros[name] = PythonMacro(args, fun)
|
||||||
else:
|
else:
|
||||||
raise ("Illegal line: " + line)
|
raise Exception("Illegal line: " + line)
|
||||||
return (constants, macros)
|
return (constants, macros)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue