| sameValue: function (input, expected, message) { |
| throw new Error(message); |
| function testEquals(x, y, z, message) { |
| assert.sameValue(x == y, z, message); |
| assert.sameValue(y == x, z, message); |
| testEquals(Object(2n), 1n, false, "ToPrimitive: unbox object with internal slot"); |
| [Symbol.toPrimitive]: function() { |
| throw new Error("Should never execute it"); |
| throw new Error("Should never execute it"); |
| testEquals(o, 2n, true, "ToPrimitive: @@toPrimitive"); |
| throw new Error("Should never execute it"); |
| testEquals(o, 1n, false, "ToPrimitive: valueOf"); |