From 7c2757781568043e2e505176a0ea12feca645db3 Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Thu, 26 Sep 2024 10:47:41 +0200 Subject: [PATCH] Runtime: remove deadcode, duplicated cases --- biome.json | 1 - runtime/compare.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/biome.json b/biome.json index 023a654b09..bee01bd683 100644 --- a/biome.json +++ b/biome.json @@ -43,7 +43,6 @@ "noAssignInExpressions": "off", "noControlCharactersInRegex": "off", "noDoubleEquals": "off", - "noDuplicateCase": "off", "noFallthroughSwitchClause": "off", "noRedeclare": "off", "noSelfCompare": "off", diff --git a/runtime/compare.js b/runtime/compare.js index cd15a15d9f..5812fc09f0 100644 --- a/runtime/compare.js +++ b/runtime/compare.js @@ -141,7 +141,7 @@ function caml_compare_val(a, b, total) { caml_invalid_argument("equal: got Double_tag, should not happen"); break; case 254: // Double_array_tag - // Cannot happen, handled above + // Cannot happen, handled in caml_compare_val_tag caml_invalid_argument( "equal: got Double_array_tag, should not happen", ); @@ -237,7 +237,6 @@ function caml_compare_val(a, b, total) { } break; case 246: // Lazy_tag - case 254: // Double_array default: // Block with other tag if (caml_is_continuation_tag(tag_a)) { caml_invalid_argument("compare: continuation value");