Skip to content

Commit

Permalink
revert b7d2a2d, #677
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 24, 2019
1 parent c491dfc commit 1418f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## Changelog
##### Unreleased
- Added a workaround for V8 deoptimization which causes up to 100x+ performance degradation of `Array#{ splice, filter, map }`, [#677](https://github.com/zloirock/core-js/issues/677)
- Fixed work of `fetch` with polyfilled `URLSearchParams`, [#674](https://github.com/zloirock/core-js/issues/674)
- `package-lock.json` no longer generated in libraries

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ var SPECIES = wellKnownSymbol('species');

module.exports = function (METHOD_NAME) {
return !fails(function () {
var object = {};
var constructor = object.constructor = {};
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES] = function () {
return { foo: 1 };
};
return [][METHOD_NAME].call(object, Boolean).foo !== 1;
return array[METHOD_NAME](Boolean).foo !== 1;
});
};

0 comments on commit 1418f5f

Please sign in to comment.