Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index bef6dba7932e0297f3471f22b7829395c6379a24..3687821d882603cb1cf4cc0c80d2d94868ef4597 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15074,7 +15074,7 @@ Maybe<bool> JSProxy::SetPrototype(Handle<JSProxy> proxy, Handle<Object> value, |
// throw a TypeError exception. |
if (bool_trap_result && !value->SameValue(*target_proto)) { |
isolate->Throw(*isolate->factory()->NewTypeError( |
- MessageTemplate::kProxyTrapViolatesInvariant, target)); |
+ MessageTemplate::kProxyTrapViolatesInvariant, trap_name)); |
return Nothing<bool>(); |
} |
// 13. Return booleanTrapResult. |