blob: db811566050139634a288766c5a0d879f370ceee [file] [log] [blame]
description(
"Tests what happens when you use a function as a variable, and that function is closed over."
);
function run_tests(a) {
function x() {
return 3;
}
function y() {
return x();
}
var x = a;
return x + x;
}
for(var i=0; i<100; ++i)
shouldBe("run_tests(13)", "26");