From b40b352c8f8e995d06f1ab04742edadfc832cb05 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 5 Sep 2008 02:39:07 +0200 Subject: [PATCH] jscript: Added empty statement implementation. --- dlls/jscript/engine.c | 6 ++++-- dlls/jscript/tests/run.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 827087f610..ef66c9767a 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -114,8 +114,10 @@ HRESULT var_statement_eval(exec_ctx_t *ctx, statement_t *stat, return_type_t *rt HRESULT empty_statement_eval(exec_ctx_t *ctx, statement_t *stat, return_type_t *rt, VARIANT *ret) { - FIXME("\n"); - return E_NOTIMPL; + TRACE("\n"); + + V_VT(ret) = VT_EMPTY; + return S_OK; } HRESULT expression_statement_eval(exec_ctx_t *ctx, statement_t *stat, return_type_t *rt, VARIANT *ret) diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index af3d88625e..b9daee42a9 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -349,6 +349,7 @@ static void parse_script_a(const char *src) static void run_tests(void) { parse_script_a(""); + parse_script_a("/* empty */ ;"); } START_TEST(run)