Fix exception argument check (#1875)

The If case didn't work properly when 0 was given to the --exception option.

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
Daniel Balla
2017-06-02 12:25:29 +02:00
committed by László Langó
parent 5eb00b7ae0
commit 13930a1cd4
+2 -2
View File
@@ -901,8 +901,8 @@ def main():
if args.display:
prompt.do_display(args.display)
if args.exception:
prompt.do_exception(args.exception)
if args.exception is not None:
prompt.do_exception(str(args.exception))
while True:
if not non_interactive and prompt.cont: