(input = '', output = new Uint8Array())
| 149 | } |
| 150 | |
| 151 | encodeInto(input = '', output = new Uint8Array()) { |
| 152 | const Encoding = import.meta.importSync('_encodingNative'); |
| 153 | // The TextEncoder specification only allows for UTF-8 encoding. |
| 154 | return Encoding.encodeInto(`${input}`, output); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | Object.defineProperty(globalThis, 'TextEncoder', { |
nothing calls this directly
no test coverage detected