From 8d0e14f76ec1131057b4480748893992a180e98b Mon Sep 17 00:00:00 2001 From: dragoncoder047 <101021094+dragoncoder047@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:57:18 -0500 Subject: [PATCH 1/2] null has no property "toString" --- src/gfx/draw/drawDebug.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfx/draw/drawDebug.ts b/src/gfx/draw/drawDebug.ts index 5cfaa0c3..5a424444 100644 --- a/src/gfx/draw/drawDebug.ts +++ b/src/gfx/draw/drawDebug.ts @@ -233,6 +233,7 @@ function prettyDebug(object: any | undefined, inside: boolean = false, seen: Set ].join(""); object = outStr; } + if (obj === null) return "null"; if ( typeof object === "object" && object.toString === Object.prototype.toString From 88c1e984fa397fadcbd87f0285ba9df7623f4c82 Mon Sep 17 00:00:00 2001 From: dragoncoder047 <101021094+dragoncoder047@users.noreply.github.com> Date: Sun, 10 Nov 2024 17:59:23 -0500 Subject: [PATCH 2/2] ect --- src/gfx/draw/drawDebug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/draw/drawDebug.ts b/src/gfx/draw/drawDebug.ts index 5a424444..f20111a2 100644 --- a/src/gfx/draw/drawDebug.ts +++ b/src/gfx/draw/drawDebug.ts @@ -233,7 +233,7 @@ function prettyDebug(object: any | undefined, inside: boolean = false, seen: Set ].join(""); object = outStr; } - if (obj === null) return "null"; + if (object === null) return "null"; if ( typeof object === "object" && object.toString === Object.prototype.toString