Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 0eaf0ff908f90ece2d3a9f565dfabcfa8972d52a..24ca42e90d64bf73b23b578b9537e7f81bc4cf64 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -299,7 +299,6 @@ RUNTIME_FUNCTION(Runtime_AllocateSeqOneByteString) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |
CONVERT_SMI_ARG_CHECKED(length, 0); |
- if (length == 0) return isolate->heap()->empty_string(); |
Handle<SeqOneByteString> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
isolate, result, isolate->factory()->NewRawOneByteString(length)); |
@@ -310,7 +309,6 @@ RUNTIME_FUNCTION(Runtime_AllocateSeqTwoByteString) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |
CONVERT_SMI_ARG_CHECKED(length, 0); |
- if (length == 0) return isolate->heap()->empty_string(); |
Handle<SeqTwoByteString> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
isolate, result, isolate->factory()->NewRawTwoByteString(length)); |