Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
84d8cddc
Commit
84d8cddc
authored
Sep 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Date constructor object implementation.
parent
a9c4d2b1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile.in
dlls/jscript/Makefile.in
+1
-0
date.c
dlls/jscript/date.c
+0
-0
global.c
dlls/jscript/global.c
+7
-2
jscript.h
dlls/jscript/jscript.h
+3
-0
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/Makefile.in
View file @
84d8cddc
...
...
@@ -10,6 +10,7 @@ RC_SRCS = rsrc.rc
C_SRCS
=
\
array.c
\
bool.c
\
date.c
\
dispex.c
\
engine.c
\
function
.c
\
...
...
dlls/jscript/date.c
0 → 100644
View file @
84d8cddc
This diff is collapsed.
Click to expand it.
dlls/jscript/global.c
View file @
84d8cddc
...
...
@@ -99,8 +99,9 @@ static HRESULT JSGlobal_Boolean(DispatchEx *dispex, LCID lcid, WORD flags, DISPP
static
HRESULT
JSGlobal_Date
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"
\n
"
);
return
constructor_call
(
dispex
->
ctx
->
date_constr
,
lcid
,
flags
,
dp
,
retv
,
ei
,
sp
);
}
static
HRESULT
JSGlobal_Function
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
@@ -418,6 +419,10 @@ static HRESULT init_constructors(script_ctx_t *ctx)
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_date_constr
(
ctx
,
&
ctx
->
date_constr
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
create_number_constr
(
ctx
,
&
ctx
->
number_constr
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/jscript.h
View file @
84d8cddc
...
...
@@ -67,6 +67,7 @@ typedef enum {
JSCLASS_NONE
,
JSCLASS_ARRAY
,
JSCLASS_BOOLEAN
,
JSCLASS_DATE
,
JSCLASS_FUNCTION
,
JSCLASS_GLOBAL
,
JSCLASS_MATH
,
...
...
@@ -170,6 +171,7 @@ struct _script_ctx_t {
DispatchEx
*
function_constr
;
DispatchEx
*
array_constr
;
DispatchEx
*
bool_constr
;
DispatchEx
*
date_constr
;
DispatchEx
*
number_constr
;
DispatchEx
*
object_constr
;
DispatchEx
*
regexp_constr
;
...
...
@@ -188,6 +190,7 @@ HRESULT init_function_constr(script_ctx_t*);
HRESULT
create_array_constr
(
script_ctx_t
*
,
DispatchEx
**
);
HRESULT
create_bool_constr
(
script_ctx_t
*
,
DispatchEx
**
);
HRESULT
create_date_constr
(
script_ctx_t
*
,
DispatchEx
**
);
HRESULT
create_number_constr
(
script_ctx_t
*
,
DispatchEx
**
);
HRESULT
create_object_constr
(
script_ctx_t
*
,
DispatchEx
**
);
HRESULT
create_regexp_constr
(
script_ctx_t
*
,
DispatchEx
**
);
...
...
dlls/jscript/tests/lang.js
View file @
84d8cddc
...
...
@@ -81,6 +81,8 @@ ok(Math !== undefined, "Math is undefined");
ok
(
Math
.
prototype
===
undefined
,
"Math.prototype is not undefined"
);
ok
(
Function
.
prototype
!==
undefined
,
"Function.prototype is undefined"
);
ok
(
Function
.
prototype
.
prototype
===
undefined
,
"Function.prototype is not undefined"
);
ok
(
Date
.
prototype
!==
undefined
,
"Date.prototype is undefined"
);
ok
(
Date
.
prototype
.
prototype
===
undefined
,
"Date.prototype is not undefined"
);
Function
.
prototype
.
test
=
true
;
ok
(
testFunc1
.
test
===
true
,
"testFunc1.test !== true"
);
...
...
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