I'm actually now really curious what the following does:

```
function foo(x, y = (() => { arguments[0] = "foo"; return "bar" })()) {
  return [x, y];
}

foo(5);
```

Arrow functions are not implicitly strict currently, right? If so, the above should return `["foo", "bar"]`.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to