| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5c36510 commit b9a16e9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1036,7 +1036,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1036 | 1036 | proto.hexSlice = hexSlice; | |
| 1037 | 1037 | proto.ucs2Slice = ucs2Slice; | |
| 1038 | 1038 | proto.utf8Slice = utf8Slice; | |
| 1039 | - proto.asciiWrite = function(string, offset = 0, length = this.byteLength) { | ||
| 1039 | + proto.asciiWrite = function asciiWrite(string, offset = 0, length = this.byteLength) { | ||
| 1040 | 1040 | if (offset < 0 || offset > this.byteLength) { | |
| 1041 | 1041 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1042 | 1042 | } | |
@@ -1047,7 +1047,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1047 | 1047 | }; | |
| 1048 | 1048 | proto.base64Write = base64Write; | |
| 1049 | 1049 | proto.base64urlWrite = base64urlWrite; | |
| 1050 | - proto.latin1Write = function(string, offset = 0, length = this.byteLength) { | ||
| 1050 | + proto.latin1Write = function latin1Write(string, offset = 0, length = this.byteLength) { | ||
| 1051 | 1051 | if (offset < 0 || offset > this.byteLength) { | |
| 1052 | 1052 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1053 | 1053 | } | |
@@ -1058,7 +1058,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1058 | 1058 | }; | |
| 1059 | 1059 | proto.hexWrite = hexWrite; | |
| 1060 | 1060 | proto.ucs2Write = ucs2Write; | |
| 1061 | - proto.utf8Write = function(string, offset = 0, length = this.byteLength) { | ||
| 1061 | + proto.utf8Write = function utf8Write(string, offset = 0, length = this.byteLength) { | ||
| 1062 | 1062 | if (offset < 0 || offset > this.byteLength) { | |
| 1063 | 1063 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1064 | 1064 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments