This production exists in order to prevent automatic semicolon insertion rules (
+ a ?? throw b
+ /c/d
+
+ so that it would be interpreted as two valid statements. The purpose is to maintain consistency with similar code using |ThrowStatement|:
+
+ throw b
+ /c/d
+
+ which is a valid statement and where automatic semicolon insertion does not apply.
+This production exists in order to prevent automatic semicolon insertion rules (
+ a ?? throw b
+ + c
+
+ so that it would be interpreted as two valid statements. The purpose is to maintain consistency with similar code using |ThrowStatement|:
+
+ throw b
+ + c
+
+ which is a valid statement and where automatic semicolon insertion does not apply.
+This production exists in order to prevent automatic semicolon insertion rules (
+ a = throw b
+ /= c / d
+
+ so that it would be interpreted as two valid statements. The purpose is to maintain consistency with similar code using |ThrowStatement|:
+
+ throw b
+ /= c / d
+
+ which is a valid statement and where automatic semicolon insertion does not apply.
+