Skip to content

How to sideload PhantomJS Polyfills? #120

@fahrradflucht

Description

@fahrradflucht

I get:

TypeError: undefined is not a constructor (evaluating 'Object.assign({}, state, {
            isFetching: true
          })')

from PhantomJS because Object.assign() seems to be missing. I would like to polyfill it, for example with phantomjs-polyfill-object-assign.

As declared in the Readme of the mentioned project, in Karma you are able to sideload javascript files into Phantom/the page. How would one go about that with hound?

I know polyfilling Object.assign isn't that much code so I could probably do it in the project itself but I would rather not do it if it isn't necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions