summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/RegExp/match-this.js
blob: ee05462f26e7fbabdb52bc6091996509a6657298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var BUGNUMBER = 887016;
var summary = "RegExp.prototype[@@match] should check this value.";

print(BUGNUMBER + ": " + summary);

for (var v of [null, 1, true, undefined, "", Symbol.iterator]) {
  assertThrowsInstanceOf(() => RegExp.prototype[Symbol.match].call(v),
                         TypeError);
}

if (typeof reportCompare === "function")
    reportCompare(true, true);