As per the spec of the processing model for asynchronous transactions, I would expect the following output:
1
2
4 Error: boom
And for the transaction to be rolled back. Specifically, I am referring to item 6.6 here:
If the callback was invoked and raised an exception, jump to the last step in the overall steps.
Instead, I get the following output:
1
2
/tmp/foo/dbtxn.js:11
throw new Error("boom");
^
Error: boom
at SQLTask.sqlCallback (/tmp/foo/dbtxn.js:11:13)
at /tmp/foo/node_modules/websql/lib/websql/WebSQLTransaction.js:70:19
at checkDone (/tmp/foo/node_modules/websql/lib/sqlite/SQLiteDatabase.js:50:7)
at /tmp/foo/node_modules/websql/lib/sqlite/SQLiteDatabase.js:59:7
at Statement.<anonymous> (/tmp/foo/node_modules/websql/lib/sqlite/SQLiteDatabase.js:21:5)
And the whole process terminates with an exit code of 1.
Given the following code:
As per the spec of the processing model for asynchronous transactions, I would expect the following output:
And for the transaction to be rolled back. Specifically, I am referring to item 6.6 here:
Instead, I get the following output:
And the whole process terminates with an exit code of 1.