more web cleanup

This commit is contained in:
Eugene Pankov
2021-06-19 22:52:18 +02:00
parent 6742c77378
commit b60c36054f
25 changed files with 105 additions and 62 deletions

View File

@@ -234,3 +234,13 @@ export function hexSlice (start, end) {
}
return out
}
import { Buffer } from 'buffer'
Buffer.prototype['latin1Slice'] = latin1Slice
Buffer.prototype['utf8Slice'] = utf8Slice
Buffer.prototype['base64Slice'] = base64Slice
Buffer.prototype['utf8Write'] = utf8Write
Buffer.prototype['hexSlice'] = hexSlice
window['Buffer'] = Buffer