From 488b19701a0183f98828834cba19c77ac9515dac Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Mon, 18 Feb 2013 13:01:00 +0000 Subject: [PATCH] Fix bogus assertion. R=dcarney@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/12296008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13684 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 2 ++ 1 file changed, 2 insertions(+) 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;