Skip to content
Browse files

allow this syntax 'if (condition) var c=1;'

  • Loading branch information...
1 parent 94fd95c commit 29fbd9f9048f2ef90864ab29c007453a105312b6 pberkland committed Jul 31, 2007
View
8 ...ts.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/regression/BasicParserTests.java
@@ -868,6 +868,14 @@ public void test0046b() {
);
}
+ public void test0050() {
+ // make sure divide not seen as regex
+ this.runParseTest(
+ "if (true) var c=1;",
+ "X.js",
+ "if (true)\n var c = 1;\n"
+ );
+ }

0 comments on commit 29fbd9f

Please sign in to comment.
Something went wrong with that request. Please try again.