blob: 8d866550df94cd23a38ed2aa4b6d636491da70cd [file] [log] [blame]
const chars = 'abcdefghijklmnopqrstuvwxyz';
var prim = '';
for (var i = 0; i < 32768; i++) {
prim += chars.charAt(~~(Math.random() * 26));
}
const obj = new String(prim);
function test(obj)
{
return obj.toString();
}
noInline(test);
for (var i = 0; i < 1e6; ++i)
test(obj);