Index: src/runtime/runtime-proxy.cc |
diff --git a/src/runtime/runtime-proxy.cc b/src/runtime/runtime-proxy.cc |
index 72517195d925f1d84c8d242559aa9d19d7ab688f..a8ab23af4d042cec71502fb2c7569e9ffd9c06de 100644 |
--- a/src/runtime/runtime-proxy.cc |
+++ b/src/runtime/runtime-proxy.cc |
@@ -16,11 +16,11 @@ RUNTIME_FUNCTION(Runtime_CreateJSProxy) { |
DCHECK(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(Object, target, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, handler, 1); |
- if (!target->IsSpecObject()) { |
+ if (!target->IsJSReceiver()) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
isolate, NewTypeError(MessageTemplate::kProxyTargetNonObject)); |
} |
- if (!handler->IsSpecObject()) { |
+ if (!handler->IsJSReceiver()) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
isolate, NewTypeError(MessageTemplate::kProxyHandlerNonObject)); |
} |