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

Unified Diff: runtime/vm/unicode.cc

Issue 563043003: Don't crash when generating error messages with malformed strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « runtime/vm/dart_api_impl_test.cc ('k') | tests/corelib/throw_half_surrogate_pair_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unicode.cc
diff --git a/runtime/vm/unicode.cc b/runtime/vm/unicode.cc
index 16e14e696cbeb10b2d50c2f59de4e1cb52e3e091..615e87b56127c64c6f0d72ebc05d5de8d55e0697 100644
--- a/runtime/vm/unicode.cc
+++ b/runtime/vm/unicode.cc
@@ -138,7 +138,6 @@ intptr_t Utf8::Length(const String& str) {
intptr_t Utf8::Encode(int32_t ch, char* dst) {
- ASSERT(!Utf16::IsSurrogate(ch));
static const int kMask = ~(1 << 6);
if (ch <= kMaxOneByteChar) {
dst[0] = ch;
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | tests/corelib/throw_half_surrogate_pair_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698