瀏覽代碼

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

George Corney 5 年之前
父節點
當前提交
479a838063
共有 1 個文件被更改,包括 1 次插入1 次删除
  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