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
1b14d7b4
Commit
1b14d7b4
authored
Jul 20, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jul 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Implement WeakMap.has().
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
6a22b304
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
set.c
dlls/jscript/set.c
+12
-2
No files found.
dlls/jscript/set.c
View file @
1b14d7b4
...
...
@@ -796,8 +796,18 @@ static HRESULT WeakMap_set(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigne
static
HRESULT
WeakMap_has
(
script_ctx_t
*
ctx
,
jsval_t
vthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
jsval_t
*
r
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
jsdisp_t
*
key
=
(
argc
>=
1
&&
is_object_instance
(
argv
[
0
]))
?
to_jsdisp
(
get_object
(
argv
[
0
]))
:
NULL
;
WeakMapInstance
*
weakmap
;
HRESULT
hres
;
hres
=
get_weakmap_this
(
ctx
,
vthis
,
&
weakmap
);
if
(
FAILED
(
hres
))
return
hres
;
TRACE
(
"%p (%p)
\n
"
,
weakmap
,
key
);
if
(
r
)
*
r
=
jsval_bool
(
!!
get_weakmap_entry
(
weakmap
,
key
));
return
S_OK
;
}
static
HRESULT
WeakMap_value
(
script_ctx_t
*
ctx
,
jsval_t
vthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
...
...
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