Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 5571e296924c10b6597f6a6b3d83f237f01517d9..f8f2c0f636203eb3982a0baf7534ab7e212996e6 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -13351,7 +13351,7 @@ THREADED_TEST(ObjectProtoToString) { |
value = |
context->Global()->ObjectProtoToString(context.local()).ToLocalChecked(); |
CHECK(value->IsString() && |
- value->Equals(context.local(), v8_str("[object global]")).FromJust()); |
+ value->Equals(context.local(), v8_str("[object Object]")).FromJust()); |
// Check ordinary object |
Local<Value> object = |
@@ -13397,7 +13397,7 @@ TEST(ObjectProtoToStringES6) { |
value = |
context->Global()->ObjectProtoToString(context.local()).ToLocalChecked(); |
CHECK(value->IsString() && |
- value->Equals(context.local(), v8_str("[object global]")).FromJust()); |
+ value->Equals(context.local(), v8_str("[object Object]")).FromJust()); |
// Check ordinary object |
Local<Value> object = CompileRun("new Object()"); |