Explorar o código

[js] Correct time units in setTimeout, closes #9121 (#9125)

George Corney %!s(int64=5) %!d(string=hai) anos
pai
achega
479a838063
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/haxe/EntryPoint.hx

+ 1 - 1
std/haxe/EntryPoint.hx

@@ -110,7 +110,7 @@ class EntryPoint {
 		var nextTick = processEvents();
 		inline function setTimeoutNextTick() {
 			if (nextTick >= 0) {
-				(untyped setTimeout)(run, nextTick);
+				(untyped setTimeout)(run, nextTick * 1000);
 			}
 		}
 		#if nodejs