소스 검색

[spod] Added dependency to haxe.io.Bytes.toString. Closes #1937

Cauê Waneck 10 년 전
부모
커밋
cc8609d5ff
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      std/sys/db/Manager.hx

+ 2 - 0
std/sys/db/Manager.hx

@@ -730,6 +730,8 @@ class Manager<T : Object> {
 		return v + " IN (" + b.toString() + ")";
 	}
 
+	// We need Bytes.toString to not be DCE'd. See #1937
+	@:keep static function __depends() { return haxe.io.Bytes.alloc(0).toString(); }
 }
 
 private typedef CacheType<T> = Dynamic;