Source code
Revision control
Copy as Markdown
Other Tools
var BUGNUMBER = 887016;
var summary = "RegExp.prototype[@@split] should check this value.";
print(BUGNUMBER + ": " + summary);
for (var v of [null, 1, true, undefined, "", Symbol.iterator]) {
assertThrowsInstanceOf(() => RegExp.prototype[Symbol.split].call(v),
TypeError);
}
if (typeof reportCompare === "function")
reportCompare(true, true);