| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| If Type(x) is Boolean and Type(y) is Object, |
| return x == ToPrimitive(y) |
| description: y is object, x is primitive boolean |
| if ((true == new Boolean(true)) !== true) { |
| $ERROR('#1: (true == new Boolean(true)) === true'); |
| if ((true == new Number(1)) !== true) { |
| $ERROR('#2: (true == new Number(1)) === true'); |
| if ((true == new String("+1")) !== true) { |
| $ERROR('#3: (true == new String("+1")) === true'); |