Use -Dlime-bytes-length-getter instead of -Dcommonjs for Bytes length override

This commit is contained in:
Joshua Granick
2018-02-09 09:18:25 -08:00
parent a168c1dc37
commit 18c7bf6846

View File

@@ -608,7 +608,7 @@ import js.html.compat.DataView;
class Bytes {
#if commonjs
#if lime_bytes_length_getter
public var length(get,set) : Int;
var l : Int;
#else
@@ -817,7 +817,7 @@ class Bytes {
return untyped b.bytes[pos];
}
#if commonjs
#if lime_bytes_length_getter
private function get_length() : Int {
return l;
}