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
609e9de6
Commit
609e9de6
authored
Apr 21, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Introduce INVALID_LOCAL_REF.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ba144b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
compile.c
dlls/jscript/compile.c
+1
-0
engine.c
dlls/jscript/engine.c
+1
-1
engine.h
dlls/jscript/engine.h
+2
-0
No files found.
dlls/jscript/compile.c
View file @
609e9de6
...
...
@@ -2314,6 +2314,7 @@ static HRESULT compile_function(compiler_ctx_t *ctx, source_elements_t *source,
TRACE
(
"
\n
"
);
func
->
bytecode
=
ctx
->
code
;
func
->
local_ref
=
INVALID_LOCAL_REF
;
ctx
->
func_head
=
ctx
->
func_tail
=
NULL
;
ctx
->
from_eval
=
from_eval
;
ctx
->
func
=
func
;
...
...
dlls/jscript/engine.c
View file @
609e9de6
...
...
@@ -3039,7 +3039,7 @@ static HRESULT setup_scope(script_ctx_t *ctx, call_frame_t *frame, scope_chain_t
}
for
(
i
=
0
;
i
<
frame
->
function
->
func_cnt
;
i
++
)
{
if
(
frame
->
function
->
funcs
[
i
].
name
&&
!
frame
->
function
->
funcs
[
i
].
event_target
)
{
if
(
frame
->
function
->
funcs
[
i
].
local_ref
!=
INVALID_LOCAL_REF
)
{
jsdisp_t
*
func_obj
;
unsigned
off
;
...
...
dlls/jscript/engine.h
View file @
609e9de6
...
...
@@ -145,6 +145,8 @@ typedef struct {
int
ref
;
}
local_ref_t
;
#define INVALID_LOCAL_REF 0x7fffffff
typedef
struct
_function_code_t
{
BSTR
name
;
int
local_ref
;
...
...
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