- From: guest271314 <notifications@github.com>
- Date: Sun, 05 Apr 2020 10:58:38 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 5 April 2020 17:58:51 UTC
What happens here: ``` var MY_JSON_FILE = [[[`{ "hello": "world" }`]]]; var blob = new Blob([[MY_JSON_FILE]]); var fr = new FileReader(); fr.addEventListener("load", e => { console.log(e.target.result) }); fr.readAsText(blob); ``` outputs ``` { "hello": "world" } ``` where do the extra `[` and `]` disappear to? Why are not the extra `[` and `]` also converted to a string? Am trying to concretely determine when `[` and `]` are required in order to avoid string conversion. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/868#issuecomment-609456848
Received on Sunday, 5 April 2020 17:58:51 UTC