We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd33d47 commit 609ac29Copy full SHA for 609ac29
lib/builtin.js
@@ -394,8 +394,10 @@ class Func {
394
}
395
396
sleep(args) {
397
- this.generator.emit('usleep');
398
- this.generator.visitArgs(args);
+ this.generator.emit('usleep(');
+ const expr = args[0];
399
+ this.generator.visitExpr(expr);
400
+ this.generator.emit(' * 1000)');
401
402
403
equal(args){
tests/expected/builtin/Client.php
@@ -420,7 +420,7 @@ static public function main($args)
420
421
422
423
- usleep($a);
+ usleep($a * 1000);
424
$defaultVal = ''.(@$args[0] ? @$args[0] : @$args[1]);
425
if ($defaultVal === $b) {
426
return null;
0 commit comments