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
32a3a167
Commit
32a3a167
authored
Sep 17, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added break statement implementation.
parent
2b163877
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
engine.c
dlls/jscript/engine.c
+13
-2
lang.js
dlls/jscript/tests/lang.js
+16
-0
No files found.
dlls/jscript/engine.c
View file @
32a3a167
...
...
@@ -671,10 +671,21 @@ HRESULT continue_statement_eval(exec_ctx_t *ctx, statement_t *stat, return_type_
return
E_NOTIMPL
;
}
HRESULT
break_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
/* ECMA-262 3rd Edition 12.8 */
HRESULT
break_statement_eval
(
exec_ctx_t
*
ctx
,
statement_t
*
_stat
,
return_type_t
*
rt
,
VARIANT
*
ret
)
{
FIXME
(
"
\n
"
);
branch_statement_t
*
stat
=
(
branch_statement_t
*
)
_stat
;
TRACE
(
"
\n
"
);
if
(
stat
->
identifier
)
{
FIXME
(
"indentifier not implemented
\n
"
);
return
E_NOTIMPL
;
}
rt
->
type
=
RT_BREAK
;
V_VT
(
ret
)
=
VT_EMPTY
;
return
S_OK
;
}
/* ECMA-262 3rd Edition 12.9 */
...
...
dlls/jscript/tests/lang.js
View file @
32a3a167
...
...
@@ -446,4 +446,20 @@ case false:
}
ok
(
state
===
"false"
,
"state = "
+
state
);
state
=
""
;
switch
(
1
)
{
case
"1"
:
ok
(
false
,
"unexpected case
\"
1
\"
"
);
case
1
:
ok
(
state
===
""
,
"case 1: state = "
+
state
);
state
=
"1"
;
default
:
ok
(
state
===
"1"
,
"default: state = "
+
state
);
state
=
"default"
;
break
;
case
false
:
ok
(
false
,
"unexpected case false"
);
}
ok
(
state
===
"default"
,
"state = "
+
state
);
reportSuccess
();
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