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
668f417b
Commit
668f417b
authored
Nov 06, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Date.setYear stub implementation.
parent
afc5bf72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
date.c
dlls/jscript/date.c
+10
-0
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/date.c
View file @
668f417b
...
@@ -91,6 +91,7 @@ static const WCHAR setUTCMonthW[] = {'s','e','t','U','T','C','M','o','n','t','h'
...
@@ -91,6 +91,7 @@ static const WCHAR setUTCMonthW[] = {'s','e','t','U','T','C','M','o','n','t','h'
static
const
WCHAR
setFullYearW
[]
=
{
's'
,
'e'
,
't'
,
'F'
,
'u'
,
'l'
,
'l'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
setFullYearW
[]
=
{
's'
,
'e'
,
't'
,
'F'
,
'u'
,
'l'
,
'l'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
setUTCFullYearW
[]
=
{
's'
,
'e'
,
't'
,
'U'
,
'T'
,
'C'
,
'F'
,
'u'
,
'l'
,
'l'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
setUTCFullYearW
[]
=
{
's'
,
'e'
,
't'
,
'U'
,
'T'
,
'C'
,
'F'
,
'u'
,
'l'
,
'l'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
getYearW
[]
=
{
'g'
,
'e'
,
't'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
getYearW
[]
=
{
'g'
,
'e'
,
't'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
setYearW
[]
=
{
's'
,
'e'
,
't'
,
'Y'
,
'e'
,
'a'
,
'r'
,
0
};
static
const
WCHAR
UTCW
[]
=
{
'U'
,
'T'
,
'C'
,
0
};
static
const
WCHAR
UTCW
[]
=
{
'U'
,
'T'
,
'C'
,
0
};
static
const
WCHAR
parseW
[]
=
{
'p'
,
'a'
,
'r'
,
's'
,
'e'
,
0
};
static
const
WCHAR
parseW
[]
=
{
'p'
,
'a'
,
'r'
,
's'
,
'e'
,
0
};
...
@@ -2023,6 +2024,14 @@ static HRESULT Date_getYear(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISP
...
@@ -2023,6 +2024,14 @@ static HRESULT Date_getYear(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DISP
return
S_OK
;
return
S_OK
;
}
}
/* ECMA-262 3rd Edition B2.5 */
static
HRESULT
Date_setYear
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
caller
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Date_value
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
DISPPARAMS
*
dp
,
static
HRESULT
Date_value
(
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
)
{
{
...
@@ -2074,6 +2083,7 @@ static const builtin_prop_t Date_props[] = {
...
@@ -2074,6 +2083,7 @@ static const builtin_prop_t Date_props[] = {
{
setUTCMinutesW
,
Date_setUTCMinutes
,
PROPF_METHOD
|
3
},
{
setUTCMinutesW
,
Date_setUTCMinutes
,
PROPF_METHOD
|
3
},
{
setUTCMonthW
,
Date_setUTCMonth
,
PROPF_METHOD
|
2
},
{
setUTCMonthW
,
Date_setUTCMonth
,
PROPF_METHOD
|
2
},
{
setUTCSecondsW
,
Date_setUTCSeconds
,
PROPF_METHOD
|
2
},
{
setUTCSecondsW
,
Date_setUTCSeconds
,
PROPF_METHOD
|
2
},
{
setYearW
,
Date_setYear
,
PROPF_METHOD
|
1
},
{
toDateStringW
,
Date_toDateString
,
PROPF_METHOD
},
{
toDateStringW
,
Date_toDateString
,
PROPF_METHOD
},
{
toGMTStringW
,
Date_toGMTString
,
PROPF_METHOD
},
{
toGMTStringW
,
Date_toGMTString
,
PROPF_METHOD
},
{
toLocaleDateStringW
,
Date_toLocaleDateString
,
PROPF_METHOD
},
{
toLocaleDateStringW
,
Date_toLocaleDateString
,
PROPF_METHOD
},
...
...
dlls/jscript/tests/api.js
View file @
668f417b
...
@@ -2136,6 +2136,7 @@ testFunctions(Date.prototype, [
...
@@ -2136,6 +2136,7 @@ testFunctions(Date.prototype, [
[
"setUTCMinutes"
,
3
],
[
"setUTCMinutes"
,
3
],
[
"setUTCMonth"
,
2
],
[
"setUTCMonth"
,
2
],
[
"setUTCSeconds"
,
2
],
[
"setUTCSeconds"
,
2
],
[
"setYear"
,
1
],
[
"toDateString"
,
0
],
[
"toDateString"
,
0
],
[
"toLocaleDateString"
,
0
],
[
"toLocaleDateString"
,
0
],
[
"toLocaleString"
,
0
],
[
"toLocaleString"
,
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