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
Absence of Object.setPrototypeOf
on IE10 since rxjs@6
#24488
Comments
Object.setPrototypeOf
on IE10 after rxjs@6Object.setPrototypeOf
on IE10 since rxjs@6
I was able to get it working in IE10 by adding
To polyfills.ts (before core-js/es6) imports |
@hLittle Yes i already know that. but currently. Angular didn't notice this problem to developer. and I think this issue need to fix. |
Agreed, just putting this here if anyone is looking for a workaround for this issue, and for use as possible documentation. |
@hLittle, thanks for the comment. Sorry for my ignorance, but this function only solved for angle 6 applications or earlier versions as well? |
@FernandoIbaePLiborio rxjs use that method since 6.0.0-alpha.1 version and it released at Jan 12. Angular upgraded it to 6.0.0-alpha.3 at Mar 20. b43f8bc. I wonder why this is not a problem. Am i just misusing it? Why peoples dislike this issue? Because of I do not have a PR for solving this problem? |
@hLittle Thanks so much for the workaround! This is great, whilst there's seemingly not something more robust that works. |
@everedifice Thanks 🔥🔥 |
This is an RXjs issue not angular. @benlesh could you move this issue to your repo. Also we should not be using setPrototypeOf due to performance. |
Closing in favor of ReactiveX/rxjs#3966 |
I wonder when rxjs will make a release with the fix? |
I have the same issue with ie11 aswell. Have used above code from @hLittle and added to polyfills.ts. It worked like a charm. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
Since rxjs@6.0.0 IE10 need polyfill of
Object.setPrototypeOf
. breaking changes of rxjs6Angular depends on core-js polyfill. but core-js's
Object.setPrototypeOf
polyfill needs IE11+ you can check here.So if Angular want to support IE10. need other polyfill like set-prototype-of or else.
Or just add commented module import syntax like
classlist.js
.Or don't support IE10... 😢
Expected behavior
Minimal reproduction of the problem with instructions
After uncomment some lines in
polyfill.ts
for supporting IE10 but. If browser ran rxjs's EmptyError.js or ArgumentOutOfRangeError.js. throw is not function error.You can see the source codes
https://github.com/ReactiveX/rxjs/blob/d0ea152f3c5575455a73cc43b8fad6a750d24208/src/internal/util/ArgumentOutOfRangeError.ts#L17
https://github.com/ReactiveX/rxjs/blob/d0ea152f3c5575455a73cc43b8fad6a750d24208/src/internal/util/EmptyError.ts#L17
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: