Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 4d69f8407f4fb4e9bff20bd174b8cb848d824fe6..1d2fb8663379ebab158c6abf2c6733bd86529417 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -41,10 +41,11 @@ |
#include "platform.h" |
#include "snapshot.h" |
#include "trig-table.h" |
-#include "extensions/free-buffer-extension.h" |
#include "extensions/externalize-string-extension.h" |
+#include "extensions/free-buffer-extension.h" |
#include "extensions/gc-extension.h" |
#include "extensions/statistics-extension.h" |
+#include "extensions/trigger-failure-extension.h" |
#include "code-stubs.h" |
namespace v8 { |
@@ -107,6 +108,7 @@ void Bootstrapper::InitializeOncePerProcess() { |
GCExtension::Register(); |
ExternalizeStringExtension::Register(); |
StatisticsExtension::Register(); |
+ TriggerFailureExtension::Register(); |
} |
@@ -2266,6 +2268,9 @@ bool Genesis::InstallExtensions(Handle<Context> native_context, |
if (FLAG_track_gc_object_stats) { |
InstallExtension(isolate, "v8/statistics", &extension_states); |
} |
+ if (FLAG_expose_trigger_failure) { |
+ InstallExtension(isolate, "v8/trigger-failure", &extension_states); |
+ } |
if (extensions == NULL) return true; |
// Install required extensions |