mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
wasm: Get List.map2 working
This commit is contained in:
parent
5cce24bc8f
commit
7b96e953ba
5 changed files with 86 additions and 21 deletions
|
@ -107,7 +107,9 @@ pub fn refcount_generic<'a>(
|
|||
|
||||
match layout {
|
||||
Layout::Builtin(Builtin::Int(_) | Builtin::Float(_) | Builtin::Bool | Builtin::Decimal) => {
|
||||
unreachable!("Not refcounted: {:?}", layout)
|
||||
// Generate a dummy function that immediately returns Unit
|
||||
// Some higher-order Zig builtins *always* call an RC function on List elements.
|
||||
rc_return_stmt(root, ident_ids, ctx)
|
||||
}
|
||||
Layout::Builtin(Builtin::Str) => refcount_str(root, ident_ids, ctx),
|
||||
Layout::Builtin(Builtin::List(elem_layout)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue