michael@0: function f(v, value) michael@0: { michael@0: var b = v !== undefined; michael@0: assertEq(b, value, michael@0: "failed: " + v + " " + value); michael@0: } michael@0: michael@0: f({}, true); michael@0: f({}, true); michael@0: f(null, true); michael@0: f(null, true); michael@0: f(undefined, false); michael@0: f(undefined, false); michael@0: f(objectEmulatingUndefined(), true); michael@0: f(objectEmulatingUndefined(), true); michael@0: f(Object.prototype, true); michael@0: f(Object.prototype, true); michael@0: michael@0: function g(v, value) michael@0: { michael@0: var b = v !== undefined; michael@0: assertEq(b, value, michael@0: "failed: " + v + " " + value); michael@0: } michael@0: michael@0: g({}, true); michael@0: g({}, true); michael@0: michael@0: function h(v, value) michael@0: { michael@0: var b = v !== undefined; michael@0: assertEq(b, value, michael@0: "failed: " + v + " " + value); michael@0: } michael@0: michael@0: h(objectEmulatingUndefined(), true); michael@0: h(objectEmulatingUndefined(), true);