blob: 0284bdce3d9e315ad599eecc8962438d035fc883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
function f() {
var x = -[NaN][0];
assertEq(x === x, false);
assertEq(x !== x, true);
assertEq(x == x, false);
assertEq(x != x, true);
var y = -("x" / {});
var z = y;
assertEq(y === z, false);
assertEq(y !== z, true);
assertEq(y == z, false);
assertEq(y != z, true);
}
f();
function g(x, y) {
var z = x / y;
assertEq(z === z, false);
}
g(0, 0);
|