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
ea34e014
Commit
ea34e014
authored
Nov 05, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use jsdisp_propput_dontenum where appropriate.
parent
57f7a6fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
error.c
dlls/jscript/error.c
+3
-3
function.c
dlls/jscript/function.c
+9
-4
global.c
dlls/jscript/global.c
+4
-4
No files found.
dlls/jscript/error.c
View file @
ea34e014
...
...
@@ -190,7 +190,7 @@ static HRESULT create_error(script_ctx_t *ctx, jsdisp_t *constr,
if
(
FAILED
(
hres
))
return
hres
;
hres
=
jsdisp_propput_
name
(
err
,
numberW
,
jsval_number
((
INT
)
number
));
hres
=
jsdisp_propput_
dontenum
(
err
,
numberW
,
jsval_number
((
INT
)
number
));
if
(
FAILED
(
hres
))
{
jsdisp_release
(
err
);
return
hres
;
...
...
@@ -201,7 +201,7 @@ static HRESULT create_error(script_ctx_t *ctx, jsdisp_t *constr,
if
(
str
)
{
hres
=
jsdisp_propput_name
(
err
,
messageW
,
jsval_string
(
str
));
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_propput_
name
(
err
,
descriptionW
,
jsval_string
(
str
));
hres
=
jsdisp_propput_
dontenum
(
err
,
descriptionW
,
jsval_string
(
str
));
jsstr_release
(
str
);
}
else
{
hres
=
E_OUTOFMEMORY
;
...
...
@@ -357,7 +357,7 @@ HRESULT init_error_constr(script_ctx_t *ctx, jsdisp_t *object_prototype)
return
E_OUTOFMEMORY
;
}
hres
=
jsdisp_propput_
name
(
err
,
nameW
,
jsval_string
(
str
));
hres
=
jsdisp_propput_
dontenum
(
err
,
nameW
,
jsval_string
(
str
));
jsstr_release
(
str
);
if
(
SUCCEEDED
(
hres
))
hres
=
create_builtin_constructor
(
ctx
,
constr_val
[
i
],
names
[
i
],
NULL
,
...
...
dlls/jscript/function.c
View file @
ea34e014
...
...
@@ -104,16 +104,21 @@ static HRESULT create_arguments(script_ctx_t *ctx, IDispatch *calee, unsigned ar
}
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
hres
=
jsdisp_propput_idx
(
args
,
i
,
argv
[
i
]);
WCHAR
buf
[
12
];
static
const
WCHAR
formatW
[]
=
{
'%'
,
'd'
,
0
};
sprintfW
(
buf
,
formatW
,
i
);
hres
=
jsdisp_propput_dontenum
(
args
,
buf
,
argv
[
i
]);
if
(
FAILED
(
hres
))
break
;
}
if
(
SUCCEEDED
(
hres
))
{
hres
=
jsdisp_propput_
name
(
args
,
lengthW
,
jsval_number
(
argc
));
hres
=
jsdisp_propput_
dontenum
(
args
,
lengthW
,
jsval_number
(
argc
));
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_propput_
name
(
args
,
caleeW
,
jsval_disp
(
calee
));
hres
=
jsdisp_propput_
dontenum
(
args
,
caleeW
,
jsval_disp
(
calee
));
}
if
(
FAILED
(
hres
))
{
...
...
@@ -592,7 +597,7 @@ static HRESULT create_function(script_ctx_t *ctx, const builtin_info_t *builtin_
static
inline
HRESULT
set_prototype
(
script_ctx_t
*
ctx
,
jsdisp_t
*
dispex
,
jsdisp_t
*
prototype
)
{
return
jsdisp_propput_
name
(
dispex
,
prototypeW
,
jsval_obj
(
prototype
));
return
jsdisp_propput_
dontenum
(
dispex
,
prototypeW
,
jsval_obj
(
prototype
));
}
HRESULT
create_builtin_function
(
script_ctx_t
*
ctx
,
builtin_invoke_t
value_proc
,
const
WCHAR
*
name
,
...
...
dlls/jscript/global.c
View file @
ea34e014
...
...
@@ -1245,19 +1245,19 @@ HRESULT init_global(script_ctx_t *ctx)
if
(
FAILED
(
hres
))
return
hres
;
hres
=
jsdisp_propput_
name
(
ctx
->
global
,
MathW
,
jsval_obj
(
math
));
hres
=
jsdisp_propput_
dontenum
(
ctx
->
global
,
MathW
,
jsval_obj
(
math
));
jsdisp_release
(
math
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
jsdisp_propput_
name
(
ctx
->
global
,
undefinedW
,
jsval_undefined
());
hres
=
jsdisp_propput_
dontenum
(
ctx
->
global
,
undefinedW
,
jsval_undefined
());
if
(
FAILED
(
hres
))
return
hres
;
hres
=
jsdisp_propput_
name
(
ctx
->
global
,
NaNW
,
jsval_number
(
NAN
));
hres
=
jsdisp_propput_
dontenum
(
ctx
->
global
,
NaNW
,
jsval_number
(
NAN
));
if
(
FAILED
(
hres
))
return
hres
;
hres
=
jsdisp_propput_
name
(
ctx
->
global
,
InfinityW
,
jsval_number
(
INFINITY
));
hres
=
jsdisp_propput_
dontenum
(
ctx
->
global
,
InfinityW
,
jsval_number
(
INFINITY
));
return
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