diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/basic/maxConvertAllArgs.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/maxConvertAllArgs.js b/js/src/jit-test/tests/basic/maxConvertAllArgs.js new file mode 100644 index 0000000000..9fd9198404 --- /dev/null +++ b/js/src/jit-test/tests/basic/maxConvertAllArgs.js @@ -0,0 +1,11 @@ +//Bug 818620
+
+load(libdir + "asserts.js");
+
+assertThrowsInstanceOf(function () {
+ Math.max(NaN, { valueOf: function () { throw new Error() } });
+}, Error);
+
+assertThrowsInstanceOf(function () {
+ Math.min(NaN, { valueOf: function () { throw new Error() } });
+}, Error);
|