summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js
blob: 6d0eba40ecb3b2631abb16bc22ae449bbb01ee84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Bug 1667094.

var obj = {
  exec() {
    return function(){};
  }
};

assertEq(RegExp.prototype.test.call(obj, ""), true);

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