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

Function deprecateSimple

tests/test_code/js/moment/moment.js:329–337  ·  view source on GitHub ↗
(name, msg)

Source from the content-addressed store, hash-verified

327 var deprecations = {};
328
329 function deprecateSimple(name, msg) {
330 if (hooks.deprecationHandler != null) {
331 hooks.deprecationHandler(name, msg);
332 }
333 if (!deprecations[name]) {
334 warn(msg);
335 deprecations[name] = true;
336 }
337 }
338
339 hooks.suppressDeprecationWarnings = false;
340 hooks.deprecationHandler = null;

Callers 2

defineLocaleFunction · 0.85
createAdderFunction · 0.85

Calls 1

warnFunction · 0.85

Tested by

no test coverage detected