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
e7bb8813
Commit
e7bb8813
authored
Jan 12, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't use break in finally block on pre-IE8 jscript.
parent
77e01019
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
24 deletions
+27
-24
lang.js
dlls/jscript/tests/lang.js
+27
-24
No files found.
dlls/jscript/tests/lang.js
View file @
e7bb8813
...
...
@@ -842,34 +842,37 @@ ok(!("nonexistent" in obj1), "nonexistent added to obj1 by for..in loop");
var
i
,
j
;
tmp
=
""
;
i
=
0
;
while
(
true
)
{
tmp
+=
"1"
;
for
(
i
=
1
;
i
<
3
;
i
++
)
{
switch
(
i
)
{
case
1
:
tmp
+=
"2"
;
continue
;
case
2
:
tmp
+=
"3"
;
try
{
throw
null
;
}
finally
{
tmp
+=
"4"
;
break
;
/* Previous versions have broken finally block implementation */
if
(
ScriptEngineMinorVersion
()
>=
8
)
{
tmp
=
""
;
i
=
0
;
while
(
true
)
{
tmp
+=
"1"
;
for
(
i
=
1
;
i
<
3
;
i
++
)
{
switch
(
i
)
{
case
1
:
tmp
+=
"2"
;
continue
;
case
2
:
tmp
+=
"3"
;
try
{
throw
null
;
}
finally
{
tmp
+=
"4"
;
break
;
}
default
:
ok
(
false
,
"unexpected state"
);
}
default
:
ok
(
false
,
"unexpected state"
);
tmp
+=
"5"
;
}
with
({
prop
:
"6"
})
{
tmp
+=
prop
;
break
;
}
tmp
+=
"5"
;
}
with
({
prop
:
"6"
})
{
tmp
+=
prop
;
break
;
}
ok
(
tmp
===
"123456"
,
"tmp = "
+
tmp
);
}
ok
(
tmp
===
"123456"
,
"tmp = "
+
tmp
);
tmp
=
""
;
i
=
0
;
...
...
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