Explorar o código

More robust Function.prototype.name check. See #12294

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
2dfd847131
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/polyfills.js

+ 1 - 1
src/polyfills.js

@@ -33,7 +33,7 @@ if ( Math.sign === undefined ) {
 
 }
 
-if ( Function.prototype.name === undefined ) {
+if ( 'name' in Function.prototype === false ) {
 
 	// Missing in IE
 	// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name