var run = function () { return false; }; if (true) { var _run = function () { return true; }; } function test() { return run(); }