aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.mjs
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-01 23:53:01 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-01 23:53:01 +0000
commit7193c396b4bc0a461f34fc43649a53e28eefd3c6 (patch)
tree71d63c1d0b6889291d12ae093bf80f79f18df17e /src/gleam_stdlib.mjs
parent7b89700cb2c854ee2af74980c04fbf568958f496 (diff)
downloadgleam_stdlib-7193c396b4bc0a461f34fc43649a53e28eefd3c6.tar.gz
gleam_stdlib-7193c396b4bc0a461f34fc43649a53e28eefd3c6.zip
Decode errors on JS
Diffstat (limited to 'src/gleam_stdlib.mjs')
-rw-r--r--src/gleam_stdlib.mjs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gleam_stdlib.mjs b/src/gleam_stdlib.mjs
index 8340cd6..5ec4d45 100644
--- a/src/gleam_stdlib.mjs
+++ b/src/gleam_stdlib.mjs
@@ -495,7 +495,9 @@ export function classify_dynamic(data) {
function decoder_error(expected, got) {
return new Error(
- new DecodeError(expected, classify_dynamic(got), List.fromArray([]))
+ List.fromArray([
+ new DecodeError(expected, classify_dynamic(got), List.fromArray([])),
+ ])
);
}