Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

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

Open
lernerb opened this issue Jul 15, 2016 · 1 comment
Open

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

lernerb opened this issue Jul 15, 2016 · 1 comment

Comments

@lernerb
Copy link
Collaborator

lernerb commented Jul 15, 2016

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.

@ianfixes
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants