Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index 012944e2c28b5344240852166b40ec2a6cd48cf4..05a4878945aa373fc8502af8a2ecb9e8b8065330 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -582,6 +582,10 @@ bool Context::IsBootstrappingOrValidParentContext( |
#endif |
+void Context::ResetErrorsThrown() { |
+ DCHECK(IsNativeContext()); |
+ set_errors_thrown(Smi::FromInt(0)); |
+} |
void Context::IncrementErrorsThrown() { |
DCHECK(IsNativeContext()); |