Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
adc2a569
Commit
adc2a569
authored
Oct 07, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Date.toGMTString implementation.
parent
8a68f418
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
date.c
dlls/jscript/date.c
+12
-7
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/date.c
View file @
adc2a569
...
@@ -675,9 +675,8 @@ static HRESULT Date_valueOf(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISP
...
@@ -675,9 +675,8 @@ static HRESULT Date_valueOf(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISP
return
S_OK
;
return
S_OK
;
}
}
/* ECMA-262 3rd Edition 15.9.5.42 */
static
inline
HRESULT
create_utc_string
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
static
HRESULT
Date_toUTCString
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
)
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
{
{
static
const
WCHAR
NaNW
[]
=
{
'N'
,
'a'
,
'N'
,
0
};
static
const
WCHAR
NaNW
[]
=
{
'N'
,
'a'
,
'N'
,
0
};
static
const
WCHAR
formatADW
[]
=
{
'%'
,
's'
,
','
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
static
const
WCHAR
formatADW
[]
=
{
'%'
,
's'
,
','
,
' '
,
'%'
,
'd'
,
' '
,
'%'
,
's'
,
' '
,
'%'
,
'd'
,
' '
,
...
@@ -702,8 +701,6 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
...
@@ -702,8 +701,6 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
int
len
,
size
,
year
,
day
;
int
len
,
size
,
year
,
day
;
DWORD
lcid_en
,
week_id
,
month_id
;
DWORD
lcid_en
,
week_id
,
month_id
;
TRACE
(
"
\n
"
);
if
(
!
(
date
=
date_this
(
jsthis
)))
if
(
!
(
date
=
date_this
(
jsthis
)))
return
throw_type_error
(
ctx
,
ei
,
IDS_NOT_DATE
,
NULL
);
return
throw_type_error
(
ctx
,
ei
,
IDS_NOT_DATE
,
NULL
);
...
@@ -781,11 +778,19 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
...
@@ -781,11 +778,19 @@ static HRESULT Date_toUTCString(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags,
return
S_OK
;
return
S_OK
;
}
}
/* ECMA-262 3rd Edition 15.9.5.42 */
static
HRESULT
Date_toUTCString
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
{
TRACE
(
"
\n
"
);
return
create_utc_string
(
ctx
,
jsthis
,
retv
,
ei
);
}
static
HRESULT
Date_toGMTString
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
static
HRESULT
Date_toGMTString
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
{
{
FIXM
E
(
"
\n
"
);
TRAC
E
(
"
\n
"
);
return
E_NOTIMPL
;
return
create_utc_string
(
ctx
,
jsthis
,
retv
,
ei
)
;
}
}
/* ECMA-262 3rd Edition 15.9.5.3 */
/* ECMA-262 3rd Edition 15.9.5.3 */
...
...
dlls/jscript/tests/api.js
View file @
adc2a569
...
@@ -1874,6 +1874,7 @@ testFunctions(Date.prototype, [
...
@@ -1874,6 +1874,7 @@ testFunctions(Date.prototype, [
[
"toString"
,
0
],
[
"toString"
,
0
],
[
"toTimeString"
,
0
],
[
"toTimeString"
,
0
],
[
"toUTCString"
,
0
],
[
"toUTCString"
,
0
],
[
"toGMTString"
,
0
],
[
"valueOf"
,
0
]
[
"valueOf"
,
0
]
]);
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment