Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index ff9a3672cb75db42c423b92da39a46d4ee354895..927386289ac392254281077665c980768294f946 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8249,8 +8249,10 @@ RUNTIME_FUNCTION(Runtime_FunctionBindArguments) { |
Handle<String> length_string = isolate->factory()->length_string(); |
PropertyAttributes attr = |
static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY); |
- JSObject::SetOwnPropertyIgnoreAttributes(bound_function, length_string, |
- new_length, attr); |
+ RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, |
+ JSObject::SetOwnPropertyIgnoreAttributes(bound_function, length_string, |
+ new_length, attr)); |
return *bound_function; |
} |