Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Throw the global JS error instead of the Result subclass Error

+7 -1
+4
CHANGELOG.md
··· 12 12 after some expressions. 13 13 ([Andrey Kozhev](https://github.com/ankddev)) 14 14 15 + - Fixed a bug where the JavaScript prelude's `BitArray$BitArray$data` FFI 16 + function would throw an Error using the wrong class. 17 + ([John Downey](https://github.com/jtdowney)) 18 + 15 19 ## v1.17.0-rc1 - 2026-05-23 16 20 17 21 ### Compiler
+3 -1
compiler-core/templates/prelude.mjs
··· 299 299 export const BitArray$isBitArray = (value) => value instanceof BitArray; 300 300 export const BitArray$BitArray$data = (bitArray) => { 301 301 if (bitArray.bitSize % 8 !== 0) 302 - throw new Error("BitArray$BitArray$data called on un-aligned bit array"); 302 + throw new globalThis.Error( 303 + "BitArray$BitArray$data called on un-aligned bit array", 304 + ); 303 305 const array = bitArray.rawBuffer; 304 306 return new DataView(array.buffer, array.byteOffset, bitArray.byteSize); 305 307 };