From 72a882908d4d6cde9c1fb50940a924a9fd68f28f Mon Sep 17 00:00:00 2001 From: NomiAdam Date: Sat, 9 Mar 2019 20:36:34 +0100 Subject: [PATCH] Update sqlite3.js QUICK FIX, of cannot read property prototype of undefined --- lib/sqlite3.js | 3 +++ 1 file changed, 3 insertions(+) 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]; }