| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: The production x &= y is the same as x = x & y |
| Type(x) and Type(y) vary between primitive boolean and Boolean |
| $ERROR('#1: x = true; x &= true; x === 1. Actual: ' + (x)); |
| $ERROR('#2: x = new Boolean(true); x &= true; x === 1. Actual: ' + (x)); |
| $ERROR('#3: x = true; x &= new Boolean(true); x === 1. Actual: ' + (x)); |
| $ERROR('#4: x = new Boolean(true); x &= new Boolean(true); x === 1. Actual: ' + (x)); |