Skip to content
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

gohan_sleep doesn't evaluate it's argument #378

Open
p-kozlowski opened this issue Feb 13, 2017 · 0 comments
Open

gohan_sleep doesn't evaluate it's argument #378

p-kozlowski opened this issue Feb 13, 2017 · 0 comments
Labels

Comments

@p-kozlowski
Copy link
Contributor

Calling gohan_sleep(param) from a JS extension returns immediately (without an error and without sleeping) when param is a compound expression.

Examples:

gohan_sleep(2*1000); // expecting a sleep of 2 sec

var sleepTime = 1000;
gohan_sleep(2*sleepTime);

var sleepTime = 1000*2;
gohan_sleep(sleepTime);

Actual result:
In every example, the call returns immediately, no error is reported

Expected result:
Call will sleep for 2 seconds.

Works as expected:

gohan_sleep(2000);

var sleepTime = 2000;
gohan_sleep(sleepTime);
@nati nati added the bug label Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants