Skip to content

Commit d92d072

Browse files
committed
handling tostring returning non-strings
1 parent 2fe1aef commit d92d072

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

debugger/send.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export namespace Send {
5454

5555
} else {
5656
const [_, str] = pcall(tostring, value);
57+
const strType = type(str);
58+
if (strType !== "string") {
59+
return `[${strType}]`;
60+
}
5761
return `[${str}]`;
5862
}
5963
}

0 commit comments

Comments
 (0)