clean up platform file load
This commit is contained in:
parent
7f4a6723ff
commit
903a0007d6
4 changed files with 57 additions and 79 deletions
|
|
@ -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('');
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue