Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html

Issue 2813873002: Modify some more GC layout tests to work with Ignition (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html b/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html
index 4f65843e93caec4a4234c6cc3782723d4bd306c9..1d09df928c29d873c983203b75be030904858559 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/cursor-request-cycle.html
@@ -73,7 +73,10 @@ function onOpen(evt)
shouldBeEqualToString("cursor.key", "key2");
shouldBeEqualToString("cursor.value", "value2");
- cursorObservation = internals.observeGC(cursor);
+ // Access objects in an inner function to avoid references to
+ // objects remaining live on this function's stack frame
+ // (http://crbug.com/595672/).
+ (() => { cursorObservation = internals.observeGC(cursor); })();
evalAndLog("cursor = null");
evalAndLog("gc()");
shouldBeTrue("cursorRequestObservation.wasCollected");

Powered by Google App Engine
This is Rietveld 408576698