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
a5e82819
Commit
a5e82819
authored
Sep 23, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Avoid calling JS builtin functions directly.
parent
0b4fa6e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
string.c
dlls/jscript/string.c
+11
-6
No files found.
dlls/jscript/string.c
View file @
a5e82819
...
...
@@ -85,14 +85,10 @@ static HRESULT String_length(script_ctx_t *ctx, DispatchEx *dispex, WORD flags,
return
S_OK
;
}
/* ECMA-262 3rd Edition 15.5.4.2 */
static
HRESULT
String_toString
(
script_ctx_t
*
ctx
,
DispatchEx
*
dispex
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
static
HRESULT
stringobj_to_string
(
DispatchEx
*
dispex
,
VARIANT
*
retv
)
{
StringInstance
*
string
;
TRACE
(
"
\n
"
);
if
(
!
is_class
(
dispex
,
JSCLASS_STRING
))
{
WARN
(
"this is not a string object
\n
"
);
return
E_FAIL
;
...
...
@@ -112,12 +108,21 @@ static HRESULT String_toString(script_ctx_t *ctx, DispatchEx *dispex, WORD flags
}
/* ECMA-262 3rd Edition 15.5.4.2 */
static
HRESULT
String_toString
(
script_ctx_t
*
ctx
,
DispatchEx
*
dispex
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
TRACE
(
"
\n
"
);
return
stringobj_to_string
(
dispex
,
retv
);
}
/* ECMA-262 3rd Edition 15.5.4.2 */
static
HRESULT
String_valueOf
(
script_ctx_t
*
ctx
,
DispatchEx
*
dispex
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
TRACE
(
"
\n
"
);
return
String_toString
(
ctx
,
dispex
,
flags
,
dp
,
retv
,
ei
,
sp
);
return
stringobj_to_string
(
dispex
,
retv
);
}
static
HRESULT
do_attributeless_tag_format
(
DispatchEx
*
dispex
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
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