mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
jscript: Added support for no new line between return and expression rule.
This commit is contained in:
parent
f1642ce1fc
commit
dd0fe98646
2 changed files with 8 additions and 1 deletions
|
@ -87,7 +87,7 @@ static const struct {
|
|||
{instanceofW, kINSTANCEOF},
|
||||
{newW, kNEW},
|
||||
{nullW, kNULL},
|
||||
{returnW, kRETURN},
|
||||
{returnW, kRETURN, TRUE},
|
||||
{switchW, kSWITCH},
|
||||
{thisW, kTHIS},
|
||||
{throwW, kTHROW},
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue