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

Unified Diff: vm/ast.h

Issue 8363034: Report NullPointerException when we try to construct a regular expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 | « lib/regexp.cc ('k') | vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ast.h
===================================================================
--- vm/ast.h (revision 858)
+++ vm/ast.h (working copy)
@@ -310,7 +310,9 @@
ASSERT(str.IsSymbol());
}
#endif // defined(DEBUG)
- ASSERT(literal.IsNull() || Class::Handle(literal.clazz()).is_finalized());
+ ASSERT(literal.IsNull() ||
+ Class::Handle(literal.clazz()).is_finalized() ||
+ Class::Handle(literal.clazz()).is_prefinalized());
}
const Instance& literal() const { return literal_; }
« no previous file with comments | « lib/regexp.cc ('k') | vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698