File tree 2 files changed +25
-6
lines changed
2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -2700,6 +2700,12 @@ scanner_scan_all (parser_context_t *context_p) /**< context */
2700
2700
identifier_found = true;
2701
2701
}
2702
2702
2703
+ if (context_p -> token .type == LEXER_SEMICOLON )
2704
+ {
2705
+ scanner_context .mode = SCAN_MODE_CLASS_BODY ;
2706
+ continue ;
2707
+ }
2708
+
2703
2709
if (!identifier_found )
2704
2710
{
2705
2711
scanner_raise_error (context_p );
@@ -2728,12 +2734,6 @@ scanner_scan_all (parser_context_t *context_p) /**< context */
2728
2734
break ;
2729
2735
}
2730
2736
2731
- if (context_p -> token .type == LEXER_SEMICOLON )
2732
- {
2733
- scanner_context .mode = SCAN_MODE_CLASS_BODY ;
2734
- continue ;
2735
- }
2736
-
2737
2737
if (context_p -> token .type != LEXER_RIGHT_BRACE && !(context_p -> token .flags & LEXER_WAS_NEWLINE ))
2738
2738
{
2739
2739
scanner_raise_error (context_p );
Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ class c {
16
+ static {
17
+ }
18
+ ;
19
+ }
You can’t perform that action at this time.
0 commit comments