kiwibrowser / android

This repository is archived, and is now transferred to https://github.com/kiwibrowser/src
https://kiwibrowser.com/
721 stars 74 forks source link

Missing support for Array.prototype.flatMap? #184

Closed dot-sent closed 3 years ago

dot-sent commented 3 years ago

I've discovered recently that a browser game https://www.fallenlondon.com/ doesn't load properly in Kiwi. Specifically, the login/register page loads fine, but after authentication I get an error message after several seconds of loading. Technical/version details:

I've reported this issue to the game developers and got the following reply (shortened to technical part):

I've narrowed this crash down to the fact that Kiwi doesn't support Array.prototype.flatMap, despite notionally built off Chromium 88 (at least in the latest version) — this means that we can't dynamically polyfill support via polyfill.io since Kiwi is claiming to be a recent enough browser to support it.

So I'm not sure what to recommend next — the best thing to do might be to contact the Kiwi maintainers themselves about this. The following line of JavaScript ought to return [1, 2, 3, 4, 5] but throws a TypeError in Kiwi:

[1, 2, [3, 4], 5].flatMap( => )

KaKi87 commented 3 years ago

Please retry with the latest version from the Play Store and post eventual further issues to kiwibrowser/src.next.

dot-sent commented 3 years ago

I confirm that the issue is not reproducible using the latest version from the Play Store.