MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / diag

Function diag

vm/ByteCodeTranslator/src/javascript/browser_bridge.js:87–97  ·  view source on GitHub ↗
(phase, key, value)

Source from the content-addressed store, hash-verified

85 }
86 }
87 function diag(phase, key, value) {
88 if (!diagEnabled) {
89 return;
90 }
91 // Suppress per-op HOST bridge diagnostics unless explicitly enabled via
92 // parparBridgeDiag=1. These outweigh everything else by a huge margin.
93 if (phase === 'HOST' && typeof key === 'string' && key.indexOf('jsoBridge') === 0 && !bridgeDiagEnabled) {
94 return;
95 }
96 log('DIAG:' + phase + ':' + key + '=' + diagValue(value));
97 }
98
99 function postHostCallback(target, id, value, errorMessage) {
100 var message;

Callers 5

browser_bridge.jsFile · 0.85
resolveHostRefFunction · 0.85
fnFunction · 0.85
handleVmMessageFunction · 0.85
installWorkerModeFunction · 0.85

Calls 3

logFunction · 0.70
diagValueFunction · 0.70
indexOfMethod · 0.65

Tested by

no test coverage detected