MCPcopy Index your code
hub / github.com/bytecodealliance/ComponentizeJS / maybeLogging

Function maybeLogging

test/util.js:20–26  ·  view source on GitHub ↗
(disableFeatures)

Source from the content-addressed store, hash-verified

18}
19
20export function maybeLogging(disableFeatures) {
21 if (!LOG_DEBUGGING_ENABLED) return disableFeatures;
22 if (disableFeatures && disableFeatures.includes('stdio')) {
23 disableFeatures.splice(disableFeatures.indexOf('stdio'), 1);
24 }
25 return disableFeatures;
26}
27
28export async function setupComponent(opts) {
29 const componentizeSrc = opts?.componentize?.src;

Callers 2

builtins.jsFile · 0.90
bindings.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected