Skip to content

Commit ade8c29

Browse files
authored
Merge pull request #203 from legraphista/1.0-structure-bad-tostring
Fix: Structure error has bad .toString()
2 parents 2be25cd + a08e812 commit ade8c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v1/internal/packstream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class Structure {
6565
let fieldStr = "";
6666
for (var i = 0; i < this.fields.length; i++) {
6767
if(i > 0) { fieldStr+=", " }
68-
fieldStr += this.fields[i];
68+
fieldStr += JSON.stringify(this.fields[i]);
6969
}
70-
return "Structure(" + this.signature + ", [" + this.fields + "])"
70+
return "Structure(" + this.signature + ", [" + fieldStr + "])"
7171
}
7272
}
7373

0 commit comments

Comments
 (0)