Index: test/cctest/test-strings.cc |
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc |
index 6ff52003b8412ca1c8fc694df847f6ac475e3a38..4a60dcf811835579be207afa769ee167bdd8a208 100644 |
--- a/test/cctest/test-strings.cc |
+++ b/test/cctest/test-strings.cc |
@@ -1127,7 +1127,8 @@ TEST(SliceFromExternal) { |
v8::HandleScope scope(CcTest::isolate()); |
AsciiVectorResource resource( |
i::Vector<const char>("abcdefghijklmnopqrstuvwxyz", 26)); |
- Handle<String> string = factory->NewExternalStringFromAscii(&resource); |
+ Handle<String> string = |
+ factory->NewExternalStringFromAscii(&resource).ToHandleChecked(); |
CHECK(string->IsExternalString()); |
Handle<String> slice = factory->NewSubString(string, 1, 25); |
CHECK(slice->IsSlicedString()); |