meteor / meteor

Meteor, the JavaScript App Platform
https://meteor.com
Other
44.05k stars 5.16k forks source link

ecmascript Map.keys not iterable on cordova #11968

Open benstrum opened 2 years ago

benstrum commented 2 years ago

When trying to iterate Map.keys() on cordova browser, an exception is thrown "Keys is not a function or its return value is not iterable".

To reproduce the problem, run a meteor cordova app in the debugger using Chrome DevTools. From the js console, you run the following code:

t = new Map();
t.set(1, '1');
t.set(2, '2');
for (docid of t.keys()) console.log(docid)

Version Info Meteor 2.6.1 ecmascript@0.16.1 ecmascript-runtime@0.8.0 ecmascript-runtime-client@0.12.1 ecmascript-runtime-server@0.11.0

Environment Host: Mac Mobile Device: Android

ktongs commented 3 months ago

I'm running into this issue as well. I cannot modify the runtime code since it's importing from an external library that is using this particular syntax.

Is there a workaround or fix that can address this?

chandibernier commented 2 weeks ago

Hi,

this seems pretty much related to #13094 that we just opened and has this impact: Google Maps API will stop working soon on Cordova.