Debian Codegraph @

js/src/jit-test/tests/regexp/RegExpExec-errors.js

raw
1 load(libdir + "asserts.js");
2
3 assertErrorMessage(() => RegExp.prototype.test.call({}), TypeError,
4 /test method called on incompatible Object/);
5 assertErrorMessage(() => RegExp.prototype[Symbol.match].call([]), TypeError,
6 /\[Symbol\.match\] method called on incompatible Array/);