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
898b705e
Commit
898b705e
authored
Jun 22, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Jun 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't expose Function.prototype.arguments in non-html mode.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
a4c2f6ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
function.c
dlls/jscript/function.c
+1
-1
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/function.c
View file @
898b705e
...
...
@@ -582,7 +582,7 @@ static HRESULT Function_gc_traverse(struct gc_ctx *gc_ctx, enum gc_traverse_op o
static
const
builtin_prop_t
Function_props
[]
=
{
{
L"apply"
,
Function_apply
,
PROPF_METHOD
|
2
},
{
L"arguments"
,
NULL
,
0
,
Function_get_arguments
},
{
L"arguments"
,
NULL
,
PROPF_HTML
,
Function_get_arguments
},
{
L"bind"
,
Function_bind
,
PROPF_METHOD
|
PROPF_ES5
|
1
},
{
L"call"
,
Function_call
,
PROPF_METHOD
|
1
},
{
L"caller"
,
NULL
,
PROPF_HTML
,
Function_get_caller
},
...
...
dlls/jscript/tests/api.js
View file @
898b705e
...
...
@@ -287,6 +287,7 @@ ok(Object.prototype.hasOwnProperty('toString'), "Object.prototype.hasOwnProperty
ok
(
Object
.
prototype
.
hasOwnProperty
(
'isPrototypeOf'
),
"Object.prototype.hasOwnProperty('isPrototypeOf') is false"
);
ok
(
Function
.
prototype
.
hasOwnProperty
(
'call'
),
"Function.prototype.hasOwnProperty('call') is false"
);
ok
(
!
Function
.
prototype
.
hasOwnProperty
(
'caller'
),
"Function.prototype.hasOwnProperty('caller') is true"
);
ok
(
!
Function
.
prototype
.
hasOwnProperty
(
'arguments'
),
"Function.prototype.hasOwnProperty('arguments') is true"
);
Object
();
new
Object
();
...
...
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