Browse Source

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

Cauê Waneck 10 years ago
parent
commit
cc8609d5ff
1 changed files with 2 additions and 0 deletions
  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;