| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9260844 commit e53f5af
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,6 +22,7 @@ | |||
| 22 | 22 | 'use strict'; | |
| 23 | 23 | ||
| 24 | 24 | const { | |
| 25 | + ArrayBufferIsView, | ||
| 25 | 26 | ObjectDefineProperties, | |
| 26 | 27 | } = primordials; | |
| 27 | 28 | ||
@@ -74,7 +75,7 @@ function StringDecoder(encoding) { | |||
| 74 | 75 | StringDecoder.prototype.write = function write(buf) { | |
| 75 | 76 | if (typeof buf === 'string') | |
| 76 | 77 | return buf; | |
| 77 | - if (!ArrayBuffer.isView(buf)) | ||
| 78 | + if (!ArrayBufferIsView(buf)) | ||
| 78 | 79 | throw new ERR_INVALID_ARG_TYPE('buf', | |
| 79 | 80 | ['Buffer', 'TypedArray', 'DataView'], | |
| 80 | 81 | buf); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments