Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 7ba4a3c4a923de2f38d9aa8d2453d880a26a8b92..9cccd0f56acf46b5a34edf10158a8e0faf27a1d0 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -8728,9 +8728,10 @@ TEST(AccessControlES5) { |
CHECK_EQ(42, g_echo_value); |
v8::Handle<Value> value; |
- CompileRun("Object.defineProperty(other, 'accessible_prop', {value: -1})"); |
- value = CompileRun("other.accessible_prop == 42"); |
+ CompileRun("Object.defineProperty(other, 'accessible_prop', {value: 43})"); |
+ value = CompileRun("other.accessible_prop == 43"); |
CHECK(value->IsTrue()); |
+ CHECK_EQ(43, g_echo_value); // Make sure we didn't overwrite the setter. |
} |