-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTimeout function not working in GraalJS engine with Maestro #2252
Comments
This is (unfortunately) entirely expected.
We'd love to upgrade and reconfigure graaljs to support additional Node and JS things, but doing so would cut off some Java versions, and that would upset a lot of folks. That being said, I bet there's a contribution someone could make that would open up some additional support in the current version - it just needs someone with sufficient motivation to dig into it. |
Hi @Fishbowler I've implemented the setTimeout. Follow the PR. |
Oh wow |
If someone needs to use setTimeout before this PR is accepted, you can use the following workaround:
|
Is there an existing issue for this?
Steps to reproduce
When attempting to use the setTimeout function in a JavaScript file (test.js) executed by Maestro using the GraalJS engine, the following error occurs:
I also tried this example here but I received the same error.
1 - Create a script:
2 - Create the yaml:
3- Run the command:
maestro test .maestro/test/test.yaml
I also tried to force the environment:
export MAESTRO_USE_GRAALJS=true
But it seems to didn't affect anything.
Actual results
I received this error:
Expected results
I expect no errors and the text
Delayed for 1 second.
on the console.About app
The app information on this isn't necessary
About environment
Java version: openjdk 17.0.13 2024-10-15
Ubuntu 22.04.5
x86_64
Logs
Logs
Maestro version
1.39.7
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
No response
The text was updated successfully, but these errors were encountered: