Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

NodeList is not a valid argument for push.apply (PhantomJS) #7877

Closed
43081j opened this issue Jun 17, 2014 · 1 comment
Closed

NodeList is not a valid argument for push.apply (PhantomJS) #7877

43081j opened this issue Jun 17, 2014 · 1 comment

Comments

@43081j
Copy link

43081j commented Jun 17, 2014

AngularJS: 1.3.0-build.2831+sha.d7bfda6
PhantomJS: 1.9.7 (Windows)

It appears in 1.3 (have not tried 1.2), PhantomJS fails when reaching src/jqLite.js#L388, due to push.apply being unable to accept a NodeList.

This occurs for me in my karma tests when using PhantomJS as the browser.

The full error is as follows:

TypeError: '[object NodeList]' is not a valid argument for 'Function.prototype.apply' (evaluating 'push.apply')
  at F:/app/bower_components/angular/angular.js:2594

Running the same tests in chrome works as expected.

@caitp
Copy link
Contributor

caitp commented Jun 17, 2014

Hi, this is a dupe of issue #7851 --- please continue discussion over there, thanks

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

No branches or pull requests

2 participants