MCPcopy
hub / github.com/OWASP/mastg / out

Function out

demos/ios/MASVS-RESILIENCE/MASTG-DEMO-0125/script.js:5–12  ·  view source on GitHub ↗
(kind, msg)

Source from the content-addressed store, hash-verified

3const MAX_LEN = 16384;
4
5function out(kind, msg) {
6 if (msg === null || msg === undefined) return;
7
8 msg = String(msg).replace(/\0+$/g, '').trimEnd();
9 if (msg.length === 0) return;
10
11 console.log('[' + kind + '] ' + msg);
12}
13
14function readUtf8(ptrValue, len) {
15 try {

Callers 1

onEnterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected