chromium/third_party/blink/web_tests/fast/js/regress/script-tests/string-concat-object.js

function foo(a) {
    return "foo" + new String(a) + "bar";
}

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

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