-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: added reportError polyfil #2192
Conversation
@@ -1,3 +1,5 @@ | |||
import "./polyfills/report-error-polyfill.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for it in web workers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I verified that this entrypoint is run for any type of environment, including webworker
/** | ||
* hope this is single polyfill we need for now | ||
* in case if more will be added, we need to create some | ||
* better mechanism to handle polyfills | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**
* This polyfill is not essential for the engine itself. But applications built
* on the engine may require this polyfill to correctly report initialization
* errors in older browsers.
* Ideally, the engine should offer a mechanism allowing applications to
* initialize necessary polyfills before the evaluation of feature files begins.
* But so far we only need this single polyfill.
*/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated
I'm removing this, as this stops the engine-core package from having no side effects. We need to find a better way to inject polyfills needed by applications. As a replacement to this change, I'm changing engine-core's |
reverts #2192 to remove only sideEffect in engine-core package
Added reportError polyfill to allow applications and are using native
reportError
to execute feature setup.