blueloveTH 3 ani în urmă
părinte
comite
e81c1c4491
2 a modificat fișierele cu 3 adăugiri și 8 ștergeri
  1. 3 3
      tests/_exception.py
  2. 0 5
      web/index.js

+ 3 - 3
tests/_exception.py

@@ -33,10 +33,10 @@ def f1():
             a = {1: 2, 3: 4}
             x = a[0]
         except A:
-            print('<?>')
+            exit(1)
     except B:
-        print('<?>')
-    print('<?>')
+        exit(1)
+    exit(1)
 
 try:
     f1()

+ 0 - 5
web/index.js

@@ -29,11 +29,6 @@ function term_init() {
       switch (e) {
         case '\r': // Enter
           term.write("\r\n");
-          if(command == 'exit()'){
-            stopped = true;
-            term.write("Bye!\r\n");
-            break;
-          }
           need_more_lines = Module.ccall('pkpy_repl_input', 'bool', ['number', 'string'], [repl, command]);
           command = '';
           term.write(need_more_lines ? "... " : ">>> ");