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: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call(42)'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call("")'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call({})'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call(null)'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call([])'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call(undefined)'), true); michael@0: assertEq(raisesException(TypeError)('Boolean.prototype.toSource.call(new String())'), true); michael@0: michael@0: assertEq(completesNormally('Boolean.prototype.toSource.call(true)'), true); michael@0: assertEq(completesNormally('Boolean.prototype.toSource.call(new Boolean(true))'), true); michael@0: michael@0: reportCompare(true, true);