Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b21a47e954c863c9d71f5332a74281b142fd78a1..5ff3c7dc2133140273d91207a1cec99b1bc2b3bf 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -995,6 +995,14 @@ MaybeHandle<Object> JSObject::GetPropertyWithFailedAccessCheck( |
GetPropertyWithInterceptor(it, &done), Object); |
if (done) return result; |
} |
+ |
+ // Cross-Origin [[Get]] of Well-Known Symbols does not throw, and returns |
+ // undefined. |
+ Handle<Name> name = it->GetName(); |
+ if (name->IsSymbol() && Symbol::cast(*name)->is_well_known_symbol()) { |
+ return it->factory()->undefined_value(); |
+ } |
+ |
it->isolate()->ReportFailedAccessCheck(checked); |
RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(it->isolate(), Object); |
return it->factory()->undefined_value(); |