diff --git a/src/heap.cc b/src/heap.cc index da7236bce2..5e4390284c 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(length))); +#endif // ENABLE_LATIN_1 Map* map = external_ascii_string_map(); Object* result;