Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
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);