| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If Result(3).type is normal and its completion value is a value V, |
| description: Expression statement. Eval return primitive value |
| if (eval("x = 1") !== 1) { |
| $ERROR('#1: eval("x = 1") === 1. Actual: ' + (eval("x = 1"))); |
| $ERROR('#2: eval("1") === 1. Actual: ' + (eval("1"))); |
| if (eval("'1'") !== '1') { |
| $ERROR('#3: eval("\'1\'") === \'1\'. Actual: ' + (eval("'1'"))); |
| $ERROR('#4: x = 1; eval("++x") === 2. Actual: ' + (x)); |