chromium/third_party/blink/web_tests/fast/js/regress/script-tests/string-cons-tower.js

function foo(a) {
    for (var i = 0; i < 100; ++i)
        a = new String(a);
    return a;
}

var result;
for (var i = 0; i < 10000; ++i)
    result = foo("hello");

if (result != "hello")
    throw new "Error: bad result: " + result;