aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.mjs
diff options
context:
space:
mode:
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 96fa4f1..4d8f65e 100644
--- a/src/gleam_stdlib.mjs
+++ b/src/gleam_stdlib.mjs
@@ -494,7 +494,9 @@ export function classify_dynamic(data) {
}
function decoder_error(expected, got) {
- return new Error(new DecodeError(expected, classify_dynamic(got)));
+ return new Error(
+ new DecodeError(expected, classify_dynamic(got), List.fromArray([]))
+ );
}
export function decode_string(data) {