Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index da7236bce26419f13df98e79ece6648ac26c2ddc..5e4390284c245bd3eb667158a8d0bb0d63d90f37 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3600,7 +3600,9 @@ MaybeObject* Heap::AllocateExternalStringFromAscii( |
return Failure::OutOfMemoryException(0x5); |
} |
+#ifndef ENABLE_LATIN_1 |
ASSERT(String::IsAscii(resource->data(), static_cast<int>(length))); |
+#endif // ENABLE_LATIN_1 |
Map* map = external_ascii_string_map(); |
Object* result; |