Review URL: http://codereview.chromium.org/8962
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@670
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
}
PropertyAttributes att = object->GetLocalPropertyAttribute(key);
- return Heap::ToBoolean(att != ABSENT && att != DONT_ENUM);
+ return Heap::ToBoolean(att != ABSENT && (att & DONT_ENUM) == 0);
}
}
+THREADED_TEST(UndefinedIsNotEnumerable) {
+ v8::HandleScope scope;
+ LocalContext env;
+ v8::Handle<Value> result = Script::Compile(v8_str(
+ "this.propertyIsEnumerable(undefined)"))->Run();
+ CHECK(result->IsFalse());
+}
+
+
v8::Handle<Script> call_recursively_script;
static const int kTargetRecursionDepth = 300; // near maximum