mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
Update repl.js
This commit is contained in:
parent
c8d48b3937
commit
c4c48bf47b
1 changed files with 5 additions and 1 deletions
6
repl.js
6
repl.js
|
@ -1549,7 +1549,11 @@ import * as bjson from "qjs:bjson";
|
|||
}
|
||||
mexpr = "";
|
||||
|
||||
eval_and_print(expr);
|
||||
try {
|
||||
eval_and_print(expr);
|
||||
} catch (Exception ex) {
|
||||
console.log(`Error: $(ex)`)
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue