Commit 5b3630ec authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Added Number default value implementation.

parent 53040dee
...@@ -133,8 +133,19 @@ static HRESULT Number_isPrototypeOf(DispatchEx *dispex, LCID lcid, WORD flags, D ...@@ -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, static HRESULT Number_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp) VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
{ {
FIXME("\n"); NumberInstance *number = (NumberInstance*)dispex;
return E_NOTIMPL;
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[] = { static const builtin_prop_t Number_props[] = {
......
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