File: test047.js

package info (click to toggle)
pyjamas 0.7~%2Bpre2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,656 kB
  • ctags: 12,331
  • sloc: python: 74,493; php: 805; sh: 291; makefile: 59; xml: 9
file content (31 lines) | stat: -rw-r--r-- 609 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    var x = 5;
    x += 1;
    while ((x > 0)) {
pyjslib_printFunc([ x ], 1 );
    x -= 1;
    }
    try {
pyjslib_printFunc([ 5 ], 1 );
    } catch(err) {
pyjslib_printFunc([ 2 ], 1 );
    }
    if ((__name__ == '__main__')) {
pyjslib_printFunc([ x ], 1 );
    }
pyjslib_printFunc([ 5 ], 1 );

        var __x = pyjslib_range(10).__iter__();
        try {
            while (true) {
                var x = __x.next();
                
        
pyjslib_printFunc([ x ], 1 );

            }
        } catch (e) {
            if (e != StopIteration) {
                throw e;
            }
        }