michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: var BUGNUMBER = 528082; michael@0: var summary = 'named function expression function-name-as-upvar slot botch'; michael@0: michael@0: printBugNumber(BUGNUMBER); michael@0: printStatus(summary); michael@0: michael@0: function f() { michael@0: return function g(a) { return function () { return g; }(); }(); michael@0: } michael@0: var actual = typeof f(); michael@0: var expect = "function"; michael@0: michael@0: reportCompare(expect, actual, summary); michael@0: michael@0: printStatus("All tests passed!");