ariya / phantomjs

Scriptable Headless Browser
http://phantomjs.org
BSD 3-Clause "New" or "Revised" License
29.46k stars 5.76k forks source link

TypeError: When babel-polyfill.js and custom-elements.js are used. #15446

Closed vbrin27 closed 4 years ago

vbrin27 commented 4 years ago

I am using babel polyfill && custom-elements.min.js for my website and I have concatenated both the polyfills in a single file.

When I try to run the testcases in PhantomJS(v 2.1.1) headless browser by loading this file in Karma testrunner, some errors are thrown which are not reproduced in other browsers.

The above issue is thrown in babel polyfill and if babel polyfill alone is used without custom-elements polyfill, there are no errors.

Error thrown: with

The code which causes the error: (Line No: 5345) enter image description here

Is there a way to solve this issue?

stale[bot] commented 4 years ago

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

jgonggrijp commented 4 years ago

@vbrin27 The 2.x branch is no longer supported. See #15344. You may want to try whether the master branch works for you (future version 3). It has installation instructions.