From 5cd7208ef30d5627b5c55f0a235496a5b8a4431e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 9 Feb 2016 08:21:35 -0800 Subject: [PATCH] Fix test fail in phantomjs. --- test/test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 2b0d5e854..5d3cea8d9 100644 --- a/test/test.js +++ b/test/test.js @@ -41,8 +41,9 @@ /** Method and object shortcuts. */ var phantom = root.phantom, + process = root.process, amd = root.define && define.amd, - argv = root.process && process.argv, + argv = process && process.argv, defineProperty = Object.defineProperty, document = !phantom && root.document, body = root.document && root.document.body, @@ -479,7 +480,8 @@ } defineProperty(root, 'Buffer', (function() { var count = 0, - limit = /^0\.12\.\d+$/.test(process.versions.node) ? 2 : 0; + version = lodashStable.get(process, 'versions.node'), + limit = /^0\.12\b/.test(version) ? 2 : 0; return { 'configurable': true,