1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/script/basic/parser/breakStat.js.EXPECTED Thu Sep 12 22:16:40 2013 +0530 1.3 @@ -0,0 +1,92 @@ 1.4 +{ 1.5 + "type": "Program", 1.6 + "body": [ 1.7 + { 1.8 + "type": "WhileStatement", 1.9 + "test": { 1.10 + "type": "Literal", 1.11 + "value": true 1.12 + }, 1.13 + "body": { 1.14 + "type": "BlockStatement", 1.15 + "body": [ 1.16 + { 1.17 + "type": "BreakStatement", 1.18 + "label": null 1.19 + } 1.20 + ] 1.21 + } 1.22 + } 1.23 + ] 1.24 +} 1.25 +{ 1.26 + "type": "Program", 1.27 + "body": [ 1.28 + { 1.29 + "type": "LabeledStatement", 1.30 + "label": { 1.31 + "type": "Identifier", 1.32 + "name": "loop" 1.33 + }, 1.34 + "body": { 1.35 + "type": "BlockStatement", 1.36 + "body": [ 1.37 + { 1.38 + "type": "WhileStatement", 1.39 + "test": { 1.40 + "type": "Literal", 1.41 + "value": true 1.42 + }, 1.43 + "body": { 1.44 + "type": "BlockStatement", 1.45 + "body": [ 1.46 + { 1.47 + "type": "BreakStatement", 1.48 + "label": { 1.49 + "type": "Identifier", 1.50 + "name": "loop" 1.51 + } 1.52 + } 1.53 + ] 1.54 + } 1.55 + } 1.56 + ] 1.57 + } 1.58 + } 1.59 + ] 1.60 +} 1.61 +{ 1.62 + "type": "Program", 1.63 + "body": [ 1.64 + { 1.65 + "type": "LabeledStatement", 1.66 + "label": { 1.67 + "type": "Identifier", 1.68 + "name": "loop" 1.69 + }, 1.70 + "body": { 1.71 + "type": "BlockStatement", 1.72 + "body": [ 1.73 + { 1.74 + "type": "ForStatement", 1.75 + "init": null, 1.76 + "test": null, 1.77 + "update": null, 1.78 + "body": { 1.79 + "type": "BlockStatement", 1.80 + "body": [ 1.81 + { 1.82 + "type": "BreakStatement", 1.83 + "label": { 1.84 + "type": "Identifier", 1.85 + "name": "loop" 1.86 + } 1.87 + } 1.88 + ] 1.89 + } 1.90 + } 1.91 + ] 1.92 + } 1.93 + } 1.94 + ] 1.95 +}