summaryrefslogtreecommitdiff
path: root/tools/js2c.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-11-24 01:14:06 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-11-24 01:14:09 +0100
commitaa3441ae45b348aa2e1b422d1c5a69b49e909a95 (patch)
treeb418f7059c58be7cc1d77be672c074f43009ee55 /tools/js2c.py
parent335f20896aaf4a96b15e2fcc69b384ef3182f92c (diff)
downloadandroid-node-v8-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.tar.gz
android-node-v8-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.tar.bz2
android-node-v8-aa3441ae45b348aa2e1b422d1c5a69b49e909a95.zip
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.
Diffstat (limited to 'tools/js2c.py')
-rwxr-xr-xtools/js2c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py
index 7c83c67ba6..772a0f5f69 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -206,7 +206,7 @@ def ReadMacros(lines):
fun = eval("lambda " + ",".join(args) + ': ' + body)
macros[name] = PythonMacro(args, fun)
else:
- raise ("Illegal line: " + line)
+ raise Exception("Illegal line: " + line)
return (constants, macros)