Commit afffa2c5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Added interp_me implementation.

parent eef966fa
...@@ -710,8 +710,14 @@ static HRESULT interp_stop(exec_ctx_t *ctx) ...@@ -710,8 +710,14 @@ static HRESULT interp_stop(exec_ctx_t *ctx)
static HRESULT interp_me(exec_ctx_t *ctx) static HRESULT interp_me(exec_ctx_t *ctx)
{ {
FIXME("\n"); VARIANT v;
return E_NOTIMPL;
TRACE("\n");
IDispatch_AddRef(ctx->this_obj);
V_VT(&v) = VT_DISPATCH;
V_DISPATCH(&v) = ctx->this_obj;
return stack_push(ctx, &v);
} }
static HRESULT interp_bool(exec_ctx_t *ctx) static HRESULT interp_bool(exec_ctx_t *ctx)
......
...@@ -620,6 +620,16 @@ Call ok(not (x is Nothing), "x is 1") ...@@ -620,6 +620,16 @@ Call ok(not (x is Nothing), "x is 1")
Call ok(Nothing is Nothing, "Nothing is not Nothing") Call ok(Nothing is Nothing, "Nothing is not Nothing")
Call ok(x is obj and true, "x is obj and true is false") Call ok(x is obj and true, "x is obj and true is false")
Class TestMe
Public Sub Test(MyMe)
Call ok(Me is MyMe, "Me is not MyMe")
End Sub
End Class
Set obj = New TestMe
Call obj.test(obj)
Call ok(getVT(test) = "VT_DISPATCH", "getVT(test) = " & getVT(test)) Call ok(getVT(test) = "VT_DISPATCH", "getVT(test) = " & getVT(test))
Call ok(Me is Test, "Me is not Test")
reportSuccess() reportSuccess()
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