| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1106,8 +1106,10 @@ Buffer.prototype.write = function write(string, offset, length, encoding) { | |||
| 1106 | 1106 | } | |
| 1107 | 1107 | } | |
| 1108 | 1108 | ||
| 1109 | - if (!encoding) | ||
| 1109 | + if (!encoding || encoding === 'utf8') | ||
| 1110 | 1110 | return this.utf8Write(string, offset, length); | |
| 1111 | + if (encoding === 'ascii') | ||
| 1112 | + return this.asciiWrite(string, offset, length); | ||
| 1111 | 1113 | ||
| 1112 | 1114 | const ops = getEncodingOps(encoding); | |
| 1113 | 1115 | if (ops === undefined) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments