| "This tests that propertyIsEnumerable works according to the ECMA spec." |
| function aFunctionDecl(){} |
| shouldBeFalse("a.propertyIsEnumerable('length')"); |
| shouldBeTrue("a.propertyIsEnumerable ('foo')"); |
| shouldBeFalse("a.propertyIsEnumerable ('non-existant')"); |
| shouldBeTrue("global.propertyIsEnumerable ('aVarDecl')"); |
| shouldBeTrue("global.propertyIsEnumerable ('aFunctionDecl')"); |
| shouldBeFalse("global.propertyIsEnumerable ('Math')"); |
| shouldBeFalse("global.propertyIsEnumerable ('NaN')"); |
| shouldBeFalse("global.propertyIsEnumerable ('undefined')"); |