Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 800b5b4c642462e18d389238e6c1141b7f5c68f3..d039ac06ad7606224549f8b268c32e8dc52e91fc 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2268,13 +2268,8 @@ bool Genesis::InstallExtensions(Handle<Context> native_context, |
InstallExtension(isolate, "v8/trigger-failure", &extension_states); |
} |
- if (extensions == NULL) return true; |
- // Install required extensions |
- int count = v8::ImplementationUtilities::GetNameCount(extensions); |
- const char** names = v8::ImplementationUtilities::GetNames(extensions); |
- for (int i = 0; i < count; i++) { |
- if (!InstallExtension(isolate, names[i], &extension_states)) |
- return false; |
+ for (const char** it = extensions->begin(); it != extensions->end(); ++it) { |
+ if (!InstallExtension(isolate, *it, &extension_states)) return false; |
} |
return true; |