summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js')
-rw-r--r--js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js b/js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js
new file mode 100644
index 000000000..9bb2126b9
--- /dev/null
+++ b/js/src/jit-test/tests/basic/defaultvalue-valueOf-is-noncallable-object.js
@@ -0,0 +1,3 @@
+var obj = { valueOf: {}, toString: function() { return 0; } };
+for (var i = 0; i < 25; i++)
+ assertEq(obj < 1, true);