Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: test/cctest/test-api.cc

Issue 6865012: Regression test for bug 1330. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index d7621d12cf2ff1af6c02c36abd4c626b418eb612..9b016472cc4b0ad20beb8dcfaec5e335209b4027 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -13768,6 +13768,24 @@ static v8::Handle<v8::Array> Enumerator(const v8::AccessorInfo& info) {
}
+static Handle<Value> getter1330(Local<String> property,
+ const AccessorInfo& info) {
+ return ThrowException(v8_str("Error"));
+}
+
+
+THREADED_TEST(Regression1330) {
+ HandleScope scope;
+ LocalContext context;
+
+ Local<ObjectTemplate> templ = ObjectTemplate::New();
+ templ->SetNamedPropertyHandler(getter1330);
+ Local<Object> instance = templ->NewInstance();
+ Local<Value> result = instance->Get(v8_str("foo"));
+ CHECK(result.IsEmpty());
+}
+
+
TEST(NamedEnumeratorAndForIn) {
v8::HandleScope handle_scope;
LocalContext context;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698