Bug 281061
| Summary: | `Array.prototype.concat` stopped to work with `Symbol.species` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zloirock <zloirock> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
zloirock
`core-js` test case started to fail on WebKit from the latest Playwright on `Array.prototype.concat` + `Symbol.species` test:
```js
const array = [];
array.constructor = { [Symbol.species]: function () {
return { foo: 1 };
} };
console.log(array.concat().foo); // => `undefined`, expected 1
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
Thanks! This is dupe of bug 280381 :)
*** This bug has been marked as a duplicate of bug 280381 ***