You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use Babel Promises in Chrome extension. Some sites listens this messages and some of them expect certain data types in e.data and use something like e.data.split() so when e.data is int user gets JavaScript error.
I would be cool to replace this mechanism with something more isolated.
The text was updated successfully, but these errors were encountered:
You can propose more safe and enough fast task implementation? Maximum that I can do - set location.origin as origin parameter and convert data to string. In the future Promise implementation will use microtasks based on MutationObserver, but tasks based on postMessage should be used in some other places.
We use Babel Promises in Chrome extension. Some sites listens this messages and some of them expect certain data types in
e.data
and use somethinglike e.data.split()
so whene.data
isint
user gets JavaScript error.I would be cool to replace this mechanism with something more isolated.
The text was updated successfully, but these errors were encountered: