Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 92f7b0fbcfa8b49939f2a902d4bdc8f09929b677..1224ab1c6d73c244e089564746ac8abf22d08801 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3279,6 +3279,11 @@ MaybeHandle<Object> Object::SetSuperProperty(LookupIterator* it, |
SetPropertyInternal(it, value, language_mode, store_mode, &found); |
if (found) return result; |
+ if (!it->GetReceiver()->IsJSReceiver()) { |
+ return WriteToReadOnlyProperty(it->isolate(), it->GetReceiver(), it->name(), |
+ value, language_mode); |
+ } |
+ |
LookupIterator own_lookup(it->GetReceiver(), it->name(), LookupIterator::OWN); |
switch (own_lookup.state()) { |