소스 검색

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;
 
 class Issue4397 extends Test {
+	#if js
 	function test() {
 		0.toFixed();
 	}
@@ -10,4 +11,5 @@ class Issue4397 extends Test {
     static inline function toFixed(f:Float):String {
         return (cast f).toFixed();
     }
+	#end
 }