Permalink
Browse files

Make PhantomJS work w/o erroring.

  • Loading branch information...
1 parent e5cfd1a commit 5ae8daf59d92f58bf3179afadb38d543623aef48 @jdalton jdalton committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark.js
View
@@ -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.

0 comments on commit 5ae8daf

Please sign in to comment.