Commit 7e4f254b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Support VARIANT type in jsval_strict_equal.

parent 42c044ae
......@@ -522,8 +522,9 @@ HRESULT jsval_strict_equal(jsval_t lval, jsval_t rval, BOOL *ret)
*ret = !get_bool(lval) == !get_bool(rval);
break;
case JSV_VARIANT:
FIXME("VARIANT not implemented\n");
return E_NOTIMPL;
WARN("VARIANT type, returning false\n");
*ret = FALSE;
return S_OK;
}
return S_OK;
......
......@@ -201,6 +201,7 @@ ok(tmp === 3, "tmp = " + tmp);
ok(getVT(d / d) === "VT_I4", "vt v_date(0) / v_date(0) = " + getVT(d / d));
ok((+d) === e, "+v_date(0) = " + (+d) + " expected " + e);
ok(("" + d).match(/^Sat Dec 30 00:00:00 .* 1899$/) != null, "+v_date(0) = " + d);
ok(d != d, "date d == d");
d = v_date(2.5);
e = Date.parse("Mon Jan 1 12:00:00 1900");
......@@ -211,6 +212,7 @@ ok(tmp === 3, "tmp = " + tmp);
e = Date.parse("Sat Mar 28 00:00:00 2015");
ok((+d) === e, "+v_date(2015y) = " + (+d) + " expected " + e);
ok(("" + d).match(/^Sat Mar 28 00:00:00 .* 2015$/) != null, "+v_date(2015y) = " + d);
ok(d != d, "date d == d");
})();
function testRecFunc(x) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment