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
b8f17fa4
Commit
b8f17fa4
authored
Apr 27, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Add Map.size property implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae41d600
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
set.c
dlls/jscript/set.c
+16
-1
No files found.
dlls/jscript/set.c
View file @
b8f17fa4
...
...
@@ -335,6 +335,16 @@ static HRESULT Map_has(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsigned
return
S_OK
;
}
static
HRESULT
Map_get_size
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
*
r
)
{
MapInstance
*
map
=
(
MapInstance
*
)
jsthis
;
TRACE
(
"%p
\n
"
,
map
);
*
r
=
jsval_number
(
map
->
size
);
return
S_OK
;
}
static
HRESULT
Map_value
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
jsval_t
*
r
)
{
...
...
@@ -364,6 +374,10 @@ static const builtin_prop_t Map_prototype_props[] = {
{
L"set"
,
Map_set
,
PROPF_METHOD
|
2
},
};
static
const
builtin_prop_t
Map_props
[]
=
{
{
L"size"
,
NULL
,
0
,
Map_get_size
,
builtin_set_const
},
};
static
const
builtin_info_t
Map_prototype_info
=
{
JSCLASS_OBJECT
,
{
NULL
,
Map_value
,
0
},
...
...
@@ -376,7 +390,8 @@ static const builtin_info_t Map_prototype_info = {
static
const
builtin_info_t
Map_info
=
{
JSCLASS_MAP
,
{
NULL
,
Map_value
,
0
},
0
,
NULL
,
ARRAY_SIZE
(
Map_props
),
Map_props
,
Map_destructor
,
NULL
};
...
...
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