Sha256: 81339b3c6e9bbd0b214625357ba21bc5123bc5f6b23be3cdb87bc46988b23f4c
Contents?: true
Size: 524 Bytes
Versions: 17
Compression:
Stored size: 524 Bytes
Contents
var setDesc = require('./$').setDesc , createDesc = require('./$.property-desc') , has = require('./$.has') , FProto = Function.prototype , nameRE = /^\s*function ([^ (]*)/ , NAME = 'name'; // 19.2.4.2 name NAME in FProto || require('./$.descriptors') && setDesc(FProto, NAME, { configurable: true, get: function(){ var match = ('' + this).match(nameRE) , name = match ? match[1] : ''; has(this, NAME) || setDesc(this, NAME, createDesc(5, name)); return name; } });
Version data entries
17 entries across 17 versions & 7 rubygems