From 33ec41c3492f329f2fcf824dfd55eb35f2322224 Mon Sep 17 00:00:00 2001 From: Thomas Wilburn Date: Fri, 7 Sep 2018 16:14:28 -0500 Subject: [PATCH] Let other browsers keep anonymous functions anonymous --- reflections/get-name/get-name.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }