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
20007e58
Commit
20007e58
authored
May 14, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use jsdisp_define_data_property for arguments object properties.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae8c45c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
function.c
dlls/jscript/function.c
+4
-2
es5.js
dlls/mshtml/tests/es5.js
+5
-0
No files found.
dlls/jscript/function.c
View file @
20007e58
...
@@ -180,9 +180,11 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
...
@@ -180,9 +180,11 @@ HRESULT setup_arguments_object(script_ctx_t *ctx, call_frame_t *frame)
args
->
argc
=
frame
->
argc
;
args
->
argc
=
frame
->
argc
;
args
->
frame
=
frame
;
args
->
frame
=
frame
;
hres
=
jsdisp_propput_dontenum
(
&
args
->
jsdisp
,
lengthW
,
jsval_number
(
args
->
argc
));
hres
=
jsdisp_define_data_property
(
&
args
->
jsdisp
,
lengthW
,
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
,
jsval_number
(
args
->
argc
));
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_propput_dontenum
(
&
args
->
jsdisp
,
caleeW
,
jsval_disp
(
to_disp
(
&
args
->
function
->
dispex
)));
hres
=
jsdisp_define_data_property
(
&
args
->
jsdisp
,
caleeW
,
PROPF_WRITABLE
|
PROPF_CONFIGURABLE
,
jsval_obj
(
&
args
->
function
->
dispex
));
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_propput
(
frame
->
base_scope
->
jsobj
,
argumentsW
,
PROPF_WRITABLE
,
jsval_obj
(
&
args
->
jsdisp
));
hres
=
jsdisp_propput
(
frame
->
base_scope
->
jsobj
,
argumentsW
,
PROPF_WRITABLE
,
jsval_obj
(
&
args
->
jsdisp
));
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
...
...
dlls/mshtml/tests/es5.js
View file @
20007e58
...
@@ -190,6 +190,11 @@ function test_getOwnPropertyDescriptor() {
...
@@ -190,6 +190,11 @@ function test_getOwnPropertyDescriptor() {
test_own_data_prop_desc
(
obj
,
"multiline"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"multiline"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"source"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"source"
,
false
,
false
,
false
);
(
function
()
{
test_own_data_prop_desc
(
arguments
,
"length"
,
true
,
false
,
true
);
test_own_data_prop_desc
(
arguments
,
"callee"
,
true
,
false
,
true
);
})();
next_test
();
next_test
();
}
}
...
...
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