Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 29fbd9f9048f2ef90864ab29c007453a105312b6 1 parent 94fd95c
pberkland authored
View
8 ...t.jsdt.core.tests.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"
+ );
+ }
Please sign in to comment.
Something went wrong with that request. Please try again.