blob: ece29fe8a2c6e86601382761fc91e70f22fdf418 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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);
|