summaryrefslogtreecommitdiff
path: root/deps/npm/test/need-npm5-update/legacy-npm-self-install.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/test/need-npm5-update/legacy-npm-self-install.js')
-rw-r--r--deps/npm/test/need-npm5-update/legacy-npm-self-install.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/deps/npm/test/need-npm5-update/legacy-npm-self-install.js b/deps/npm/test/need-npm5-update/legacy-npm-self-install.js
index d9d1124bda..6bcd807362 100644
--- a/deps/npm/test/need-npm5-update/legacy-npm-self-install.js
+++ b/deps/npm/test/need-npm5-update/legacy-npm-self-install.js
@@ -9,7 +9,6 @@ var osenv = require('osenv')
var npmpath = path.resolve(__dirname, '../..')
var basepath = path.resolve(osenv.tmpdir(), path.basename(__filename, '.js'))
var globalpath = path.resolve(basepath, 'global')
-var extend = Object.assign || require('util')._extend
var isWin32 = process.platform === 'win32'
test('setup', function (t) {
@@ -41,7 +40,7 @@ function exists () {
test('npm-self-install', function (t) {
if (!tarball) return t.done()
- var env = extend({}, process.env)
+ var env = Object.assign({}, process.env)
var pathsep = isWin32 ? ';' : ':'
env.npm_config_prefix = globalpath
env.npm_config_global = 'true'