MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / warn

Function warn

tests/test_code/js/moment/moment.js:277–285  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

275 }
276
277 function warn(msg) {
278 if (
279 hooks.suppressDeprecationWarnings === false &&
280 typeof console !== 'undefined' &&
281 console.warn
282 ) {
283 console.warn('Deprecation warning: ' + msg);
284 }
285 }
286
287 function deprecate(msg, fn) {
288 var firstTime = true;

Callers 2

deprecateFunction · 0.85
deprecateSimpleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected