We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a637c commit fcb2137Copy full SHA for fcb2137
1 file changed
tests/base64.test.js
@@ -56,7 +56,8 @@ describe('fromBase64', () => {
56
...['a-+a', 'aa+_', 'aa_/', '-a/a'], // mixed base64/base64url
57
...['aa=='], // non-strict
58
]) {
59
- if (Uint8Array.fromBase64 && !['jsc', 'webkit'].includes(process.env.EXODUS_TEST_PLATFORM)) {
+ const BAD_ENGINES = ['jsc', 'webkit', 'spidermonkey', 'firefox', 'v8']
60
+ if (Uint8Array.fromBase64 && !BAD_ENGINES.includes(process.env.EXODUS_TEST_PLATFORM)) {
61
t.assert.throws(() => Uint8Array.fromBase64(input, { lastChunkEncoding: 'strict' }))
62
t.assert.throws(() => Uint8Array.fromBase64(input, { lastChunkEncoding: 'strict', alphabet: 'base64' }))
63
t.assert.throws(() => Uint8Array.fromBase64(input, { lastChunkEncoding: 'strict', alphabet: 'base64url' }))
0 commit comments