| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: First expression is evaluated first, and then second expression |
| description: Checking with undeclarated variables |
| $ERROR('#1.1: x & (x = 1) throw ReferenceError. Actual: ' + (x & (x = 1))); |
| if ((e instanceof ReferenceError) !== true) { |
| $ERROR('#1.2: x & (x = 1) throw ReferenceError. Actual: ' + (e)); |
| if (((y = 1) & y) !== 1) { |
| $ERROR('#2: ((y = 1) & y) === 1. Actual: ' + (((y = 1) & y))); |