Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 795eda073c18e44244093ccc8a88785285d9015a..d625d644c776e744251d69bfc7f582b77751c1b2 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -290,6 +290,17 @@ Handle<Object> SetLocalPropertyIgnoreAttributes( |
} |
+void SetLocalPropertyNoThrow(Handle<JSObject> object, |
+ Handle<String> key, |
+ Handle<Object> value, |
+ PropertyAttributes attributes) { |
+ ASSERT(!Top::has_pending_exception()); |
+ CHECK(!SetLocalPropertyIgnoreAttributes( |
+ object, key, value, attributes).is_null()); |
+ CHECK(!Top::has_pending_exception()); |
+} |
+ |
+ |
Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
Handle<String> key, |
Handle<Object> value, |