Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 672e830bb4e0422ed9426443d0e384a734438dfe..8587b846917363de556ceb578a1ca493222c40e6 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2637,8 +2637,10 @@ Genesis::Genesis(Isolate* isolate, |
MakeFunctionInstancePrototypeWritable(); |
- if (!ConfigureGlobalObjects(global_template)) return; |
- isolate->counters()->contexts_created_from_scratch()->Increment(); |
+ if (!FLAG_disable_native_files) { |
+ if (!ConfigureGlobalObjects(global_template)) return; |
+ isolate->counters()->contexts_created_from_scratch()->Increment(); |
+ } |
} |
// Initialize experimental globals and install experimental natives. |