Phantomjs: "TypeError: undefined is not a constructor" phantomjs 2.1.1

1

Hello, I tried to listen a webpage using phantomjs 2.1.1 in windows 8.1.
However, when the page load a js, there is an error as follow:
TypeError: undefined is not a constructor (evaluating 'Number.isFinite(V)')
I found the follow code in that js:
(Number.isFinite(z) ? z : 0)
Now ,because of this error, the page can not load normally.
Is there any methods to solved this error?
Thanks!

bourbon1991 picture bourbon1991  ·  14 Mar 2016

Most helpful comment

9

I met the similar problem. How to use injectJs to solve that? And I believe it should be bug.

JiechengZhao picture JiechengZhao  ·  21 Apr 2016

All comments

0

I met the similar problem, and just would like to know what api set is supported for the specific phantomjs version? How I can check if some api is supported? Thanks!

xeoshow picture xeoshow  ·  15 Mar 2016
0

Using injectJs method could solve these kind error.

bourbon1991 picture bourbon1991  ·  22 Mar 2016
9

I met the similar problem. How to use injectJs to solve that? And I believe it should be bug.

JiechengZhao picture JiechengZhao  ·  21 Apr 2016