clean up platform file load

This commit is contained in:
Stewart Allen 2024-06-30 23:15:03 -04:00
commit 903a0007d6
4 changed files with 57 additions and 79 deletions

View file

@ -235,6 +235,10 @@ Float32Array.prototype.toShared = function() {
Float32Array.prototype.toFloat32 = function() { return this };
ArrayBuffer.prototype.textDecode = function(encoding = 'utf-8') {
return new TextDecoder(encoding).decode(this);
};
String.prototype.reverse = function() {
return this.split('').reverse().join('');
};