jscript: Added support for no new line between return and expression rule.
This commit is contained in:
parent
f1642ce1fc
commit
dd0fe98646
@ -87,7 +87,7 @@ static const struct {
|
|||||||
{instanceofW, kINSTANCEOF},
|
{instanceofW, kINSTANCEOF},
|
||||||
{newW, kNEW},
|
{newW, kNEW},
|
||||||
{nullW, kNULL},
|
{nullW, kNULL},
|
||||||
{returnW, kRETURN},
|
{returnW, kRETURN, TRUE},
|
||||||
{switchW, kSWITCH},
|
{switchW, kSWITCH},
|
||||||
{thisW, kTHIS},
|
{thisW, kTHIS},
|
||||||
{throwW, kTHROW},
|
{throwW, kTHROW},
|
||||||
|
@ -1378,6 +1378,13 @@ while(true) {
|
|||||||
tmp = false
|
tmp = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function returnTest() {
|
||||||
|
return
|
||||||
|
true;
|
||||||
|
}
|
||||||
|
|
||||||
|
ok(returnTest() === undefined, "returnTest = " + returnTest());
|
||||||
|
|
||||||
/* Keep this test in the end of file */
|
/* Keep this test in the end of file */
|
||||||
undefined = 6;
|
undefined = 6;
|
||||||
ok(undefined === 6, "undefined = " + undefined);
|
ok(undefined === 6, "undefined = " + undefined);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user