Skip to content

Commit be241c9

Browse files
committed
Merge pull request sql-js#120 from kaizhu256/patch-1
fixing npm test for nodejs v0.12 (test_database.js)
2 parents 3fdb218 + e9735de commit be241c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports.test = function(sql, assert, done) {
2626

2727
// Export the database to an Uint8Array containing the SQLite database file
2828
var binaryArray = db.export();
29-
assert.strictEqual(String.fromCharCode.apply(null,binaryArray.slice(0,6)), 'SQLite',
29+
assert.strictEqual(String.fromCharCode.apply(null,binaryArray.subarray(0,6)), 'SQLite',
3030
"The first 6 bytes of an SQLite database should form the word 'SQLite'");
3131
db.close();
3232

0 commit comments

Comments
 (0)