jscript: Added support for no new line between return and expression rule.

This commit is contained in:
Jacek Caban 2012-09-10 14:45:23 +02:00 committed by Alexandre Julliard
parent f1642ce1fc
commit dd0fe98646
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,7 @@ static const struct {
{instanceofW, kINSTANCEOF},
{newW, kNEW},
{nullW, kNULL},
{returnW, kRETURN},
{returnW, kRETURN, TRUE},
{switchW, kSWITCH},
{thisW, kTHIS},
{throwW, kTHROW},

View File

@ -1378,6 +1378,13 @@ while(true) {
tmp = false
}
function returnTest() {
return
true;
}
ok(returnTest() === undefined, "returnTest = " + returnTest());
/* Keep this test in the end of file */
undefined = 6;
ok(undefined === 6, "undefined = " + undefined);