Index: src/runtime/runtime-proxy.cc |
diff --git a/src/runtime/runtime-proxy.cc b/src/runtime/runtime-proxy.cc |
index e9426b7c415fb37422d4cd50282622d83085c8dd..6980b88caef0309077e6c9eb6ae03ab4d42963db 100644 |
--- a/src/runtime/runtime-proxy.cc |
+++ b/src/runtime/runtime-proxy.cc |
@@ -134,8 +134,7 @@ RUNTIME_FUNCTION(Runtime_JSProxyConstruct) { |
if (!new_object->IsJSReceiver()) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
isolate, |
- NewTypeError(MessageTemplate::kProxyTrapConstructMustReturnObject, |
- new_object)); |
+ NewTypeError(MessageTemplate::kProxyConstructNonObject, new_object)); |
} |
// 10. Return newObj. |
return *new_object; |