jscript: Added some missing functions stubs.
This commit is contained in:
parent
de0a875146
commit
4781e05591
|
@ -52,6 +52,7 @@ static const WCHAR propertyIsEnumerableW[] =
|
|||
static const WCHAR isPrototypeOfW[] = {'i','s','P','r','o','t','o','t','y','p','e','O','f',0};
|
||||
static const WCHAR valueOfW[] = {'v','a','l','u','e','O','f',0};
|
||||
static const WCHAR toUTCStringW[] = {'t','o','U','T','C','S','t','r','i','n','g',0};
|
||||
static const WCHAR toGMTStringW[] = {'t','o','G','M','T','S','t','r','i','n','g',0};
|
||||
static const WCHAR toDateStringW[] = {'t','o','D','a','t','e','S','t','r','i','n','g',0};
|
||||
static const WCHAR toTimeStringW[] = {'t','o','T','i','m','e','S','t','r','i','n','g',0};
|
||||
static const WCHAR toLocaleDateStringW[] = {'t','o','L','o','c','a','l','e','D','a','t','e','S','t','r','i','n','g',0};
|
||||
|
@ -780,6 +781,13 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT Date_toGMTString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
|
||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *caller)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
/* ECMA-262 3rd Edition 15.9.5.3 */
|
||||
static HRESULT dateobj_to_date_string(DateInstance *date, VARIANT *retv)
|
||||
{
|
||||
|
@ -2062,6 +2070,7 @@ static const builtin_prop_t Date_props[] = {
|
|||
{setUTCMonthW, Date_setUTCMonth, PROPF_METHOD|2},
|
||||
{setUTCSecondsW, Date_setUTCSeconds, PROPF_METHOD|2},
|
||||
{toDateStringW, Date_toDateString, PROPF_METHOD},
|
||||
{toGMTStringW, Date_toGMTString, PROPF_METHOD},
|
||||
{toLocaleDateStringW, Date_toLocaleDateString, PROPF_METHOD},
|
||||
{toLocaleStringW, Date_toLocaleString, PROPF_METHOD},
|
||||
{toLocaleTimeStringW, Date_toLocaleTimeString, PROPF_METHOD},
|
||||
|
|
|
@ -69,6 +69,9 @@ static const WCHAR ScriptEngineBuildVersionW[] =
|
|||
static const WCHAR CollectGarbageW[] = {'C','o','l','l','e','c','t','G','a','r','b','a','g','e',0};
|
||||
static const WCHAR MathW[] = {'M','a','t','h',0};
|
||||
static const WCHAR encodeURIW[] = {'e','n','c','o','d','e','U','R','I',0};
|
||||
static const WCHAR decodeURIW[] = {'d','e','c','o','d','e','U','R','I',0};
|
||||
static const WCHAR encodeURIComponentW[] = {'e','n','c','o','d','e','U','R','I','C','o','m','p','o','n','e','n','t',0};
|
||||
static const WCHAR decodeURIComponentW[] = {'d','e','c','o','d','e','U','R','I','C','o','m','p','o','n','e','n','t',0};
|
||||
|
||||
static const WCHAR undefinedW[] = {'u','n','d','e','f','i','n','e','d',0};
|
||||
|
||||
|
@ -834,6 +837,27 @@ static HRESULT JSGlobal_encodeURI(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT JSGlobal_decodeURI(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
|
||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT JSGlobal_encodeURIComponent(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
|
||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static HRESULT JSGlobal_decodeURIComponent(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISPPARAMS *dp,
|
||||
VARIANT *retv, jsexcept_t *ei, IServiceProvider *sp)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
static const builtin_prop_t JSGlobal_props[] = {
|
||||
{ActiveXObjectW, JSGlobal_ActiveXObject, PROPF_CONSTR},
|
||||
{ArrayW, JSGlobal_Array, PROPF_CONSTR},
|
||||
|
@ -862,7 +886,10 @@ static const builtin_prop_t JSGlobal_props[] = {
|
|||
{TypeErrorW, JSGlobal_TypeError, PROPF_CONSTR},
|
||||
{URIErrorW, JSGlobal_URIError, PROPF_CONSTR},
|
||||
{VBArrayW, JSGlobal_VBArray, PROPF_METHOD},
|
||||
{decodeURIW, JSGlobal_decodeURI, PROPF_METHOD},
|
||||
{decodeURIComponentW, JSGlobal_decodeURIComponent, PROPF_METHOD},
|
||||
{encodeURIW, JSGlobal_encodeURI, PROPF_METHOD},
|
||||
{encodeURIComponentW, JSGlobal_encodeURIComponent, PROPF_METHOD},
|
||||
{escapeW, JSGlobal_escape, PROPF_METHOD},
|
||||
{evalW, JSGlobal_eval, PROPF_METHOD|1},
|
||||
{isFiniteW, JSGlobal_isFinite, PROPF_METHOD},
|
||||
|
|
Loading…
Reference in New Issue