Jacek Caban : jscript: Added support for no new line between return and expression rule.
Alexandre Julliard
julliard at winehq.org
Mon Sep 10 15:22:12 CDT 2012
Module: wine
Branch: master
Commit: dd0fe98646036ffc84c31d5ddbb26346b00cc75f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd0fe98646036ffc84c31d5ddbb26346b00cc75f
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Sep 10 14:45:23 2012 +0200
jscript: Added support for no new line between return and expression rule.
---
dlls/jscript/lex.c | 2 +-
dlls/jscript/tests/lang.js | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/lex.c b/dlls/jscript/lex.c
index 7e0e2fc..4c2cc6b 100644
--- a/dlls/jscript/lex.c
+++ b/dlls/jscript/lex.c
@@ -87,7 +87,7 @@ static const struct {
{instanceofW, kINSTANCEOF},
{newW, kNEW},
{nullW, kNULL},
- {returnW, kRETURN},
+ {returnW, kRETURN, TRUE},
{switchW, kSWITCH},
{thisW, kTHIS},
{throwW, kTHROW},
diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
index d3908ad..dbb9d50 100644
--- a/dlls/jscript/tests/lang.js
+++ b/dlls/jscript/tests/lang.js
@@ -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);
More information about the wine-cvs
mailing list