blob: 665ed4b556cbe43b37b8b0498d3cac4db1dbfe1e [file] [log] [blame]
"use strict";
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`);