• Robert Knight's avatar
    Work around broken URL constructor in PhantomJS 2.x · 393de421
    Robert Knight authored
    Under PhantomJS 2.x `new URL(uri)` works, so the feature test in
    `polyfills.js` passes, but the resulting URL object is an apparently
    empty object.
    
    Properties such as `hostname` and `href` are missing for example.
    
    Load the URL polyfill explicitly in the Karma-specific polyfill module.
    393de421
karma-phantomjs-polyfill.js 941 Bytes