瀏覽代碼

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

Aleksandr Kuzmenko 4 年之前
父節點
當前提交
35a3b8bc08
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {
-		#if flash
+		#if (flash || js)
 			return '[${this.toString()}]';
 		#else
 			return this.toString();