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
bc1b8b27
Commit
bc1b8b27
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.get().
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
b4373a9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
set.c
dlls/jscript/set.c
+17
-2
No files found.
dlls/jscript/set.c
View file @
bc1b8b27
...
...
@@ -683,8 +683,23 @@ static HRESULT WeakMap_delete(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsi
static
HRESULT
WeakMap_get
(
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
;
struct
weakmap_entry
*
entry
;
WeakMapInstance
*
weakmap
;
HRESULT
hres
;
hres
=
get_weakmap_this
(
ctx
,
vthis
,
&
weakmap
);
if
(
FAILED
(
hres
))
return
hres
;
TRACE
(
"%p (%p)
\n
"
,
weakmap
,
key
);
if
(
!
(
entry
=
get_weakmap_entry
(
weakmap
,
key
)))
{
if
(
r
)
*
r
=
jsval_undefined
();
return
S_OK
;
}
return
r
?
jsval_copy
(
entry
->
value
,
r
)
:
S_OK
;
}
static
HRESULT
WeakMap_set
(
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