manticore-native
manticore-native copied to clipboard
Support new Set(...) on Android (J2V8)
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
.
Making a note here to look into the polyfill for that platform