MCPcopy Create free account
hub / github.com/FastLED/FastLED / warn

Function warn

src/platforms/wasm/compiler/index.ts:334–342  ·  view source on GitHub ↗

* Custom console.warn implementation with timestamps * @param {...*} args - Arguments to warn about

(...args)

Source from the content-addressed store, hash-verified

332 * @param {...*} args - Arguments to warn about
333 */
334function warn(...args) {
335 const argsWithTime = toStringWithTimeStamp(...args);
336 _prev_warn(...argsWithTime);
337 try {
338 print(...argsWithTime);
339 } catch (e) {
340 _prev_warn('Error in warn', e);
341 }
342}
343
344/**
345 * Custom print function for displaying output in the UI

Callers

nothing calls this directly

Calls 2

toStringWithTimeStampFunction · 0.85
printFunction · 0.70

Tested by

no test coverage detected