| Index: test/cctest/test-debug.cc
|
| ===================================================================
|
| --- test/cctest/test-debug.cc (revision 1954)
|
| +++ test/cctest/test-debug.cc (working copy)
|
| @@ -30,6 +30,7 @@
|
| #include "v8.h"
|
|
|
| #include "api.h"
|
| +#include "compilation-cache.h"
|
| #include "debug.h"
|
| #include "platform.h"
|
| #include "stub-cache.h"
|
| @@ -1678,6 +1679,11 @@
|
| }
|
| CHECK_EQ(5, break_point_hit_count);
|
|
|
| + // BUG(343): It should not really be necessary to clear the
|
| + // compilation cache here, but right now the debugger relies on the
|
| + // script being recompiled, not just fetched from the cache.
|
| + i::CompilationCache::Clear();
|
| +
|
| // Reload the script and get f again checking that the ignore survives.
|
| v8::Script::Compile(script, &origin)->Run();
|
| f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f")));
|
|
|