diff --git a/reflections/get-name/get-name.js b/reflections/get-name/get-name.js index 1a67979..fa36fe9 100644 --- a/reflections/get-name/get-name.js +++ b/reflections/get-name/get-name.js @@ -102,7 +102,7 @@ function getName(obj) { } if (type === "function") { - if (!obj.name) { + if (!("name" in obj)) { // IE doesn't support function.name natively obj.name = "functionIE" + anonymousID++; }