Update Benchmark.js to work in PhantomJS.

Former-commit-id: 9145f027f58a3c9f0c8b57b6e340f500ba4c7131
This commit is contained in:
John-David Dalton
2013-03-25 23:23:15 -07:00
parent 86890b13c6
commit aaa8003418

View File

@@ -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.