blob: b71eb9c579836a800445f805c8cf4df1d3ac4f40 [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.valueOf();
}
noInline(test);
for (var i = 0; i < 1e6; ++i)
test(obj);