Index: third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html |
index 5bb3d7cdc001943c531158425e4411949e994916..5ae3e7a6eb43bd1b6d72b8b8f5a0d47e129cd9c9 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/StyleSheet/gc-rule-children-wrappers.html |
@@ -31,7 +31,9 @@ |
function test(expr, expectedType, testWhat) |
{ |
shouldBe(expr + ".type", expectedType); |
- eval(expr + "." + testWhat).foo = "bar" |
+ // Perform all assignments in a function to avoid references to objects |
+ // in dead registers when using ignition (chromium:595672) |
+ (() => {eval(expr + "." + testWhat).foo = "bar";})(); |
gc(); |
shouldBe(expr + "." + testWhat + ".foo", "'bar'"); |
} |