mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.66k stars 255 forks source link

Update GraalJS engine to latest version #1388

Open Angelk90 opened 1 year ago

Angelk90 commented 1 year ago

Is your feature request related to a problem? Please describe. Currently the version used seems to be 22.0.0

Check: https://github.com/mobile-dev-inc/maestro/blob/5fcec04d7d52e0134a934605082a92829e7e6981/gradle/libs.versions.toml#L29

As you can see here, a lot of cool stuff has been implemented: https://github.com/oracle/graaljs/blob/master/CHANGELOG.md

Take a look here too: https://github.com/oracle/graaljs/blob/master/docs/user/JavaScriptCompatibility.md

If I try to run the following code with the current version it doesn't work, there are some things I would like to try, I don't even know if they work with the latest current version.

var BigDec = Java.type('java.math.BigDecimal');
var bd = new BigDec("0.1");
console.log(bd.add(bd).toString());

Describe the solution you'd like Update the version to the latest.

bartekpacia commented 2 months ago

Hey @Angelk90, we appreciate you sharing this issue with us!

We're a small and very busy team. That said we'll do our best do review a contribution for it:)