summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/NaN-basic.js
blob: 1f849beefe80f290f165675a3971458fe6aa7e9d (plain)
1
2
3
4
5
6
7
8
9
function assert(x) { if (!x) throw 1; }

try {
    var nan = undefined + 1;
    assert(nan + "" == "NaN");
    console.log("PASS");
} catch (e) {
    console.log("FAIL: " + e);
}