Project: titanium
Issue TIMOB-23179: Hyperloop: Android - Java primitives arrays are wrapped in hyperloop proxies improperly
This fails: {code:javascript} var Build = require('android.os.Build'); Build.SUPPORTED_ABIS[0]; {code} The error reported says something about being unable to require a model, with a name of something like L[String@ergsdgf; Basically, it looks like we're wrapping this primitive String array in a hyperloop proxy, rather than just letting the bridge handle the conversion for us. Right now our code to determine when to wrap isn't specific enough to allow this to pass through: {code:java} return item == null || item instanceof KrollProxy || item instanceof Integer || item instanceof Double || item instanceof Float || item instanceof Byte || item instanceof Short || item instanceof Long || item instanceof HashMap || item instanceof String || item instanceof Boolean || item instanceof Date; {code}
Story points: 5