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
8f89e142
Commit
8f89e142
authored
Oct 09, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed visit_function_expression error handling.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f449146a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
compile.c
dlls/jscript/compile.c
+4
-3
No files found.
dlls/jscript/compile.c
View file @
8f89e142
...
...
@@ -1874,12 +1874,13 @@ static BOOL alloc_variable(compiler_ctx_t *ctx, const WCHAR *name)
return
alloc_local
(
ctx
,
ident
,
ctx
->
func
->
var_cnt
++
);
}
static
BOOL
visit_function_expression
(
compiler_ctx_t
*
ctx
,
function_expression_t
*
expr
)
static
HRESULT
visit_function_expression
(
compiler_ctx_t
*
ctx
,
function_expression_t
*
expr
)
{
expr
->
func_id
=
ctx
->
func
->
func_cnt
++
;
ctx
->
func_tail
=
ctx
->
func_tail
?
(
ctx
->
func_tail
->
next
=
expr
)
:
(
ctx
->
func_head
=
expr
);
return
!
expr
->
identifier
||
expr
->
event_target
||
alloc_variable
(
ctx
,
expr
->
identifier
);
return
!
expr
->
identifier
||
expr
->
event_target
||
alloc_variable
(
ctx
,
expr
->
identifier
)
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
visit_expression
(
compiler_ctx_t
*
ctx
,
expression_t
*
expr
)
...
...
@@ -1992,7 +1993,7 @@ static HRESULT visit_expression(compiler_ctx_t *ctx, expression_t *expr)
break
;
}
case
EXPR_FUNC
:
visit_function_expression
(
ctx
,
(
function_expression_t
*
)
expr
);
hres
=
visit_function_expression
(
ctx
,
(
function_expression_t
*
)
expr
);
break
;
case
EXPR_MEMBER
:
hres
=
visit_expression
(
ctx
,
((
member_expression_t
*
)
expr
)
->
expression
);
...
...
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