Closed requiel20 closed 4 months ago
Thank you for the report. I can confirm that I am able to reproduce this issue. It seems to happen when ECMAScript version is set to 5 (which is the default value for Nashorn compatibility mode). You can work around that by setting ECMAScript verison to 6 (or later) i.e. by using --ecmascript-version=6
.
Thank you for the workaround, that is not an option for us sadly as the codebase only works with version 5
Thanks for the report. The issue is now fixed in https://github.com/oracle/graaljs/commit/ed6d245078c13361beb421c0652a781a0b3970d2 and should make it into the next release.
Hello,
Bumped into this when trying to migrate a project from Nashorn to graaljs.
Reproduction steps:
/$/g
also crashes, as does/0*$/g
Tested on GraalVM JavaScript (GraalVM CE JVM 24.0.2)