blob: d2ccc852d18b62ace29157da257c1a07192840b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var BUGNUMBER = 1322319;
var summary = "RegExp.prototype.split should throw if RegRxp.prototype.flags is deleted."
print(BUGNUMBER + ": " + summary);
delete RegExp.prototype.flags;
assertThrowsInstanceOf(() => "aaaaa".split(/a/), SyntaxError);
if (typeof reportCompare === "function")
reportCompare(true, true);
|