blob: 132305c045c73b56bea36618ec908faff97ac070 [file] [log] [blame]
function f() {
foo = f.caller;
}
// Test C++ code constructor
new Number({ valueOf: f });
if (foo !== null)
throw new Error(foo);
foo = 1;
// Test C++ function.
[1].slice({ valueOf: f });
if (foo !== null)
throw new Error(foo);
foo = 1;
// Test builtin js code
[1].map(f)
if (foo !== null)
throw new Error(foo);