From 27b732ee9bb26d16fdb4b05fc9346047aeab9965 Mon Sep 17 00:00:00 2001 From: Lukas Bestle Date: Mon, 18 Jan 2016 15:28:41 +0100 Subject: [PATCH] Fix a bug with the new EventEmitter inheritance See https://travis-ci.org/lukasbestle/newdb/jobs/103116844. The build failed for Node 0.10. This fixes it by using a syntax that is supported in all supported Node versions, including v0.10. --- lib/datastore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datastore.js b/lib/datastore.js index cc21bd2..cac521e 100755 --- a/lib/datastore.js +++ b/lib/datastore.js @@ -77,7 +77,7 @@ function Datastore (options) { }); } } -util.inherits(Datastore, require('events')); +util.inherits(Datastore, require('events').EventEmitter); /**