Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 11f999224fdc4c61bc2c9fe2ff7eab4b45c4ca4e..f389b41acb3f693295e023678087a7416a2f8b55 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1415,7 +1415,10 @@ RUNTIME_FUNCTION(Runtime_ObjectDefineProperties) { |
DCHECK(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(Object, o, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, properties, 1); |
- return JSReceiver::DefineProperties(isolate, o, properties); |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, o, JSReceiver::DefineProperties(isolate, o, properties)); |
+ return *o; |
} |
+ |
} // namespace internal |
} // namespace v8 |