Index: test/cctest/test-regexp.cc |
diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc |
index 5c3d2fc5b8baa05f5003c897c6ad9ddcf2077d05..10b227c8e97c8fa0351a57934b20f09e3281ceb4 100644 |
--- a/test/cctest/test-regexp.cc |
+++ b/test/cctest/test-regexp.cc |
@@ -1406,8 +1406,8 @@ TEST(MacroAssembler) { |
int captures[5]; |
const uc16 str1[] = {'f', 'o', 'o', 'b', 'a', 'r'}; |
- Handle<String> f1_16 = |
- factory->NewStringFromTwoByte(Vector<const uc16>(str1, 6)); |
+ Handle<String> f1_16 = factory->NewStringFromTwoByte( |
+ Vector<const uc16>(str1, 6)).ToHandleChecked(); |
CHECK(IrregexpInterpreter::Match(isolate, array, f1_16, captures, 0)); |
CHECK_EQ(0, captures[0]); |
@@ -1417,8 +1417,8 @@ TEST(MacroAssembler) { |
CHECK_EQ(84, captures[4]); |
const uc16 str2[] = {'b', 'a', 'r', 'f', 'o', 'o'}; |
- Handle<String> f2_16 = |
- factory->NewStringFromTwoByte(Vector<const uc16>(str2, 6)); |
+ Handle<String> f2_16 = factory->NewStringFromTwoByte( |
+ Vector<const uc16>(str2, 6)).ToHandleChecked(); |
CHECK(!IrregexpInterpreter::Match(isolate, array, f2_16, captures, 0)); |
CHECK_EQ(42, captures[0]); |