| 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");
|
|
|