Skip to content

Commit 194b190

Browse files
committed
v1.0.0
1 parent 9c8c9ba commit 194b190

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exodus/bytes",
3-
"version": "1.0.0-rc.12",
3+
"version": "1.0.0",
44
"description": "Various operations on Uint8Array data",
55
"scripts": {
66
"lint": "eslint .",

tests/encoding/single-byte.tables.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Comment out this line to test on native impl, e.g. to cross-test in browsers
2-
import { TextDecoder } from '@exodus/bytes/encoding.js'
2+
//import { TextDecoder } from '@exodus/bytes/encoding.js'
3+
import { TextDecoder } from './_whatwg_encoding.js'
34

45
import { readFileSync } from 'node:fs'
56
import { join } from 'node:path'
@@ -50,6 +51,7 @@ describe('single-byte encodings index', () => {
5051
for (let i = 0; i < 128; i++) {
5152
const row = known.get(i)
5253
const byte = i + 128
54+
try {
5355
if (row) {
5456
t.assert.strictEqual(i, row.i)
5557
const str = String.fromCodePoint(row.code)
@@ -59,6 +61,9 @@ describe('single-byte encodings index', () => {
5961
t.assert.throws(() => fatal.decode(Uint8Array.of(byte)), TypeError)
6062
t.assert.strictEqual(loose.decode(Uint8Array.of(byte)), '\uFFFD')
6163
}
64+
} catch {
65+
console.error('FAIL', { encoding, byte, code: row?.code })
66+
}
6267
}
6368
})
6469
}

0 commit comments

Comments
 (0)