summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js b/js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js
new file mode 100644
index 0000000000..6d0eba40ec
--- /dev/null
+++ b/js/src/tests/non262/RegExp/RegExpExec-exec-type-check.js
@@ -0,0 +1,12 @@
+// Bug 1667094.
+
+var obj = {
+ exec() {
+ return function(){};
+ }
+};
+
+assertEq(RegExp.prototype.test.call(obj, ""), true);
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);