Module: wine Branch: master Commit: 5b3630ec7b75b329e255d29ce50a0a19b93ace1a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b3630ec7b75b329e255d29ce5...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Sep 25 00:51:21 2008 +0200
jscript: Added Number default value implementation.
---
dlls/jscript/number.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/number.c b/dlls/jscript/number.c index 4ace40b..974d309 100644 --- a/dlls/jscript/number.c +++ b/dlls/jscript/number.c @@ -133,8 +133,19 @@ static HRESULT Number_isPrototypeOf(DispatchEx *dispex, LCID lcid, WORD flags, D static HRESULT Number_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp, VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp) { - FIXME("\n"); - return E_NOTIMPL; + NumberInstance *number = (NumberInstance*)dispex; + + switch(flags) { + case DISPATCH_PROPERTYGET: + *retv = number->num; + break; + + default: + FIXME("flags %x\n", flags); + return E_NOTIMPL; + } + + return S_OK; }
static const builtin_prop_t Number_props[] = {