Commit 07114d2f authored by Romain Casati's avatar Romain Casati
Browse files

Fix: error handling in javascript kernel.

parent dcc204c0
......@@ -49,7 +49,12 @@
console.error = errCallback;
// evaluation
let result = this.eval(code);
let result;
try {
result = this.eval(code);
} catch (e) {
console.error(e.message);
}
// restoration
console.log = console_log;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment