MCPcopy Create free account
hub / github.com/angular-ui/ui-router / stringifyFn

Function stringifyFn

test/angular/1.5/angular.js:3968–3974  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3966var $injectorMinErr = minErr('$injector');
3967
3968function stringifyFn(fn) {
3969 // Support: Chrome 50-51 only
3970 // Creating a new string by adding `' '` at the end, to hack around some bug in Chrome v50/51
3971 // (See https://github.com/angular/angular.js/issues/14487.)
3972 // TODO (gkalpak): Remove workaround when Chrome v52 is released
3973 return Function.prototype.toString.call(fn) + ' ';
3974}
3975
3976function extractArgs(fn) {
3977 var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''),

Callers 2

extractArgsFunction · 0.70
isClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected