blob: 3d7cab7ffe26b96f26824271d1aca45961f5987c [file] [log] [blame]
function Fn() {
return !!(this && this.constructor === Fn);
}
assertEqual(typeof Fn(), 'boolean');
assertEqual(typeof (new Fn()), 'object');
test(function() {
return (Fn() || new Fn());
});