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
Internet Explorer 11: Object doesn't support property or method 'entries' #275
Comments
Thanks for reporting. Do you really need j4ts? Its usage is discouraged with JSweet 2 since the transpiler tries to transpile as much as it could of the Java API. I tried with your specific code which works with JSweet 2 targetVersion ES5 without j4ts but maybe you require j4ts for other reasons. Anyway if you plan to support IE11, you probably shouldn't try to use ES6 APIs (org.jsweet:jsweet-core:6-SNAPSHOT) since it is not supported in this browser: If you still want to use j4ts with JSweet 2, we should, indeed, move this issue to https://github.com/j4ts/j4ts ;) |
Thanks for your answer and the clarification! |
Well, this is weird because the TypeScript line you pasted is perfectly valid to me. Because there actually is a case statement for HashSet Did I miss something? |
Yes but not inside function For me, the transpiled code leads to a tsc problem (tsc version 2.1.6):
|
Nice one, I add the missing test case. Thanks for reporting! |
Great, thank you! |
It should be fixed through d5c67cc Could you please test again and close if it fixes your problem? Bye. |
Yes it works, thank you. |
The following example does not work in Internet Explorer 11:
The code transpiles correctly to Javascript.
However, a problem occurs in bundle "j4ts-0.4.0-SNAPSHOT/bundle.js" (which I currently use):
this.entries = this.__parent.backingMap.entries();
The corresponding error message is:
Object doesn't support property or method 'entries'
The function
Map.prototype.entries
seems not to be supported in Internet Explorer:https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Map/entries
Is there any workaround or compatibility solution?
Problem occured with:
org.jsweet:j4ts:0.4.0-SNAPSHOT
org.jsweet:jsweet-core:6-SNAPSHOT
org.jsweet:jsweet-maven-plugin:2.0.0-SNAPSHOT
org.jsweet.candies:jquery:1.10.0-SNAPSHOT
Tested also with org.jsweet:j4ts:0.5.0-SNAPSHOT, but same problem. However, works perfectly in Chrome and Firefox.
Issue probably to move to https://github.com/j4ts/j4ts
The text was updated successfully, but these errors were encountered: