Skip to content

Commit 124cec0

Browse files
ghlLarneyfacebook-github-bot
authored andcommitted
Added string type check on common logger function (#135)
Summary: Pull Request resolved: #135 Differential Revision: D76019154 Pulled By: JacksonGL fbshipit-source-id: 473faec37de5d954fc8ae4bf7dceadf0fc591849
1 parent 3136c19 commit 124cec0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/lib/Console.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ class MemLabConsole {
191191
}
192192

193193
private logMsg(msg: string): void {
194+
if (typeof msg !== 'string') {
195+
return;
196+
}
194197
// remove control characters
195198
const lines = msg.split('\n').map(line =>
196199
line

0 commit comments

Comments
 (0)