Ensure getFuncName works when checking methods that shadow Object.prototype.

This commit is contained in:
Steven Sojka
2016-01-15 13:29:02 -06:00
committed by John-David Dalton
parent f6c6de40f1
commit 6949f71516
2 changed files with 13 additions and 1 deletions

View File

@@ -4678,7 +4678,7 @@
function getFuncName(func) {
var result = (func.name + ''),
array = realNames[result],
length = array ? array.length : 0;
length = hasOwnProperty.call(realNames, result) ? array.length : 0;
while (length--) {
var data = array[length],