From 18c7bf68461eccbc34aa9f0298ab78038b57c130 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 9 Feb 2018 09:18:25 -0800 Subject: [PATCH] Use -Dlime-bytes-length-getter instead of -Dcommonjs for Bytes length override --- haxe/io/Bytes.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haxe/io/Bytes.hx b/haxe/io/Bytes.hx index 052c8c655..83ced2db7 100644 --- a/haxe/io/Bytes.hx +++ b/haxe/io/Bytes.hx @@ -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; }