diff --git a/third_party/shims_for_IE.js b/third_party/shims_for_IE.js index 47317a85b8..72891da672 100644 --- a/third_party/shims_for_IE.js +++ b/third_party/shims_for_IE.js @@ -6,11 +6,7 @@ if (!Object.hasOwnProperty('name')) { Object.defineProperty(Function.prototype, 'name', { get: function() { var matches = this.toString().match(/^\s*function\s*((?![0-9])[a-zA-Z0-9_$]*)\s*\(/); - var name = matches && matches.length > 1 ? matches[1] : ""; - // For better performance only parse once, and then cache the - // result through a new accessor for repeated access. - Object.defineProperty(this, 'name', {value: name}); - return name; + return matches && matches.length > 1 ? matches[1] : ''; } }); }