Skip to content

Commit 43b050e

Browse files
committed
Fix the documentation of getAsObject
The documentation was messed up during the automatic coffeescript to javascript conversion that was done without enough manual review.
1 parent 282f6f6 commit 43b050e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ Module["onRuntimeInitialized"] = function onRuntimeInitialized() {
428428
429429
@example
430430
431-
var stmt = db.prepare("SELECT 5 AS nbr;
432-
var x'616200' AS data;
433-
var NULL AS null_value;");
431+
var stmt = db.prepare(
432+
"SELECT 5 AS nbr, x'010203' AS data, NULL AS null_value;"
433+
);
434434
stmt.step(); // Execute the statement
435435
console.log(stmt.getAsObject());
436436
// Will print {nbr:5, data: Uint8Array([1,2,3]), null_value:null}

0 commit comments

Comments
 (0)