Browse Source

[flash] added brackets to haxe.Rest.toString() (#10011)

Aleksandr Kuzmenko 4 years ago
parent
commit
a309db55c6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      std/haxe/Rest.hx

+ 5 - 1
std/haxe/Rest.hx

@@ -69,6 +69,10 @@ abstract Rest<T>(NativeRest<T>) {
 	}
 
 	public inline function toString():String {
-		return this.toString();
+		#if flash
+			return '[${this.toString()}]';
+		#else
+			return this.toString();
+		#end
 	}
 }