Jacek Caban : jscript: Added empty statement implementation.
Alexandre Julliard
julliard at winehq.org
Fri Sep 5 06:57:57 CDT 2008
Module: wine
Branch: master
Commit: b40b352c8f8e995d06f1ab04742edadfc832cb05
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b40b352c8f8e995d06f1ab04742edadfc832cb05
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Sep 5 02:39:07 2008 +0200
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 827087f..ef66c97 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 af3d886..b9daee4 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)
More information about the wine-cvs
mailing list