1
// Copyright 2009 the Sputnik authors. All rights reserved.
2
// This code is governed by the BSD license found in the LICENSE file.
5
* The production x &= y is the same as x = x & y
7
* @path ch11/11.13/11.13.2/S11.13.2_A4.9_T2.9.js
8
* @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null
15
$ERROR('#1: x = true; x &= null; x === 0. Actual: ' + (x));
22
$ERROR('#2: x = null; x &= true; x === 0. Actual: ' + (x));
26
x = new Boolean(true);
29
$ERROR('#3: x = new Boolean(true); x &= null; x === 0. Actual: ' + (x));
34
x &= new Boolean(true);
36
$ERROR('#4: x = null; x &= new Boolean(true); x === 0. Actual: ' + (x));