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: * Line Terminators between operators are allowed michael@0: * michael@0: * @path ch07/7.3/S7.3_A7_T3.js michael@0: * @description Insert Line Terminator in var x=y*z michael@0: */ michael@0: michael@0: // CHECK#1 michael@0: var y=3; michael@0: var z=2; michael@0: var michael@0: x michael@0: = michael@0: y michael@0: * michael@0: z michael@0: ; michael@0: if (x !== 6) { michael@0: $ERROR('#1: var\\nx\\n=\\ny\\n*\\nz\\n; x === 6. Actual: ' + (x)); michael@0: } michael@0: x=0; michael@0: michael@0: // CHECK#2 michael@0: var y=3; michael@0: var z=2; michael@0: var michael@0: x michael@0: = michael@0: y michael@0: * michael@0: z michael@0: ; michael@0: if (x !== 6) { michael@0: $ERROR('#2: var\\nx\\n=\\ny\\n*\\nz\\n; x === 6. Actual: ' + (x)); michael@0: } michael@0: x=0; michael@0: michael@0: // CHECK#3 michael@0: var y=3; michael@0: var z=2; michael@0: eval("\u2028var\u2028x\u2028=\u2028y\u2028*\u2028z\u2028"); michael@0: if (x !== 6) { michael@0: $ERROR('#3: eval("\\u2028var\\u2028x\\u2028=\\u2028y\\u2028*\\u2028z\\u2028"); x === 6. Actual: ' + (x)); michael@0: } michael@0: x=0; michael@0: michael@0: // CHECK#4 michael@0: var y=3; michael@0: var z=2; michael@0: eval("\u2029var\u2029x\u2029=\u2029y\u2029*\u2029z\u2029"); michael@0: if (x !== 6) { michael@0: $ERROR('#4: eval("\\u2029var\\u2029x\\u2029=\\u2029y\\u2029*\\u2029z\\u2029"); x === 6. Actual: ' + (x)); michael@0: } michael@0: