--sync with slavara-core-haxe.