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

Unified Diff: runtime/bin/dartutils.h

Issue 14046011: Fix wrong ASSERT (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | samples/sample_extension/sample_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.h
diff --git a/runtime/bin/dartutils.h b/runtime/bin/dartutils.h
index aca80013d7e7871614e798a677b20f6dad97a02d..83457dc27c09c0ec7a39ea214660defd1e9ce1fb 100644
--- a/runtime/bin/dartutils.h
+++ b/runtime/bin/dartutils.h
@@ -206,7 +206,8 @@ class CObject {
explicit CObject(Dart_CObject *cobject) : cobject_(cobject) {}
Dart_CObject::Type type() { return cobject_->type; }
Dart_CObject::TypedDataType byte_array_type() {
- ASSERT(type() == Dart_CObject::kTypedData);
+ ASSERT(type() == Dart_CObject::kTypedData ||
+ type() == Dart_CObject::kExternalTypedData);
return cobject_->value.as_typed_data.type;
}
« no previous file with comments | « no previous file | samples/sample_extension/sample_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698