From a5ca50babecb0db624a497c57f7de34e7e2c743d Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Fri, 22 Nov 2013 14:02:56 -0500 Subject: [PATCH] use path trick to load local util module Gets around the node.js limitation of always loading core modules even if you have the same name installed locally. --- assert.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert.js b/assert.js index 22897d3..95dd5b2 100644 --- a/assert.js +++ b/assert.js @@ -25,7 +25,7 @@ // when used in node, this will actually load the util module we depend on // versus loading the builtin util module as happens otherwise // this is a bug in node module loading as far as I am concerned -var util = require('./node_modules/util'); +var util = require('util/'); var pSlice = Array.prototype.slice;