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
383de2d7
Commit
383de2d7
authored
Oct 02, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed conflict in Block statement that caused problems with empty blocks.
parent
47b842bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
parser.y
dlls/jscript/parser.y
+2
-2
lang.js
dlls/jscript/tests/lang.js
+4
-0
No files found.
dlls/jscript/parser.y
View file @
383de2d7
...
...
@@ -325,8 +325,8 @@ StatementList_opt
/* ECMA-262 3rd Edition 12.1 */
Block
: '{' StatementList
_opt '}'
{ $$ = new_block_statement(ctx, $2);
}
: '{' StatementList
'}' { $$ = new_block_statement(ctx, $2); }
| '{' '}' { $$ = new_block_statement(ctx, NULL)
}
/* ECMA-262 3rd Edition 12.2 */
VariableStatement
...
...
dlls/jscript/tests/lang.js
View file @
383de2d7
...
...
@@ -175,6 +175,10 @@ if(true)
tmp
=
1
;
ok
(
tmp
===
1
,
"tmp !== 1, if(true) not evaluated?"
);
if
(
false
)
{
}
else
{
}
var
obj3
=
{
prop1
:
1
,
prop2
:
typeof
(
false
)
};
ok
(
obj3
.
prop1
===
1
,
"obj3.prop1 is not 1"
);
ok
(
obj3
.
prop2
===
"boolean"
,
"obj3.prop2 is not
\"
boolean
\"
"
);
...
...
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