blob: acfc6cbe169fe0973ab8927993c841653a4d7a17 [file] [log] [blame]
if (platformSupportsSamplingProfiler()) {
load("./sampling-profiler/samplingProfiler.js", "caller relative");
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"]);
}