Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 3be500814533e45ee0b6273f45577438fa35019f..6c71de4ce2e2b282e229f6fcfcba3aa432badfb3 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -20171,6 +20171,10 @@ TEST(AccessCheckThrows) { |
CheckCorrectThrow("%GetLocalPropertyNames(other, true)"); |
CheckCorrectThrow("%DefineOrRedefineAccessorProperty(" |
"other, 'x', null, null, 1)"); |
+ |
+ // Reset the failed access check callback so it does not influence |
+ // the other tests. |
+ v8::V8::SetFailedAccessCheckCallbackFunction(NULL); |
} |
#endif // WIN32 |