Right now, -D js-es5 removes some polyfills for Array (indexOf/lastIndexOf/map/filter) as well as fake console object for environments where it's not available (ie8).
As for Array.reduce and other methods present in JS, we can either implement them for every other platform (though flash doesn't have it natively) and add to our base Array class, or add something like js.NativeArray static extension class similar to cpp.NativeArray, so one could just do `using js.NativeArray` and have those extra methods available.
Feel free to open a discussion issue on the haxe repo.
вторник, 10 ноября 2015 г., 14:23:41 UTC+3 пользователь Philippe Elsass написал: