michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Syntax constructions of switch statement michael@0: * michael@0: * @path ch12/12.11/S12.11_A3_T5.js michael@0: * @description Introducing statement not followed by "case" keyword michael@0: * @negative michael@0: */ michael@0: michael@0: function SwitchTest(value){ michael@0: var result = 0; michael@0: michael@0: switch(value) { michael@0: result =2; michael@0: case 0: michael@0: result += 2; michael@0: default: michael@0: result += 32; michael@0: break; michael@0: } michael@0: michael@0: return result; michael@0: } michael@0: michael@0: var x = SwitchTest(0); michael@0: