Skip to content

Commit

Permalink
fix wrong export in /(stable|actual/full)/instance/unshift entries, c…
Browse files Browse the repository at this point in the history
…lose #1207
  • Loading branch information
zloirock committed Feb 17, 2023
1 parent 6491417 commit 590bde3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Changelog
##### Unreleased
- Nothing
- Fixed wrong export in `/(stable|actual/full)/instance/unshift` entries

##### [3.28.0 - 2023.02.14](https://github.com/zloirock/core-js/releases/tag/v3.28.0)
**I highly recommend reading this: [So, what's next?](https://github.com/zloirock/core-js/blob/master/docs/2023-02-14-so-whats-next.md)**
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/actual/instance/unshift.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var parent = require('../../stable/instance/push');
var parent = require('../../stable/instance/unshift');

module.exports = parent;
2 changes: 1 addition & 1 deletion packages/core-js/full/instance/unshift.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var parent = require('../../actual/instance/push');
var parent = require('../../actual/instance/unshift');

module.exports = parent;
2 changes: 1 addition & 1 deletion packages/core-js/stable/instance/unshift.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var parent = require('../../es/instance/push');
var parent = require('../../es/instance/unshift');

module.exports = parent;
4 changes: 3 additions & 1 deletion tests/entries/unit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ for (PATH of ['core-js-pure', 'core-js']) {
ok(typeof instanceUnshift == 'function');
ok(instanceUnshift({}) === undefined);
ok(typeof instanceUnshift([]) == 'function');
ok(instanceUnshift([]).call([1], 8) === 2);
const instanceUnshiftTestArray = [1];
ok(instanceUnshift([]).call(instanceUnshiftTestArray, 8));
ok(instanceUnshiftTestArray[0] === 8);

const instanceValues = load(NS, 'instance/values');
ok(typeof instanceValues == 'function');
Expand Down

0 comments on commit 590bde3

Please sign in to comment.