Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

"TypeError: undefined is not a constructor" phantomjs 2.1.1 #14096

Closed
bourbon1991 opened this issue Mar 14, 2016 · 3 comments
Closed

"TypeError: undefined is not a constructor" phantomjs 2.1.1 #14096

bourbon1991 opened this issue Mar 14, 2016 · 3 comments

Comments

@bourbon1991
Copy link

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!

@xeoshow
Copy link

xeoshow commented Mar 15, 2016

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!

@bourbon1991
Copy link
Author

Using injectJs method could solve these kind error.

@JiechengZhao
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants