manticore-native icon indicating copy to clipboard operation
manticore-native copied to clipboard

Support new Set(...) on Android (J2V8)

Open lernerb opened this issue 8 years ago • 1 comments

This happens when using JavaScript new Set([]) from inside a manticore engine in Java.

07-15 11:18:04.435 7005-7005/com.paypal.merchant.client.debug E/RetailSDK: Internal Error
                                                                           java.util.concurrent.ExecutionException: undefined:12443: ReferenceError: Set is not defined
                                                                                 var members = new Set(g.members);
                                                                                                   ^
                                                                           ReferenceError: Set is not defined

Babel does not affect new Set() when converting from ES6, so the conclusion is that J2V8 doesn't support Set. The native Objc engine seems to support Set.

lernerb avatar Jul 15 '16 15:07 lernerb

Making a note here to look into the polyfill for that platform

ianfixes avatar Jul 15 '16 17:07 ianfixes