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
fcd98175
Commit
fcd98175
authored
Oct 01, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Implicitly turn CC on for @if instruction.
parent
8b363887
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
lex.c
dlls/jscript/lex.c
+3
-0
run.c
dlls/jscript/tests/run.c
+6
-0
No files found.
dlls/jscript/lex.c
View file @
fcd98175
...
...
@@ -1051,6 +1051,9 @@ static int cc_token(parser_ctx_t *ctx, void *lval)
}
if
(
!
check_keyword
(
ctx
,
ifW
,
NULL
))
{
if
(
!
init_cc
(
ctx
))
return
-
1
;
if
(
!
skip_spaces
(
ctx
)
||
*
ctx
->
ptr
!=
'('
)
return
lex_error
(
ctx
,
JS_E_MISSING_LBRACKET
);
...
...
dlls/jscript/tests/run.c
View file @
fcd98175
...
...
@@ -2185,6 +2185,12 @@ static BOOL run_tests(void)
parse_script_a
(
"@set @t=2
\n
ok(@t === 2, '@t = ' + @t);"
);
SET_EXPECT
(
global_success_d
);
SET_EXPECT
(
global_success_i
);
parse_script_a
(
"@if(true)
\n
if(@_jscript) reportSuccess();
\n
@end"
);
CHECK_CALLED
(
global_success_d
);
CHECK_CALLED
(
global_success_i
);
run_from_res
(
"lang.js"
);
run_from_res
(
"api.js"
);
run_from_res
(
"regexp.js"
);
...
...
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