Packages
Library for accessibility snapshot testing in Phoenix applications using axe-core and Playwright.
Current section
Files
Jump to
Current section
Files
assets/node_modules/text-decoder/lib/browser-decoder.js
module.exports = class BrowserDecoder {
constructor (encoding) {
this.decoder = new TextDecoder(encoding === 'utf16le' ? 'utf16-le' : encoding)
}
get remaining () {
return -1
}
decode (data) {
return this.decoder.decode(data, { stream: true })
}
flush () {
return this.decoder.decode(new Uint8Array(0))
}
}