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
0f36ef09
Commit
0f36ef09
authored
Dec 28, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Ensure that the whole script is parsed.
parent
5e469f4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
lex.c
dlls/jscript/lex.c
+1
-1
parser.y
dlls/jscript/parser.y
+2
-1
api.js
dlls/jscript/tests/api.js
+1
-0
No files found.
dlls/jscript/lex.c
View file @
0f36ef09
...
...
@@ -526,7 +526,7 @@ int parser_lex(void *lval, parser_ctx_t *ctx)
do
{
skip_spaces
(
ctx
);
if
(
ctx
->
ptr
==
ctx
->
end
)
return
0
;
return
tEOF
;
}
while
(
skip_comment
(
ctx
)
||
skip_html_comment
(
ctx
));
if
(
isalphaW
(
*
ctx
->
ptr
))
{
...
...
dlls/jscript/parser.y
View file @
0f36ef09
...
...
@@ -180,6 +180,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t*,state
%token <ival> tAssignOper tEqOper tShiftOper tRelOper
%token <literal> tNumericLiteral
%token <wstr> tStringLiteral
%token tEOF
%type <source_elements> SourceElements
%type <source_elements> FunctionBody
...
...
@@ -253,7 +254,7 @@ static source_elements_t *source_elements_add_statement(source_elements_t*,state
/* ECMA-262 3rd Edition 14 */
Program
: SourceElements HtmlComment
: SourceElements HtmlComment
tEOF
{ program_parsed(ctx, $1); }
HtmlComment
...
...
dlls/jscript/tests/api.js
View file @
0f36ef09
...
...
@@ -1985,6 +1985,7 @@ testSyntaxError("for(i=0;i<10", "E_SEMICOLON");
testSyntaxError
(
"while("
,
"E_SYNTAX_ERROR"
);
testSyntaxError
(
"if("
,
"E_SYNTAX_ERROR"
);
testSyntaxError
(
"'unterminated"
,
"E_UNTERMINATED_STR"
);
testSyntaxError
(
"*"
,
"E_SYNTAX_ERROR"
);
// ReferenceError tests
testException
(
function
()
{
test
=
function
()
{}},
"E_ILLEGAL_ASSIGN"
);
...
...
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