| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index ccd2ec8ca2e41d6a731848e5f335e07738f7f626..fb18acedaad6e9432aa3a176e9c45bbebe987ca6 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -1599,9 +1599,9 @@ void TestParserSyncWithFlags(i::Handle<i::String> source,
|
| CHECK(isolate->has_pending_exception());
|
| i::Handle<i::JSObject> exception_handle(
|
| i::JSObject::cast(isolate->pending_exception()));
|
| - i::Handle<i::String> message_string =
|
| - i::Handle<i::String>::cast(i::Object::GetProperty(
|
| - isolate, exception_handle, "message").ToHandleChecked());
|
| + i::Handle<i::String> message_string = i::Handle<i::String>::cast(
|
| + i::JSReceiver::GetProperty(isolate, exception_handle, "message")
|
| + .ToHandleChecked());
|
|
|
| if (result == kSuccess) {
|
| v8::base::OS::Print(
|
| @@ -5742,9 +5742,9 @@ TEST(BasicImportExportParsing) {
|
| if (!parser.Parse(&info)) {
|
| i::Handle<i::JSObject> exception_handle(
|
| i::JSObject::cast(isolate->pending_exception()));
|
| - i::Handle<i::String> message_string =
|
| - i::Handle<i::String>::cast(i::Object::GetProperty(
|
| - isolate, exception_handle, "message").ToHandleChecked());
|
| + i::Handle<i::String> message_string = i::Handle<i::String>::cast(
|
| + i::JSReceiver::GetProperty(isolate, exception_handle, "message")
|
| + .ToHandleChecked());
|
|
|
| v8::base::OS::Print(
|
| "Parser failed on:\n"
|
|
|