OLD | NEW |
1 Edge cases around non-fatal errors at EOF | 1 Edge cases around non-fatal errors at EOF |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff])) thre
w exception EncodingError: The encoded data was not valid.. | 6 PASS new TextDecoder('utf-8', {fatal: true}).decode(new Uint8Array([0xff])) thre
w exception EncodingError: Failed to execute 'decode' on 'TextDecoder': The enco
ded data was not valid.. |
7 | 7 |
8 Should not throw or hang: | 8 Should not throw or hang: |
9 new TextDecoder('utf-8').decode(new Uint8Array([0xff])) | 9 new TextDecoder('utf-8').decode(new Uint8Array([0xff])) |
10 | 10 |
11 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00])) s
hould throw an exception. Was . | 11 FAIL new TextDecoder('utf-16le', {fatal: true}).decode(new Uint8Array([0x00])) s
hould throw an exception. Was . |
12 | 12 |
13 Should not throw or hang: | 13 Should not throw or hang: |
14 new TextDecoder('utf-16le').decode(new Uint8Array([0x00])) | 14 new TextDecoder('utf-16le').decode(new Uint8Array([0x00])) |
15 | 15 |
16 FAIL new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0x00])) s
hould throw an exception. Was . | 16 FAIL new TextDecoder('utf-16be', {fatal: true}).decode(new Uint8Array([0x00])) s
hould throw an exception. Was . |
17 | 17 |
18 Should not throw or hang: | 18 Should not throw or hang: |
19 new TextDecoder('utf-16be').decode(new Uint8Array([0x00])); | 19 new TextDecoder('utf-16be').decode(new Uint8Array([0x00])); |
20 PASS successfullyParsed is true | 20 PASS successfullyParsed is true |
21 | 21 |
22 TEST COMPLETE | 22 TEST COMPLETE |
23 | 23 |
OLD | NEW |