michael@0: function foo() { michael@0: }; michael@0: function f() { michael@0: var e = foo; michael@0: a = new e(); michael@0: assertEq(typeof(a), "object"); michael@0: e=a; michael@0: } michael@0: f();