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
6a22b304
Commit
6a22b304
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.clear().
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
56c74e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
set.c
dlls/jscript/set.c
+14
-2
No files found.
dlls/jscript/set.c
View file @
6a22b304
...
...
@@ -669,8 +669,20 @@ void remove_weakmap_entry(struct weakmap_entry *entry)
static
HRESULT
WeakMap_clear
(
script_ctx_t
*
ctx
,
jsval_t
vthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
jsval_t
*
r
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
WeakMapInstance
*
weakmap
;
HRESULT
hres
;
hres
=
get_weakmap_this
(
ctx
,
vthis
,
&
weakmap
);
if
(
FAILED
(
hres
))
return
hres
;
TRACE
(
"%p
\n
"
,
weakmap
);
while
(
weakmap
->
map
.
root
)
remove_weakmap_entry
(
RB_ENTRY_VALUE
(
weakmap
->
map
.
root
,
struct
weakmap_entry
,
entry
));
if
(
r
)
*
r
=
jsval_undefined
();
return
S_OK
;
}
static
HRESULT
WeakMap_delete
(
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