Re: [heycam/webidl] Is a TypedArray a sequence? (#868)

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