From e81c1c449158e519ec00cf47f90363c65f0cabd4 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 5 Feb 2023 22:09:50 +0800 Subject: [PATCH] up --- tests/_exception.py | 6 +++--- web/index.js | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/_exception.py b/tests/_exception.py index fef26322..84423b10 100644 --- a/tests/_exception.py +++ b/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() diff --git a/web/index.js b/web/index.js index f1e9b2dd..27dcf996 100644 --- a/web/index.js +++ b/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 ? "... " : ">>> ");