瀏覽代碼

run JS-specific tests only on JS

Simon Krajewski 9 年之前
父節點
當前提交
985a1b4bf1
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/unit/src/unit/issues/Issue4397.hx

+ 2 - 0
tests/unit/src/unit/issues/Issue4397.hx

@@ -3,6 +3,7 @@ package unit.issues;
 using unit.issues.Issue4397;
 using unit.issues.Issue4397;
 
 
 class Issue4397 extends Test {
 class Issue4397 extends Test {
+	#if js
 	function test() {
 	function test() {
 		0.toFixed();
 		0.toFixed();
 	}
 	}
@@ -10,4 +11,5 @@ class Issue4397 extends Test {
     static inline function toFixed(f:Float):String {
     static inline function toFixed(f:Float):String {
         return (cast f).toFixed();
         return (cast f).toFixed();
     }
     }
+	#end
 }
 }