Source code

Revision control

Copy as Markdown

Other Tools

load(libdir + "asserts.js");
assertErrorMessage(() => RegExp.prototype.test.call({}), TypeError,
/RegExp.prototype.test called on incompatible receiver: Object/);
assertErrorMessage(() => RegExp.prototype[Symbol.match].call([]), TypeError,
/RegExp.prototype.\[Symbol\.match\] called on incompatible receiver: Array/);