Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a236b78

Browse files
committedOct 30, 2024·
only apply to untagged variants
1 parent 74ea0ff commit a236b78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1161
-958
lines changed
 

‎compiler/core/lam_compile.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ let compile output_prefix =
749749
use_compile_literal_cases sw_blocks ~get_tag:get_block_tag
750750
in
751751
match (qconsts, qblocks) with
752-
| Some consts_cases, Some blocks_cases when false ->
752+
| Some consts_cases, Some blocks_cases when untagged ->
753753
let untagged_cases = consts_cases @ blocks_cases in
754754
let z =
755755
compile_untagged_cases ~cxt ~switch_exp:e ~block_cases

‎lib/es6/Intl_NumberFormat_Grouping.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import * as Type from "./Type.js";
44

55
function parseJsValue(value) {
66
let value$1 = Type.Classify.classify(value);
7-
switch (typeof value$1) {
7+
if (typeof value$1 !== "object") {
8+
return;
9+
}
10+
switch (value$1.TAG) {
811
case "Bool" :
912
return {
1013
NAME: "bool",

0 commit comments

Comments
 (0)
Please sign in to comment.