add hw2
This commit is contained in:
		
							
								
								
									
										19
									
								
								node_modules/text-decoder/lib/pass-through-decoder.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								node_modules/text-decoder/lib/pass-through-decoder.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| const b4a = require('b4a') | ||||
|  | ||||
| module.exports = class PassThroughDecoder { | ||||
|   constructor (encoding) { | ||||
|     this.encoding = encoding | ||||
|   } | ||||
|  | ||||
|   get remaining () { | ||||
|     return 0 | ||||
|   } | ||||
|  | ||||
|   decode (tail) { | ||||
|     return b4a.toString(tail, this.encoding) | ||||
|   } | ||||
|  | ||||
|   flush () { | ||||
|     return '' | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik