Sfoglia il codice sorgente

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

George Corney 5 anni fa
parent
commit
479a838063
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      std/haxe/EntryPoint.hx

+ 1 - 1
std/haxe/EntryPoint.hx

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