Describe the bug
I have a nested dependency that relies on isomorphic-fetch, which i'm unable to load inside SES due to self not being defined.
To Reproduce
Steps to reproduce the behavior:
Use snaps-cli to init a new project
Add const supported = "URLSearchParams" in self; to the code
See error
Expected behavior
As defined in the spec, self should exist and be the window object.
The window, frames, and self attributes' getters must return this Window object's relevant Realm.[[GlobalEnv]]'s EnvironmentRecord's [[GlobalThisValue]].
Describe the bug I have a nested dependency that relies on
isomorphic-fetch
, which i'm unable to load insideSES
due toself
not being defined.To Reproduce Steps to reproduce the behavior:
snaps-cli
to init a new projectconst supported = "URLSearchParams" in self;
to the codeExpected behavior As defined in the spec,
self
should exist and be thewindow
object.Screenshots
Browser details (please complete the following information):
Additional context https://github.com/github/fetch/issues/657#issuecomment-440248241