Commit 5b590280 5b590280f33df3240bcf93c282d7d7c0772c7fad by Nicolas Perriault

fixed #2: toString representation of WebPage instance should be checked, not the…

… object instance itself
1 parent a5fdadca
...@@ -631,7 +631,7 @@ ...@@ -631,7 +631,7 @@
631 if (phantom.version.major <= 1 && phantom.version.minor < 3) { 631 if (phantom.version.major <= 1 && phantom.version.minor < 3) {
632 return what instanceof WebPage; 632 return what instanceof WebPage;
633 } else { 633 } else {
634 return what.indexOf('WebPage(') === 0; 634 return what.toString().indexOf('WebPage(') === 0;
635 } 635 }
636 } 636 }
637 })(phantom); 637 })(phantom);
......