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
88903fa6
Commit
88903fa6
authored
Jun 21, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jun 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Get rid of the function instance in arguments obj.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
59372aa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
function.c
dlls/jscript/function.c
+2
-6
No files found.
dlls/jscript/function.c
View file @
88903fa6
...
@@ -65,7 +65,6 @@ typedef struct {
...
@@ -65,7 +65,6 @@ typedef struct {
typedef
struct
{
typedef
struct
{
jsdisp_t
jsdisp
;
jsdisp_t
jsdisp
;
InterpretedFunction
*
function
;
jsval_t
*
buf
;
jsval_t
*
buf
;
call_frame_t
*
frame
;
call_frame_t
*
frame
;
unsigned
argc
;
unsigned
argc
;
...
@@ -114,8 +113,6 @@ static void Arguments_destructor(jsdisp_t *jsdisp)
...
@@ -114,8 +113,6 @@ static void Arguments_destructor(jsdisp_t *jsdisp)
free
(
arguments
->
buf
);
free
(
arguments
->
buf
);
}
}
if
(
arguments
->
function
)
jsdisp_release
(
&
arguments
->
function
->
function
.
dispex
);
free
(
arguments
);
free
(
arguments
);
}
}
...
@@ -175,7 +172,7 @@ static HRESULT Arguments_gc_traverse(struct gc_ctx *gc_ctx, enum gc_traverse_op
...
@@ -175,7 +172,7 @@ static HRESULT Arguments_gc_traverse(struct gc_ctx *gc_ctx, enum gc_traverse_op
}
}
}
}
return
gc_process_linked_obj
(
gc_ctx
,
op
,
jsdisp
,
&
arguments
->
function
->
function
.
dispex
,
(
void
**
)
&
arguments
->
function
)
;
return
S_OK
;
}
}
static
const
builtin_info_t
Arguments_info
=
{
static
const
builtin_info_t
Arguments_info
=
{
...
@@ -205,7 +202,6 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
...
@@ -205,7 +202,6 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
return
hres
;
return
hres
;
}
}
args
->
function
=
(
InterpretedFunction
*
)
function_from_jsdisp
(
jsdisp_addref
(
frame
->
function_instance
));
args
->
argc
=
frame
->
argc
;
args
->
argc
=
frame
->
argc
;
args
->
frame
=
frame
;
args
->
frame
=
frame
;
...
@@ -213,7 +209,7 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
...
@@ -213,7 +209,7 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
jsval_number
(
args
->
argc
));
jsval_number
(
args
->
argc
));
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_define_data_property
(
&
args
->
jsdisp
,
L"callee"
,
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
,
hres
=
jsdisp_define_data_property
(
&
args
->
jsdisp
,
L"callee"
,
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
,
jsval_obj
(
&
args
->
function
->
function
.
dispex
));
jsval_obj
(
frame
->
function_instance
));
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_propput
(
as_jsdisp
(
frame
->
base_scope
->
obj
),
L"arguments"
,
PROPF_WRITABLE
,
TRUE
,
jsval_obj
(
&
args
->
jsdisp
));
hres
=
jsdisp_propput
(
as_jsdisp
(
frame
->
base_scope
->
obj
),
L"arguments"
,
PROPF_WRITABLE
,
TRUE
,
jsval_obj
(
&
args
->
jsdisp
));
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
...
...
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