| Index: runtime/lib/object.cc
|
| diff --git a/runtime/lib/object.cc b/runtime/lib/object.cc
|
| index d67dafc9144522127d9b5b7837b7b89e69e6fbe0..fe88b85e354dbd3adc0614b340d7e6d688604cfe 100644
|
| --- a/runtime/lib/object.cc
|
| +++ b/runtime/lib/object.cc
|
| @@ -271,7 +271,7 @@ DEFINE_NATIVE_ENTRY(Object_as, 4) {
|
| location, instance_type_name, type_name,
|
| dst_name, Object::null_string());
|
| } else {
|
| - ASSERT(Isolate::Current()->TypeChecksEnabled());
|
| + ASSERT(isolate->flags().type_checks());
|
| bound_error_message = String::New(bound_error.ToErrorCString());
|
| Exceptions::CreateAndThrowTypeError(
|
| location, instance_type_name, Symbols::Empty(),
|
|
|