(str)
| 238 | })(); |
| 239 | |
| 240 | function encodeWtf16LE(str) { |
| 241 | // String iterator coalesces surrogate pairs. |
| 242 | let out = []; |
| 243 | for (let i = 0; i < str.length; i++) { |
| 244 | codeunit = str.charCodeAt(i); |
| 245 | out.push(codeunit & 0xff) |
| 246 | out.push(codeunit >> 8); |
| 247 | } |
| 248 | return out; |
| 249 | } |
| 250 | |
| 251 | function makeWtf16TestDataSegment(strings) { |
| 252 | let data = [] |
no test coverage detected