Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a0d1536bbb27285835c1eb9a4234af4d9705ef2e..8cb36e91f9a7b07984c13a8913769e637272d3b7 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4514,7 +4514,6 @@ SmartPointer<char> String::ToCString(AllowNullsFlag allow_nulls, |
int offset, |
int length, |
int* length_return) { |
- ASSERT(NativeAllocationChecker::allocation_allowed()); |
if (robust_flag == ROBUST_STRING_TRAVERSAL && !LooksValid()) { |
return SmartPointer<char>(NULL); |
} |
@@ -4594,7 +4593,6 @@ const uc16* String::GetTwoByteData(unsigned start) { |
SmartPointer<uc16> String::ToWideCString(RobustnessFlag robust_flag) { |
- ASSERT(NativeAllocationChecker::allocation_allowed()); |
if (robust_flag == ROBUST_STRING_TRAVERSAL && !LooksValid()) { |
return SmartPointer<uc16>(); |
} |