js/src/jit-test/tests/for-of/completion.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 // The completion value of a for-of loop is the completion value of the
     2 // last evaluation of the body, or undefined.
     4 assertEq(eval("for (let x of [1, 2, 3]) { x }"), 3);
     5 assertEq(eval("for (let x of [1, 2, 3]) { x * 2 }"), 6);
     6 assertEq(eval("for (let x of []) { x }"), undefined);

mercurial