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
56c74e38
Commit
56c74e38
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.delete().
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
bc1b8b27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
set.c
dlls/jscript/set.c
+15
-2
No files found.
dlls/jscript/set.c
View file @
56c74e38
...
...
@@ -676,8 +676,21 @@ static HRESULT WeakMap_clear(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsig
static
HRESULT
WeakMap_delete
(
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
)))
remove_weakmap_entry
(
entry
);
if
(
r
)
*
r
=
jsval_bool
(
!!
entry
);
return
S_OK
;
}
static
HRESULT
WeakMap_get
(
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