Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index dfd98359316740a41a9074cf2cbfc4443ae4fae0..a720f812e0352fd046ee2b253f522b259caf8cf6 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -201,7 +201,8 @@ RUNTIME_FUNCTION(Runtime_FunctionSetPrototype) { |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, fun, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, value, 1); |
RUNTIME_ASSERT(fun->should_have_prototype()); |
- Accessors::FunctionSetPrototype(fun, value); |
+ RETURN_FAILURE_ON_EXCEPTION(isolate, |
+ Accessors::FunctionSetPrototype(fun, value)); |
return args[0]; // return TOS |
} |