| Index: test/cctest/test-strings.cc
|
| diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc
|
| index e4df339d8b62e92852c4d80ddbce530dd62cf656..be5ebae66ee6edf4a445af3646c762214df22029 100644
|
| --- a/test/cctest/test-strings.cc
|
| +++ b/test/cctest/test-strings.cc
|
| @@ -180,8 +180,9 @@ static void InitializeBuildingBlocks(Handle<String>* building_blocks,
|
| for (int j = 0; j < len; j++) {
|
| buf[j] = rng->next(0x80);
|
| }
|
| - building_blocks[i] = factory->NewStringFromAscii(
|
| - Vector<const char>(buf, len)).ToHandleChecked();
|
| + building_blocks[i] =
|
| + factory->NewStringFromOneByte(OneByteVector(buf, len))
|
| + .ToHandleChecked();
|
| for (int j = 0; j < len; j++) {
|
| CHECK_EQ(buf[j], building_blocks[i]->Get(j));
|
| }
|
| @@ -1592,7 +1593,6 @@ TEST(InvalidExternalString) {
|
| dummy.Dispose(); \
|
| }
|
|
|
| -INVALID_STRING_TEST(NewStringFromAscii, char)
|
| INVALID_STRING_TEST(NewStringFromUtf8, char)
|
| INVALID_STRING_TEST(NewStringFromOneByte, uint8_t)
|
|
|
|
|