blob: 8a5ca0136dd9cf345910d08f282f88d1e52dbf72 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var error = null;
let charAt = String.prototype.charAt;
try {
charAt();
} catch (e) {
error = e;
}
shouldBe(String(error), `TypeError: Type error`);