Status: New
Owner: ----

New issue 954 by zdj870522: Object::GetProperty() doesn't always work right
http://code.google.com/p/v8/issues/detail?id=954

  for (Object* current = this; true; current = current->GetPrototype()) {
    if (current->IsAccessCheckNeeded()) {
      JSObject* checked = JSObject::cast(current);
      if (!Top::MayNamedAccess(checked, name, v8::ACCESS_GET)) {
        return checked->GetPropertyWithFailedAccessCheck(receiver,
                                                         result,
                                                         name,
                                                         attributes);
      }
    }
    if (current == last) break;
    ...
}
Note that this cyclic condition is always true, I found my program keep running here.
And I modify "if (current == last)" to
"if (current == last || current == current->GetPrototype())"
it stop running ,but the Object seems didn't get property.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to