blob: 8892ca3503c90493a9ac5af34c9a046f290d1419 [file] [log] [blame]
if (platformSupportsSamplingProfiler()) {
load("./sampling-profiler/samplingProfiler.js");
function foo() {
let x;
for (let i = 0; i < 1000; i++)
x = new Error();
}
runTest(foo, ["Error", "foo"]);
function bar() {
let x;
for (let i = 0; i < 1000; i++)
x = new Function();
}
runTest(bar, ["Function", "bar"]);
}