Skip to content

Commit

Permalink
it seems that the ancient Array.prototype.push bug is fixed in V8 ~…
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 22, 2023
1 parent c3e9a50 commit a7b141b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Refactoring, some optimizations
- Compat data improvements:
- [`Array.fromAsync`](https://github.com/tc39/proposal-array-from-async) marked as [supported from V8 ~ Chrome 121](https://bugs.chromium.org/p/v8/issues/detail?id=13321#c13)
- It seems that the ancient [`Array.prototype.push` bug](https://bugs.chromium.org/p/v8/issues/detail?id=12681) is fixed in V8 ~ Chrome 122 (Hallelujah!)
- [`ArrayBuffer.prototype.transfer` and friends proposal](https://github.com/tc39/proposal-arraybuffer-transfer) features marked as [supported from FF 122](https://bugzilla.mozilla.org/show_bug.cgi?id=1865103#c8)
- Added Opera Android 80 and updated [Opera Android 79](https://forums.opera.com/topic/68490/opera-for-android-79) compat data mapping
- Added Samsung Internet 24 compat data mapping
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-compat/src/data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const data = {
},
'es.array.push': {
// bug with setting length
// chrome: '103',
chrome: '122', // chrome: '103',
// edge: '15',
firefox: '55',
hermes: '0.2',
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.array.push.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var INCORRECT_TO_LENGTH = fails(function () {
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
});

// V8 and Safari <= 15.4, FF < 23 throws InternalError
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
var properErrorOnNonWritableLength = function () {
try {
Expand Down

0 comments on commit a7b141b

Please sign in to comment.