Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 6043) |
+++ src/objects.cc (working copy) |
@@ -3097,8 +3097,9 @@ |
MaybeObject* JSObject::DefineAccessor(String* name, |
bool is_getter, |
- JSFunction* fun, |
+ Object* fun, |
PropertyAttributes attributes) { |
+ ASSERT(fun->IsJSFunction() || fun->IsUndefined()); |
// Check access rights if needed. |
if (IsAccessCheckNeeded() && |
!Top::MayNamedAccess(this, name, v8::ACCESS_SET)) { |