mootools/mootools-core — Issue #2136: about test for the seven native properties of an object
Author: phoebepei
Created: 2011-11-25 03:51:55+00:00
State: open

Here ,we write
var enumerables = true;
for (var i in {toString: 1}) enumerables = null;
if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'constructor'];

But in IE9, when I ran
for(var i in {toString: 1}) enumerables = null;
the "enumerables" is null
but when I ran later
var obj = new Object();
for(var i in obj) enumerables = 'get it';
the enumerables is still null.