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

Function createInvalid

tests/test_code/js/moment/moment.js:192–201  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

190 }
191
192 function createInvalid(flags) {
193 var m = createUTC(NaN);
194 if (flags != null) {
195 extend(getParsingFlags(m), flags);
196 } else {
197 getParsingFlags(m).userInvalidated = true;
198 }
199
200 return m;
201 }
202
203 // Plugins that add properties should also add the key here (null value),
204 // so we can properly clone ourselves.

Callers 2

prepareConfigFunction · 0.85
moment.jsFile · 0.85

Calls 3

createUTCFunction · 0.85
extendFunction · 0.85
getParsingFlagsFunction · 0.85

Tested by

no test coverage detected