chromium/third_party/blink/web_tests/fast/js/script-tests/dfg-custom-getter.js

description(
"Tests that DFG custom getter caching does not break the world."
);

function foo() {
    var result = '';
    for (var current = document.getElementById('myFirstDiv'); current; current = current.nextSibling)
        result += ' ' + current.nodeName;
    return result;
}

for (var i = 0; i < 200; ++i)
    shouldBe("foo()", "\" DIV #text DIV #text SCRIPT\"");