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.

TypeError when trying to load angular in PhantomJS #7851

Closed
@smashercosmo

Description

@smashercosmo

TypeError: '[object NodeList]' is not a valid argument for 'Function.prototype.apply' (evaluating 'push.apply') is caused by the line 2594 of angular source.

this line:

push.apply(root, elements);

this is surely a PhantomJS issue, but we could fix it by changing this line to

push.apply(root, slice.call(elements));

do not know if this change will be acceptable, because this variant is little less performant.

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