Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Support Node environment for url.js #149

Open
lexaurin opened this issue Jun 18, 2018 · 1 comment
Open

Support Node environment for url.js #149

lexaurin opened this issue Jun 18, 2018 · 1 comment

Comments

@lexaurin
Copy link

Right now it's not possible to test (in Node env, Mocha for example) component which uses this URL polyfill because it fails on:

url.js:482
}(self));
  ^

ReferenceError: self is not defined

Make implementation more defensive?

@Mouvedia
Copy link

}((function () {
  try {
    return Function('return this')() || (42, eval)('this');
  } catch (e) {
    return self;
  }
})());

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

No branches or pull requests

2 participants