| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index a7ff337f7acda76c5475620fa697bd8e9317d0f5..5bef79f2c0ff426662cbd2ed0d7676fa73649c31 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1584,6 +1584,12 @@ Local<UnboundScript> ScriptCompiler::CompileUnbound(
|
| options = kConsumeParserCache;
|
| }
|
|
|
| + // Don't try to produce any kind of cache when the debugger is loaded.
|
| + if (isolate->debug()->is_loaded() &&
|
| + (options == kProduceParserCache || options == kProduceCodeCache)) {
|
| + options = kNoCompileOptions;
|
| + }
|
| +
|
| i::ScriptData* script_data = NULL;
|
| if (options == kConsumeParserCache || options == kConsumeCodeCache) {
|
| DCHECK(source->cached_data);
|
|
|