From 613197451b7cc87843cdbeeb472bd9b459fe5a5a Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Mon, 6 Feb 2017 21:22:35 -0800 Subject: [PATCH] Bug 1335996 - Make test for bug 1333946 more reliable. (r=me) --- js/src/jit-test/tests/ion/bug1333946.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/src/jit-test/tests/ion/bug1333946.js b/js/src/jit-test/tests/ion/bug1333946.js index 9cb3fb629415..1fa1b9c491fe 100644 --- a/js/src/jit-test/tests/ion/bug1333946.js +++ b/js/src/jit-test/tests/ion/bug1333946.js @@ -1,6 +1,8 @@ -// |jit-test| exitstatus: 6; +// |jit-test| error: 42; for (var x of [0]) { - timeout(0.001); - for (;;) {} + for (var i = 0; ; i++) { + if (i === 20000) + throw 42; + } }