Chromium Code Reviews| Index: src/d8.cc |
| diff --git a/src/d8.cc b/src/d8.cc |
| index 7db6f3ed9e442081528e05140bd25b8911e26cb6..854727125fda5e0147e979a863513e7917d20dd7 100644 |
| --- a/src/d8.cc |
| +++ b/src/d8.cc |
| @@ -810,6 +810,9 @@ void Shell::WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args) { |
| void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) { |
| int exit_code = args[0]->Int32Value(); |
| +#ifndef V8_SHARED |
| + CleanupWorkers(); |
| +#endif // !V8_SHARED |
| OnExit(args.GetIsolate()); |
| exit(exit_code); |
| } |