summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/truthiness/obj-obj-not-equal.js
blob: 5fb905aaf599500da0649ed864532c097359913a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function f(v1, v2, value)
{
  var b = v1 != v2;
  assertEq(b, value,
           "failed: " + v1 + ", " + v2 + ": " + value);
}

var obj = {};
var emul = createIsHTMLDDA();

f(obj, obj, false);
f(obj, obj, false);
f(emul, obj, true);
f(emul, obj, true);
f(obj, emul, true);
f(obj, emul, true);
f(Object.prototype, obj, true);
f(Object.prototype, obj, true);
f(emul, emul, false);
f(createIsHTMLDDA(), emul, true);
f(createIsHTMLDDA(), emul, true);
f(emul, createIsHTMLDDA(), true);
f(emul, createIsHTMLDDA(), true);