-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: brackets causing issues in debug.log + enhance logging of single…
… object (#475)
- Loading branch information
1 parent
9a1ba74
commit 4433162
Showing
3 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
kaplay(); | ||
|
||
const pretty = { | ||
i: "am pretty", | ||
all: "own properties are shown", | ||
even: { | ||
nested: "objects", | ||
}, | ||
arrays: ["show", "like", "you", "would", "write", "them"], | ||
"own toString is used": vec2(10, 10) | ||
} | ||
|
||
debug.log("Text in [brackets] doesn't cause issues"); | ||
|
||
debug.log(pretty); | ||
|
||
debug.error("This is an error message"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters