Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Provide my own mixin to replace vanished process.mixin

  • Loading branch information...
commit 760b3ac2870a7bfba3389282a4d4d2d3069c5b9f 1 parent 8a2e068
@grumdrig authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 sqlite.js
View
11 sqlite.js
@@ -16,9 +16,16 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
// TODO: async
+function mixin(target, source) {
+ for (var name in source) {
+ if (source.hasOwnProperty(name))
+ target[name] = source[name];
+ }
+}
+
var bindings = require("./sqlite3_bindings");
-process.mixin(GLOBAL, bindings);
-process.mixin(exports, bindings);
+mixin(GLOBAL, bindings);
+mixin(exports, bindings);
// Conform somewhat to http://dev.w3.org/html5/webdatabase/#sql
Please sign in to comment.
Something went wrong with that request. Please try again.