/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

assertEq(raisesException(TypeError)('Boolean.prototype.toString.call(42)'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call("")'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call({})'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call(null)'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call([])'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call(undefined)'), true);
assertEq(raisesException(TypeError)('Boolean.prototype.toString.call(new String())'), true);

assertEq(completesNormally('Boolean.prototype.toString.call(true)'), true);
assertEq(completesNormally('Boolean.prototype.toString.call(new Boolean(true))'), true);

reportCompare(true, true);