Skip to content

Commit

Permalink
stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Nov 4, 2024
1 parent 9ccbfca commit 2b0db48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxtcompiler/emitter/backjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ function ${id}(s) {
else if (e.data === null) return "null"
else if (e.data === undefined) return "undefined"
else if (typeof e.data == "number") return e.data + ""
else if (typeof e.data == "string") return e.data
else if (typeof e.data == "string") return `"${e.data}"`
else throw oops("invalid data: " + typeof e.data);
case EK.PointerLiteral:
if (e.ptrlabel()) {
Expand Down

0 comments on commit 2b0db48

Please sign in to comment.