@@ -8233,12 +8233,10 @@ function try_assignment_but_not_arrow_function(env) {
8233
8233
throw Parser_env_051[/* Rollback */0];
8234
8234
} else {
8235
8235
var match$1 = ret[1];
8236
- if (typeof match$1 === "number") {
8236
+ if (typeof match$1 === "number" || !(match$1.tag === 18 && match$1[0][1][/* name */0] === "async" && !Curry._1(Parser_env_048[/* is_line_terminator */5], env$1)) ) {
8237
8237
return ret;
8238
- } else if (match$1.tag === 18 && match$1[0][1][/* name */0] === "async" && !Curry._1(Parser_env_048[/* is_line_terminator */5], env$1)) {
8239
- throw Parser_env_051[/* Rollback */0];
8240
8238
} else {
8241
- return ret ;
8239
+ throw Parser_env_051[/* Rollback */0] ;
8242
8240
}
8243
8241
}
8244
8242
} else {
@@ -8261,9 +8259,9 @@ function assignment(env) {
8261
8259
} else {
8262
8260
exit = 1;
8263
8261
}
8264
- } else if (switcher !== 52) {
8262
+ } else if (switcher !== 52 || !env[/* allow_yield */13] ) {
8265
8263
exit$1 = 2;
8266
- } else if (env[/* allow_yield */13]) {
8264
+ } else {
8267
8265
var env$1 = env;
8268
8266
var start_loc = Curry._2(Parser_env_048[/* loc */2], /* None */0, env$1);
8269
8267
token$4(env$1, /* T_YIELD */56);
@@ -8289,8 +8287,6 @@ function assignment(env) {
8289
8287
/* delegate */delegate
8290
8288
]])
8291
8289
];
8292
- } else {
8293
- exit$1 = 2;
8294
8290
}
8295
8291
} else {
8296
8292
exit$1 = 2;
@@ -10221,9 +10217,9 @@ function declare($staropt$star, env) {
10221
10217
return declare_var_statement(env, start_loc);
10222
10218
}
10223
10219
} else if (match !== 13) {
10224
- if (match !== 0) {
10220
+ if (match !== 0 || Curry._2(Parser_env_048[/* value */1], /* Some */[1], env) !== "module" ) {
10225
10221
exit = 1;
10226
- } else if (Curry._2(Parser_env_048[/* value */1], /* Some */[1], env) === "module") {
10222
+ } else {
10227
10223
token$4(env, /* T_DECLARE */58);
10228
10224
contextual(env, "module");
10229
10225
if (in_module || Curry._2(Parser_env_048[/* token */0], /* None */0, env) === /* T_PERIOD */9) {
@@ -10296,8 +10292,6 @@ function declare($staropt$star, env) {
10296
10292
]])
10297
10293
];
10298
10294
}
10299
- } else {
10300
- exit = 1;
10301
10295
}
10302
10296
} else {
10303
10297
token$4(env, /* T_DECLARE */58);
@@ -10408,9 +10402,9 @@ function export_source(env) {
10408
10402
contextual(env, "from");
10409
10403
var match = Curry._2(Parser_env_048[/* token */0], /* None */0, env);
10410
10404
var exit = 0;
10411
- if (typeof match === "number") {
10405
+ if (typeof match === "number" || match.tag !== 1 ) {
10412
10406
exit = 1;
10413
- } else if (match.tag === 1) {
10407
+ } else {
10414
10408
var match$1 = match[0];
10415
10409
var octal = match$1[3];
10416
10410
var raw = match$1[2];
@@ -10433,8 +10427,6 @@ function export_source(env) {
10433
10427
/* raw */raw
10434
10428
]
10435
10429
];
10436
- } else {
10437
- exit = 1;
10438
10430
}
10439
10431
if (exit === 1) {
10440
10432
var raw$1 = Curry._2(Parser_env_048[/* value */1], /* None */0, env);
@@ -10896,12 +10888,10 @@ function module_items(env, _module_kind, _acc) {
10896
10888
var module_kind$1;
10897
10889
if (module_kind) {
10898
10890
if (module_kind[0].tag) {
10899
- if (typeof stmt$1 === "number") {
10900
- module_kind$1 = module_kind;
10901
- } else if (stmt$1.tag === 26) {
10902
- error$1(env, /* AmbiguousDeclareModuleKind */61);
10891
+ if (typeof stmt$1 === "number" || stmt$1.tag !== 26) {
10903
10892
module_kind$1 = module_kind;
10904
10893
} else {
10894
+ error$1(env, /* AmbiguousDeclareModuleKind */61);
10905
10895
module_kind$1 = module_kind;
10906
10896
}
10907
10897
} else if (typeof stmt$1 === "number") {
@@ -11172,9 +11162,9 @@ function source(env) {
11172
11162
contextual(env, "from");
11173
11163
var match = Curry._2(Parser_env_048[/* token */0], /* None */0, env);
11174
11164
var exit = 0;
11175
- if (typeof match === "number") {
11165
+ if (typeof match === "number" || match.tag !== 1 ) {
11176
11166
exit = 1;
11177
- } else if (match.tag === 1) {
11167
+ } else {
11178
11168
var match$1 = match[0];
11179
11169
var octal = match$1[3];
11180
11170
var raw = match$1[2];
@@ -11197,8 +11187,6 @@ function source(env) {
11197
11187
/* raw */raw
11198
11188
]
11199
11189
];
11200
- } else {
11201
- exit = 1;
11202
11190
}
11203
11191
if (exit === 1) {
11204
11192
var raw$1 = Curry._2(Parser_env_048[/* value */1], /* None */0, env);
@@ -13164,9 +13152,9 @@ function statement(env) {
13164
13152
var match$21 = expr$1[1];
13165
13153
var loc$5 = expr$1[0];
13166
13154
var exit$4 = 0;
13167
- if (typeof match$21 === "number") {
13155
+ if (typeof match$21 === "number" || !(match$21.tag === 18 && typeof match$20 === "number" && match$20 === 77) ) {
13168
13156
exit$4 = 1;
13169
- } else if (match$21.tag === 18 && typeof match$20 === "number" && match$20 === 77) {
13157
+ } else {
13170
13158
var label$4 = match$21[0];
13171
13159
var match$22 = label$4[1];
13172
13160
var name$2 = match$22[/* name */0];
@@ -13189,8 +13177,6 @@ function statement(env) {
13189
13177
/* body */labeled_stmt
13190
13178
]])
13191
13179
];
13192
- } else {
13193
- exit$4 = 1;
13194
13180
}
13195
13181
if (exit$4 === 1) {
13196
13182
var match$23 = Curry._2(Parser_env_048[/* semicolon_loc */7], /* None */0, env$14);
@@ -13515,19 +13501,15 @@ function directives(env, term_fn, item_fn) {
13515
13501
var param$1 = param;
13516
13502
var token = param$1[1];
13517
13503
var exit = 0;
13518
- if (typeof token === "number") {
13504
+ if (typeof token === "number" || token.tag !== 1 ) {
13519
13505
exit = 1;
13520
- } else if (token.tag === 1) {
13521
- if (token[0][3]) {
13522
- return strict_error_at(env$2, /* tuple */[
13523
- param$1[0],
13524
- /* StrictOctalLiteral */31
13525
- ]);
13526
- } else {
13527
- return 0;
13528
- }
13506
+ } else if (token[0][3]) {
13507
+ return strict_error_at(env$2, /* tuple */[
13508
+ param$1[0],
13509
+ /* StrictOctalLiteral */31
13510
+ ]);
13529
13511
} else {
13530
- exit = 1 ;
13512
+ return 0 ;
13531
13513
}
13532
13514
if (exit === 1) {
13533
13515
var s = "Nooo: " + (token_to_string(token) + "\n");
@@ -14955,9 +14937,9 @@ function parse(content, _) {
14955
14937
}
14956
14938
var props;
14957
14939
var exit = 0;
14958
- if (typeof value === "number") {
14940
+ if (typeof value === "number" || value.tag !== 3 ) {
14959
14941
exit = 1;
14960
- } else if (value.tag === 3) {
14942
+ } else {
14961
14943
var match$1 = value[0];
14962
14944
var regex = Curry._1(obj, /* array */[
14963
14945
/* tuple */[
@@ -14983,8 +14965,6 @@ function parse(content, _) {
14983
14965
regex
14984
14966
]
14985
14967
];
14986
- } else {
14987
- exit = 1;
14988
14968
}
14989
14969
if (exit === 1) {
14990
14970
props = /* array */[
0 commit comments