Bug 818620 - Testcase to ensure all arguments processed in Math.max/min. r=just-tests
authorJames Kitchener <jkitch.bug@gmail.com>
Mon, 24 Dec 2012 10:44:35 -0600
changeset 126103 978ca52298f03d045caf4599364f844db0ae41f4
parent 126102 0526bcb09b1b60139f7adadbc578ef1c93ae06ea
child 126104 0e0200b9ef780a04dbbabd9cc89aa171a3393e35
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjust-tests
bugs818620
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 818620 - Testcase to ensure all arguments processed in Math.max/min. r=just-tests
js/src/jit-test/tests/basic/maxConvertAllArgs.js
new file mode 100644
--- /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);