diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-08-07 16:33:35 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-08-07 16:33:35 -0700 |
commit | a5778cdf01425ae39cea80b62f9ec6740aec724a (patch) | |
tree | 6b011b6046ca68ee33e2cd811048f3e40558d7d9 /deps/npm/node_modules/npmconf/lib/set-user.js | |
parent | 28eee0adb7884e21217c99cbf10a681c7d91b64a (diff) | |
parent | b0277f35bd86d441255dc5a4c19e577e03f03a47 (diff) | |
download | android-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.tar.gz android-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.tar.bz2 android-node-v8-a5778cdf01425ae39cea80b62f9ec6740aec724a.zip |
Merge remote-tracking branch 'upstream/v0.10' into v0.12
Conflicts:
ChangeLog
Makefile
deps/uv/ChangeLog
deps/uv/build.mk
deps/uv/src/unix/darwin.c
deps/uv/src/unix/getaddrinfo.c
deps/uv/src/version.c
deps/v8/src/checks.h
deps/v8/src/isolate.h
lib/cluster.js
lib/module.js
lib/timers.js
lib/tls.js
src/node_version.h
Diffstat (limited to 'deps/npm/node_modules/npmconf/lib/set-user.js')
-rw-r--r-- | deps/npm/node_modules/npmconf/lib/set-user.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/node_modules/npmconf/lib/set-user.js b/deps/npm/node_modules/npmconf/lib/set-user.js index 2e7774aec3..cf29b1ace2 100644 --- a/deps/npm/node_modules/npmconf/lib/set-user.js +++ b/deps/npm/node_modules/npmconf/lib/set-user.js @@ -1,10 +1,13 @@ module.exports = setUser +var Conf = require('../npmconf.js').Conf +var assert = require('assert') var path = require('path') var fs = require('fs') function setUser (cb) { - var defaultConf = Object.getPrototypeOf(this.root) + var defaultConf = this.root + assert(defaultConf !== Object.prototype) // If global, leave it as-is. // If not global, then set the user to the owner of the prefix folder. |