Update repl.js

This commit is contained in:
The Ghost of FOSS' Future 2025-01-08 22:53:12 +00:00 committed by GitHub
parent c8d48b3937
commit c4c48bf47b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}