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

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

@43081j

Description

@43081j

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions