Commit 05a61e46 authored by Romain Casati's avatar Romain Casati
Browse files

Execution count is incremented event with errors for JS and SQL.

parent ca504041
......@@ -48,6 +48,8 @@
console.log = outCallback;
console.error = errCallback;
this.execution_count++;
// evaluation
let result;
try {
......@@ -63,7 +65,7 @@
// return result
if( typeof result !== 'undefined' )
result = {'text/plain': JSON.stringify(result)};
return [result, ++this.execution_count];
return [result, this.execution_count];
};
ps1 () { return " js> "; };
......
......@@ -78,6 +78,8 @@
// force interactivity in all modes
data.interactive = true;
this.execution_count++;
let result = this.db.exec(code);
// return result
......@@ -88,7 +90,7 @@
result = {'text/plain': this.text_table(result[0]),
'text/html': this.html_table(result[0])};
}
return [result, ++this.execution_count];
return [result, this.execution_count];
};
ps1 () { return "sql> "; };
......
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