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

print(BUGNUMBER + ": " + summary);

var obj = { flags: "", toString: () => "-" };
assertDeepEq(RegExp.prototype[Symbol.split].call(obj, "a-b-c"),
             ["a", "b", "c"]);

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