diff --git a/lib/sqlite3.js b/lib/sqlite3.js index c8e3e8c6c..5d0bdd1df 100644 --- a/lib/sqlite3.js +++ b/lib/sqlite3.js @@ -23,6 +23,9 @@ function normalizeMethod (fn) { } function inherits(target, source) { + if (target == null) + return; + for (var k in source.prototype) target.prototype[k] = source.prototype[k]; }