| Index: runtime/lib/object.cc
|
| ===================================================================
|
| --- runtime/lib/object.cc (revision 43472)
|
| +++ runtime/lib/object.cc (working copy)
|
| @@ -259,7 +259,7 @@
|
| location, instance_type_name, type_name,
|
| dst_name, Object::null_string());
|
| } else {
|
| - ASSERT(FLAG_enable_type_checks);
|
| + ASSERT(Isolate::Current()->TypeChecksEnabled());
|
| bound_error_message = String::New(bound_error.ToErrorCString());
|
| Exceptions::CreateAndThrowTypeError(
|
| location, instance_type_name, Symbols::Empty(),
|
|
|