| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index 9fc909ba9fb59173e2a18bade8553abe17dd412f..814a8f44ee52e11c25ee104b133808d6337a5017 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -1269,8 +1269,11 @@ void Shell::Initialize(Isolate* isolate) {
|
| V8::SetAddHistogramSampleFunction(AddHistogramSample);
|
| }
|
| #endif // V8_SHARED
|
| - if (options.test_shell) return;
|
| +}
|
| +
|
|
|
| +void Shell::InitializeDebugger(Isolate* isolate) {
|
| + if (options.test_shell) return;
|
| #ifndef V8_SHARED
|
| Locker lock;
|
| HandleScope scope;
|
| @@ -1897,8 +1900,9 @@ int Shell::Main(int argc, char* argv[]) {
|
| int result = 0;
|
| Isolate* isolate = Isolate::GetCurrent();
|
| {
|
| - Symbols symbols(isolate);
|
| Initialize(isolate);
|
| + Symbols symbols(isolate);
|
| + InitializeDebugger(isolate);
|
|
|
| if (options.stress_opt || options.stress_deopt) {
|
| Testing::SetStressRunType(options.stress_opt
|
|
|