Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4c72b3e932aaeb55a94041b51762e209c2a3eb61..65186b8baa0be3d4287508b7fa3385839d80e9d2 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15553,7 +15553,7 @@ Maybe<bool> JSObject::SetPrototype(Handle<JSObject> object, |
// Nothing to do if prototype is already set. |
if (map->prototype() == *value) return Just(true); |
- bool immutable_proto = object->map()->is_immutable_proto(); |
+ bool immutable_proto = map->is_immutable_proto(); |
if (immutable_proto) { |
RETURN_FAILURE( |
isolate, should_throw, |