Re: [whatwg/streams] Reference impl: Use arrow functions for `size` functions (#1142)

Chrome and Firefox do seem to infer a `name` property from the variable assignment. But I don't think ECMAScript requires that, so it's probably not a good idea to rely on it for the reference implementation.
```javascript
const size = () => 1;
size.name // -> "size"
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1142#issuecomment-871747572

Received on Wednesday, 30 June 2021 21:44:50 UTC