Chromium Code Reviews| Index: src/factory.cc |
| diff --git a/src/factory.cc b/src/factory.cc |
| index 66b12ead9e7a912c0ee3defe7392d2557f20a926..6b9134d824a3268dddd4627e24ad167c3a31466a 100644 |
| --- a/src/factory.cc |
| +++ b/src/factory.cc |
| @@ -727,6 +727,7 @@ Handle<Context> Factory::NewNativeContext() { |
| array->set_map_no_write_barrier(*native_context_map()); |
| Handle<Context> context = Handle<Context>::cast(array); |
| context->set_js_array_maps(*undefined_value()); |
| + context->set_errors_thrown(Smi::FromInt(0)); |
| DCHECK(context->IsNativeContext()); |
| return context; |
| } |