Index: test/cctest/test-accessors.cc |
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc |
index bda09f01a0ed4380ed0cfab93fed12f477c14580..daafb244e3d1f731c81f4116519281272f1f935f 100644 |
--- a/test/cctest/test-accessors.cc |
+++ b/test/cctest/test-accessors.cc |
@@ -174,6 +174,7 @@ static void XSetter(Local<Value> value, const Info& info, int offset) { |
CHECK_EQ(x_holder, info.This()); |
CHECK_EQ(x_holder, info.Holder()); |
x_register[offset] = value->Int32Value(); |
+ info.GetReturnValue().Set(v8_num(-1)); |
} |
@@ -210,20 +211,20 @@ THREADED_TEST(AccessorIC) { |
"var key_1 = 'x1';" |
"for (var j = 0; j < 10; j++) {" |
" var i = 4*j;" |
- " holder.x0 = i;" |
+ " result.push(holder.x0 = i);" |
" result.push(obj.x0);" |
- " holder.x1 = i + 1;" |
+ " result.push(holder.x1 = i + 1);" |
" result.push(obj.x1);" |
- " holder[key_0] = i + 2;" |
+ " result.push(holder[key_0] = i + 2);" |
" result.push(obj[key_0]);" |
- " holder[key_1] = i + 3;" |
+ " result.push(holder[key_1] = i + 3);" |
" result.push(obj[key_1]);" |
"}" |
"result")); |
- CHECK_EQ(40, array->Length()); |
- for (int i = 0; i < 40; i++) { |
+ CHECK_EQ(80, array->Length()); |
+ for (int i = 0; i < 80; i++) { |
v8::Handle<Value> entry = array->Get(v8::Integer::New(isolate, i)); |
- CHECK_EQ(v8::Integer::New(isolate, i), entry); |
+ CHECK_EQ(v8::Integer::New(isolate, i/2), entry); |
} |
} |