Show More
Commit Description:
fig bugs in login report
Commit Description:
fig bugs in login report
References:
File last commit:
Show/Diff file:
Action:
node_modules/core-js/modules/es6.function.name.js
| 16 lines
| 355 B
| application/javascript
| JavascriptLexer
|
r789 | var dP = require('./_object-dp').f; | |||
var FProto = Function.prototype; | ||||
var nameRE = /^\s*function ([^ (]*)/; | ||||
var NAME = 'name'; | ||||
// 19.2.4.2 name | ||||
NAME in FProto || require('./_descriptors') && dP(FProto, NAME, { | ||||
configurable: true, | ||||
get: function () { | ||||
try { | ||||
return ('' + this).match(nameRE)[1]; | ||||
} catch (e) { | ||||
return ''; | ||||
} | ||||
} | ||||
}); | ||||