Index: test/mjsunit/debug-mirror-cache.js |
diff --git a/test/mjsunit/debug-mirror-cache.js b/test/mjsunit/debug-mirror-cache.js |
index c690aa01332f98ebd79b8e2685733d5d452164c2..8ac6d9a70d993efc002df64eb8121a75e38fb3d0 100644 |
--- a/test/mjsunit/debug-mirror-cache.js |
+++ b/test/mjsunit/debug-mirror-cache.js |
@@ -51,8 +51,7 @@ function listener(event, exec_state, event_data, data) { |
listenerCallCount++; |
// Check that mirror cache is cleared when entering debugger. |
- assertEquals(0, debug.next_handle_, "Mirror cache not cleared"); |
- assertEquals(0, debug.mirror_cache_.length, "Mirror cache not cleared"); |
+ assertTrue(debug.MirrorCacheIsEmpty(), "Mirror cache not cleared"); |
// Get the debug command processor in paused state. |
var dcp = exec_state.debugCommandProcessor(false); |
@@ -66,8 +65,7 @@ function listener(event, exec_state, event_data, data) { |
Debug.scripts(); |
// Some mirrors where cached. |
- assertFalse(debug.next_handle_ == 0, "Mirror cache not used"); |
- assertFalse(debug.mirror_cache_.length == 0, "Mirror cache not used"); |
+ assertFalse(debug.MirrorCacheIsEmpty(), "Mirror cache not used"); |
} |
} catch (e) { |
print(e); |