From e6ad1cd6a5205db674bd1104d9c99ef36ff3da8a Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sun, 25 Mar 2018 13:35:18 +0200 Subject: Bug 1335996 - Make test for bug 1333946 more reliable Issue mcp-graveyard/UXP#74 --- js/src/jit-test/tests/ion/bug1333946.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/src/jit-test/tests/ion/bug1333946.js b/js/src/jit-test/tests/ion/bug1333946.js index 9cb3fb6294..1fa1b9c491 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; + } } -- cgit v1.2.3