summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/js/script-tests/dfg-custom-getter.js
blob: 433556db69aebdf11ddc79874ce91b51cd4f9e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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\"");