Skip to content
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

Workaround JS frameworks that don't support Symbol.species with Promises #1170

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

pepone
Copy link
Member

@pepone pepone commented Nov 27, 2020

This PR fixes the types derived from Promise so that it is safe to construct them with a null argument. Frameworks that don't use Symbol.species to construct the Promise objects can end-up calling the constructor of one of these derived types directly resulting in exceptions from Ice JavaScript run-time.

This was the case with Angular, the issue was fixed in angular/angular#34105

This workaround allows Ice.js to work with older Angular versions.

ice-3.7.4.zip

@pepone pepone added the js label Nov 27, 2020
@pepone pepone added this to the 3.7.5 milestone Nov 27, 2020
@pepone pepone requested review from externl and bentoi November 27, 2020 12:01
@pepone pepone merged commit b720744 into zeroc-ice:3.7 Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants