Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
index 586f0d9..5da47b2 100644
--- a/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
+++ b/tests/org.eclipse.wst.jsdt.core.tests.compiler/src/org/eclipse/wst/jsdt/core/tests/compiler/parser/SyntaxErrorTest.java
@@ -347,6 +347,25 @@ public void testWI106610() {
testName);
}
+/**
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=417387
+ */
+public void testCommaExpression01() {
+ String s = "!function(){\n" +
+ " window.alert(\"passed 1\");\n" +
+ "}(),\n" +
+ " function(){\n" +
+ " window.alert(\"passed 2\");\n" +
+ "}();\n" +
+ "window.alert(\"passed 3\");";
+ String testName = "<test>";
+ checkParse(
+ s.toCharArray(),
+ "",
+ testName);
+}
+
+
public void testRegExpression01() {
String s = "searchStr.replace( /([!\"#$%&'()*+,./:;<=>?@[\\]^`{|}~])/g, '//' )";
String expectedSyntaxErrorDiagnosis = "";

Back to the top