MCPcopy
hub / github.com/RubyLouvre/anu / warning

Function warning

test/redux.js:427–441  ·  view source on GitHub ↗

* Prints a warning in the console if it exists. * * @param {String} message The warning message. * @returns {void}

(message)

Source from the content-addressed store, hash-verified

425 * @returns {void}
426 */
427 function warning(message) {
428 /* eslint-disable no-console */
429 if (typeof console !== 'undefined' && typeof console.error === 'function') {
430 console.error(message);
431 }
432 /* eslint-enable no-console */
433 try {
434 // This error was thrown as a convenience so that if you enable
435 // "break on all exceptions" in your console,
436 // it would pause the execution at this line.
437 throw new Error(message);
438 /* eslint-disable no-empty */
439 } catch (e) {}
440 /* eslint-enable no-empty */
441 }
442
443/***/ },
444/* 4 */

Callers 15

warnHyphenatedStyleNameFunction · 0.70
warnBadVendoredStyleNameFunction · 0.70
warnStyleValueIsNaNFunction · 0.70
isAttributeNameSafeFunction · 0.70
react-dom.jsFile · 0.70
instantiateChildFunction · 0.70
warnIfInvalidElementFunction · 0.70
assertValidPropsFunction · 0.70
enqueuePutListenerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected