MCPcopy Create free account
hub / github.com/GNOME/gjs / getFunctionName

Function getFunctionName

modules/script/jsUnit.js:191–198  ·  view source on GitHub ↗
(aFunction)

Source from the content-addressed store, hash-verified

189}
190
191function getFunctionName(aFunction) {
192 var name = aFunction.toString().match(/function (\w*)/)[1];
193
194 if ((name == null) || (name.length == 0))
195 name = 'anonymous';
196
197 return name;
198}
199
200function parseErrorStack(excp)
201{

Callers

nothing calls this directly

Calls 2

matchMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected