From aaa800341853195fde76d44ba2e91fbd85f07f76 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 25 Mar 2013 23:23:15 -0700 Subject: [PATCH] Update Benchmark.js to work in PhantomJS. Former-commit-id: 9145f027f58a3c9f0c8b57b6e340f500ba4c7131 --- vendor/benchmark.js/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/benchmark.js/benchmark.js b/vendor/benchmark.js/benchmark.js index e37c86069..eb274b420 100644 --- a/vendor/benchmark.js/benchmark.js +++ b/vendor/benchmark.js/benchmark.js @@ -197,7 +197,7 @@ * @memberOf Benchmark.support * @type Boolean */ - support.browser = doc && isHostType(context, 'navigator'); + support.browser = doc && isHostType(context, 'navigator') && !isHostType(context, 'phantom'); /** * Detect if Java is enabled/exposed.