| Index: test/cctest/heap/test-heap.cc
|
| diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
|
| index 88aee8adf89e4794ded2445a3261d83a01ca650f..e117ab8029476ef817fbd0be297692a070c589a7 100644
|
| --- a/test/cctest/heap/test-heap.cc
|
| +++ b/test/cctest/heap/test-heap.cc
|
| @@ -6277,6 +6277,7 @@ static void RemoveCodeAndGC(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
| Handle<JSFunction> fun = Handle<JSFunction>::cast(obj);
|
| fun->ReplaceCode(*isolate->builtins()->CompileLazy());
|
| fun->shared()->ReplaceCode(*isolate->builtins()->CompileLazy());
|
| + fun->shared()->ClearBytecodeArray(); // Bytecode is code too.
|
| isolate->heap()->CollectAllAvailableGarbage("remove code and gc");
|
| }
|
|
|
|
|