-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
matrix-widget-api triggers soft crash in Safari 13.1 #15493
Comments
Changing to class compilation does not help, a similar error happens with native classes also, seems like |
jryans
added a commit
to matrix-org/matrix-widget-api
that referenced
this issue
Oct 19, 2020
This signal to Babel that most modern syntax is safe to use, resulting in much smaller, easier to read compiled output. Noticed while investigating element-hq/element-web#15493
jryans
added a commit
to matrix-org/matrix-widget-api
that referenced
this issue
Oct 19, 2020
This signals to Babel that most modern syntax is safe to use, resulting in much smaller, easier to read compiled output. Noticed while investigating element-hq/element-web#15493
jryans
added a commit
to matrix-org/matrix-widget-api
that referenced
this issue
Oct 19, 2020
This moves away from using `EventTarget` directly, as that is not available in various environments such as Safari 13.1. As a replacement, this changes to `events` which emulates the Node.js API in browser. This is a breaking change, so clients will need to adjust code that adds listeners to call the new function names. Fixes element-hq/element-web#15493
jryans
added a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 19, 2020
As part of changing to the `events` package, the API surface changed slightly. Related to element-hq/element-web#15493
jryans
added a commit
that referenced
this issue
Oct 19, 2020
As part of changing to the `events` package, the API surface changed slightly. Related to #15493
This was referenced Oct 19, 2020
jryans
added a commit
to matrix-org/matrix-react-sdk
that referenced
this issue
Oct 19, 2020
As part of changing to the `events` package, the API surface changed slightly. Related to element-hq/element-web#15493
jryans
added a commit
that referenced
this issue
Oct 19, 2020
As part of changing to the `events` package, the API surface changed slightly. Related to #15493
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue here seems to be roughly the following:
ClientWidgetApi
from the newmatrix-widget-api
added in Element 1.7.9 extendsAlmostEventEmitter
which extendsEventTarget
matrix-widget-api
usesReflect.construct
to extend a super classReflect.construct(EventTarget, [...])
fails withReflect.construct requires the first argument be a constructor
Since it's the previous major release, it's still within our support window, so we should try to concoct some kind of fix here. Options that come to mind include:
matrix-widget-api
compiles class extensionEventTarget
The text was updated successfully, but these errors were encountered: