Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 98a41de302a0a7839490d4dbc9460097cab31da9..5013b5c77f62e4eb0a9eb52bd82062f6284c8c7d 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -4269,7 +4269,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DefineOrRedefineAccessorProperty) { |
CONVERT_CHECKED(String, name, args[1]); |
CONVERT_CHECKED(Smi, flag_setter, args[2]); |
Object* fun = args[3]; |
- RUNTIME_ASSERT(fun->IsJSFunction() || fun->IsUndefined()); |
+ RUNTIME_ASSERT(fun->IsSpecFunction() || fun->IsUndefined()); |
CONVERT_CHECKED(Smi, flag_attr, args[4]); |
int unchecked = flag_attr->value(); |
RUNTIME_ASSERT((unchecked & ~(READ_ONLY | DONT_ENUM | DONT_DELETE)) == 0); |