Skip to content

gohan_sleep doesn't evaluate it's argument #378

Description

@p-kozlowski

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions