Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7f01473a
Commit
7f01473a
authored
May 10, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
May 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Make Function instance object properties non-writable.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a9f8c2c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
function.c
dlls/jscript/function.c
+4
-10
es5.js
dlls/mshtml/tests/es5.js
+4
-0
No files found.
dlls/jscript/function.c
View file @
7f01473a
...
...
@@ -358,12 +358,6 @@ static HRESULT Function_get_length(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
return
S_OK
;
}
static
HRESULT
Function_set_length
(
script_ctx_t
*
ctx
,
jsdisp_t
*
jsthis
,
jsval_t
value
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
}
static
HRESULT
Function_toString
(
script_ctx_t
*
ctx
,
vdisp_t
*
jsthis
,
WORD
flags
,
unsigned
argc
,
jsval_t
*
argv
,
jsval_t
*
r
)
{
...
...
@@ -588,9 +582,9 @@ static void Function_destructor(jsdisp_t *dispex)
static
const
builtin_prop_t
Function_props
[]
=
{
{
applyW
,
Function_apply
,
PROPF_METHOD
|
2
},
{
argumentsW
,
NULL
,
0
,
Function_get_arguments
,
builtin_set_const
},
{
argumentsW
,
NULL
,
0
,
Function_get_arguments
},
{
callW
,
Function_call
,
PROPF_METHOD
|
1
},
{
lengthW
,
NULL
,
0
,
Function_get_length
,
Function_set_length
},
{
lengthW
,
NULL
,
0
,
Function_get_length
},
{
toStringW
,
Function_toString
,
PROPF_METHOD
}
};
...
...
@@ -604,8 +598,8 @@ static const builtin_info_t Function_info = {
};
static
const
builtin_prop_t
FunctionInst_props
[]
=
{
{
argumentsW
,
NULL
,
0
,
Function_get_arguments
,
builtin_set_const
},
{
lengthW
,
NULL
,
0
,
Function_get_length
,
Function_set_length
}
{
argumentsW
,
NULL
,
0
,
Function_get_arguments
},
{
lengthW
,
NULL
,
0
,
Function_get_length
}
};
static
const
builtin_info_t
FunctionInst_info
=
{
...
...
dlls/mshtml/tests/es5.js
View file @
7f01473a
...
...
@@ -174,6 +174,10 @@ function test_getOwnPropertyDescriptor() {
obj
=
new
Array
();
test_own_data_prop_desc
(
obj
,
"length"
,
true
,
false
,
false
);
obj
=
new
Function
();
test_own_data_prop_desc
(
obj
,
"length"
,
false
,
false
,
false
);
test_own_data_prop_desc
(
obj
,
"arguments"
,
false
,
false
,
false
);
obj
=
/test/
;
test_own_data_prop_desc
(
obj
,
"lastIndex"
,
true
,
false
,
false
);
...
...
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