constructor.name is undefined in Internet Explorer
问题 My debugging work in IE ended today by finding that constructor.name is undefined . I created the following simple code that reproduces the issue: ({}).constructor.name === undefined // => true Is there any workaround to make this work? Maybe overriding somehow the prototype? If possible, I don't want to change the syntax, because the change would be major. JSFIDDLE 回答1: The problem is simply that the name property of function objects is not supported in Internet Explorer. The property is non