Browse Source

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

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

+ 1 - 1
std/haxe/Rest.hx

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