wasm: fix Str.fromUtf8

This commit is contained in:
Brian Carroll 2022-07-04 10:56:28 +01:00
parent 02ec30425c
commit a342f02824
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
4 changed files with 238 additions and 239 deletions

View file

@ -1803,7 +1803,7 @@ fn str_from_utf8(symbol: Symbol, var_store: &mut VarStore) -> Def {
// Ok arg_2.str
// else
// # problem
// Err (BadUtf8 { byteIndex: arg_2.byteIndex, problem : arg_2.problem })
// Err (BadUtf8 arg_2.problem arg_2.byteIndex)
let def = crate::def::Def {
loc_pattern: no_region(Pattern::Identifier(Symbol::ARG_2)),