Debian Codegraph @

js/src/tests/test262/language/statements/break/12.8-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.8-1
6 description: >
7 The break Statement - a break statement without an identifier may
8 have a LineTerminator before the semi-colon
9 ---*/
10
11 var sum = 0;
12 for (var i = 1; i <= 10; i++) {
13 if (i === 6) {
14 break
15 ;
16 }
17 sum += i;
18 }
19
20 assert.sameValue(sum, 15, 'sum');
21
22 reportCompare(0, 0);