Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: runtime/lib/object.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(),
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/ast.cc » ('j') | runtime/vm/compiler_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698