Debian Codegraph @

js/src/tests/test262/language/statements/continue/12.7-1.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 12.7-1
6 description: >
7 The continue Statement - a continue statement without an
8 identifier may have a LineTerminator before the semi-colon
9 ---*/
10
11 var sum = 0;
12 for (var i = 1; i <= 10; i++) {
13 if (true) continue
14 ; else {}
15 sum += i;
16 }
17
18 assert.sameValue(sum, 0, 'sum');
19
20 reportCompare(0, 0);