Index: test/inspector/debugger/script-on-after-compile.js |
diff --git a/test/inspector/debugger/script-on-after-compile.js b/test/inspector/debugger/script-on-after-compile.js |
index 083aa48065e6ca12f71e1c1ee11579761dfed648..9281ace12a065642ac2667536f96e5c175556d1c 100644 |
--- a/test/inspector/debugger/script-on-after-compile.js |
+++ b/test/inspector/debugger/script-on-after-compile.js |
@@ -1,6 +1,7 @@ |
// Copyright 2016 the V8 project authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// Flags: --expose_gc |
print("Checks that inspector correctly process compiled scripts"); |
@@ -48,10 +49,9 @@ |
.then(() => Protocol.Debugger.enable()) |
.then(addScripts) |
.then(() => Protocol.Debugger.disable()) |
- .then(() => InspectorTest.log("Remove script references and re-enable debugger.")) |
- .then(() => Protocol.Runtime.evaluate( |
- { expression: "for (let i = 1; i < 20; ++i) eval(`foo${i} = undefined`);" })) |
- .then(() => Protocol.HeapProfiler.collectGarbage()) |
+ |
+ .then(() => InspectorTest.log("Run gc and then Debugger.enable()..")) |
+ .then(() => Protocol.Runtime.evaluate({ expression: "for (let i = 1; i < 20; ++i) eval(`foo${i} = undefined`); gc();" })) |
.then(() => Protocol.Debugger.enable()) |
.then(InspectorTest.completeTest); |