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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable.html

Issue 1972943002: Modifies few gc related layout tests to work with ignition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/fast/dom/NodeList/nodelist-reachable.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable.html b/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable.html
index 0016cb052d09153e56be04b4cbbb747cb2ab74b6..5f8b5bf608e9812c7e023fe57fb2757ed4ba31d1 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/NodeList/nodelist-reachable.html
@@ -19,7 +19,9 @@ var nodeListKind = {
var i = 1;
for (var kind in nodeListKind) {
var code = nodeListKind[kind];
- eval(code).customProperty = i;
+ // Perform all assignments in a function to avoid references to objects
+ // in dead registers when using ignition (chromium:595672)
+ (() => {eval(code).customProperty = i})();
gc();
shouldBe(code + '.customProperty', '' + i++);
}

Powered by Google App Engine
This is Rietveld 408576698