Skip to content

Commit

Permalink
get rid of some duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 24, 2021
1 parent 3ef0ded commit e41af69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions packages/core-js/internals/array-buffer-view-core.js
Expand Up @@ -2,7 +2,6 @@
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var uncurryThis = require('../internals/function-uncurry-this');
var isCallable = require('../internals/is-callable');
var isObject = require('../internals/is-object');
var hasOwn = require('../internals/has-own-property');
Expand All @@ -11,6 +10,7 @@ var tryToString = require('../internals/try-to-string');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var defineProperty = require('../internals/object-define-property').f;
var isPrototypeOf = require('../internals/object-is-prototype-of');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var wellKnownSymbol = require('../internals/well-known-symbol');
Expand All @@ -24,7 +24,6 @@ var TypedArray = Int8Array && getPrototypeOf(Int8Array);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var TypeError = global.TypeError;
var isPrototypeOf = uncurryThis(ObjectPrototype.isPrototypeOf);

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
Expand Down
4 changes: 1 addition & 3 deletions packages/core-js/modules/esnext.async-iterator.from.js
@@ -1,9 +1,9 @@
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var apply = require('../internals/function-apply');
var uncurryThis = require('../internals/function-uncurry-this');
var anObject = require('../internals/an-object');
var toObject = require('../internals/to-object');
var isPrototypeOf = require('../internals/object-is-prototype-of');
var AsyncIteratorPrototype = require('../internals/async-iterator-prototype');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var getAsyncIterator = require('../internals/get-async-iterator');
Expand All @@ -15,8 +15,6 @@ var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');

var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');

var isPrototypeOf = uncurryThis({}.isPrototypeOf);

var AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise, args) {
return anObject(apply(this.next, this.iterator, args));
}, true);
Expand Down
4 changes: 1 addition & 3 deletions packages/core-js/modules/esnext.iterator.from.js
@@ -1,16 +1,14 @@
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var apply = require('../internals/function-apply');
var uncurryThis = require('../internals/function-uncurry-this');
var anObject = require('../internals/an-object');
var toObject = require('../internals/to-object');
var isPrototypeOf = require('../internals/object-is-prototype-of');
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;
var createIteratorProxy = require('../internals/iterator-create-proxy');
var getIterator = require('../internals/get-iterator');
var getIteratorMethod = require('../internals/get-iterator-method');

var isPrototypeOf = uncurryThis({}.isPrototypeOf);

var IteratorProxy = createIteratorProxy(function (args) {
var result = anObject(apply(this.next, this.iterator, args));
var done = this.done = !!result.done;
Expand Down

0 comments on commit e41af69

Please sign in to comment.