Index: src/handles.cc |
=================================================================== |
--- src/handles.cc (revision 4462) |
+++ src/handles.cc (working copy) |
@@ -203,6 +203,7 @@ |
Handle<Object> SetPrototype(Handle<JSFunction> function, |
Handle<Object> prototype) { |
+ ASSERT(function->should_have_prototype()); |
CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, |
*prototype, |
NULL), |