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
5e4a1681
Commit
5e4a1681
authored
Dec 12, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added support for SCRIPTTEXT_ISEXPRESSION.
parent
b568d888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
jscript.c
dlls/jscript/jscript.c
+25
-1
No files found.
dlls/jscript/jscript.c
View file @
5e4a1681
...
...
@@ -766,10 +766,34 @@ static HRESULT WINAPI JScriptParse_ParseScriptText(IActiveScriptParse *iface,
if
(
This
->
thread_id
!=
GetCurrentThreadId
()
||
This
->
ctx
->
state
==
SCRIPTSTATE_CLOSED
)
return
E_UNEXPECTED
;
hres
=
compile_script
(
This
->
ctx
,
pstrCode
,
NULL
,
pstrDelimiter
,
FALSE
,
This
->
is_encode
,
&
code
);
hres
=
compile_script
(
This
->
ctx
,
pstrCode
,
NULL
,
pstrDelimiter
,
(
dwFlags
&
SCRIPTTEXT_ISEXPRESSION
)
!=
0
,
This
->
is_encode
,
&
code
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
dwFlags
&
SCRIPTTEXT_ISEXPRESSION
)
{
exec_ctx_t
*
exec_ctx
;
hres
=
create_exec_ctx
(
This
->
ctx
,
NULL
,
This
->
ctx
->
global
,
NULL
,
TRUE
,
&
exec_ctx
);
if
(
SUCCEEDED
(
hres
))
{
jsval_t
r
;
IActiveScriptSite_OnEnterScript
(
This
->
site
);
clear_ei
(
This
->
ctx
);
hres
=
exec_source
(
exec_ctx
,
code
,
&
code
->
global_code
,
TRUE
,
&
r
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
jsval_to_variant
(
r
,
pvarResult
);
jsval_release
(
r
);
}
exec_release
(
exec_ctx
);
IActiveScriptSite_OnLeaveScript
(
This
->
site
);
}
return
hres
;
}
if
(
!
is_started
(
This
->
ctx
))
{
if
(
This
->
queue_tail
)
This
->
queue_tail
=
This
->
queue_tail
->
next
=
code
;
...
...
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