| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d8e88f2 commit a1b078b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1043,7 +1043,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1043 | 1043 | proto.hexSlice = hexSlice; | |
| 1044 | 1044 | proto.ucs2Slice = ucs2Slice; | |
| 1045 | 1045 | proto.utf8Slice = utf8Slice; | |
| 1046 | - proto.asciiWrite = function(string, offset = 0, length = this.byteLength - offset) { | ||
| 1046 | + proto.asciiWrite = function asciiWrite(string, offset = 0, length = this.byteLength - offset) { | ||
| 1047 | 1047 | if (offset < 0 || offset > this.byteLength) { | |
| 1048 | 1048 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1049 | 1049 | } | |
@@ -1054,7 +1054,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1054 | 1054 | }; | |
| 1055 | 1055 | proto.base64Write = base64Write; | |
| 1056 | 1056 | proto.base64urlWrite = base64urlWrite; | |
| 1057 | - proto.latin1Write = function(string, offset = 0, length = this.byteLength - offset) { | ||
| 1057 | + proto.latin1Write = function latin1Write(string, offset = 0, length = this.byteLength - offset) { | ||
| 1058 | 1058 | if (offset < 0 || offset > this.byteLength) { | |
| 1059 | 1059 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1060 | 1060 | } | |
@@ -1065,7 +1065,7 @@ function addBufferPrototypeMethods(proto) { | |||
| 1065 | 1065 | }; | |
| 1066 | 1066 | proto.hexWrite = hexWrite; | |
| 1067 | 1067 | proto.ucs2Write = ucs2Write; | |
| 1068 | - proto.utf8Write = function(string, offset = 0, length = this.byteLength - offset) { | ||
| 1068 | + proto.utf8Write = function utf8Write(string, offset = 0, length = this.byteLength - offset) { | ||
| 1069 | 1069 | if (offset < 0 || offset > this.byteLength) { | |
| 1070 | 1070 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); | |
| 1071 | 1071 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments