Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index d9113753d03b2b20b1cdb86348bbd1eacdae7969..33534a786e4e4378d0bae7c60c06669816303f5a 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -298,7 +298,6 @@ |
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)); |
@@ -309,7 +308,6 @@ |
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)); |