diff --git a/packages/core-js-pure/override/internals/entry-virtual.js b/packages/core-js-pure/override/internals/entry-virtual.js deleted file mode 100644 index a111339ee25a..000000000000 --- a/packages/core-js-pure/override/internals/entry-virtual.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; -var path = require('../internals/path'); - -module.exports = function (CONSTRUCTOR) { - return path[CONSTRUCTOR + 'Prototype']; -}; diff --git a/packages/core-js/es/string/virtual/trim-end.js b/packages/core-js/es/string/virtual/trim-end.js index bd013aa6d745..21a3cc2f2ac7 100644 --- a/packages/core-js/es/string/virtual/trim-end.js +++ b/packages/core-js/es/string/virtual/trim-end.js @@ -2,4 +2,4 @@ require('../../../modules/es.string.trim-end'); var getBuiltInPrototypeMethod = require('../../../internals/get-built-in-prototype-method'); -module.exports = getBuiltInPrototypeMethod('String', 'trimRight'); +module.exports = getBuiltInPrototypeMethod('String', 'trimEnd'); diff --git a/packages/core-js/internals/entry-virtual.js b/packages/core-js/internals/entry-virtual.js deleted file mode 100644 index 5a0be6852ec9..000000000000 --- a/packages/core-js/internals/entry-virtual.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; -var global = require('../internals/global'); - -module.exports = function (CONSTRUCTOR) { - return global[CONSTRUCTOR].prototype; -}; diff --git a/packages/core-js/modules/esnext.array.from-async.js b/packages/core-js/modules/esnext.array.from-async.js index 5c5071814b56..c2ce0942824a 100644 --- a/packages/core-js/modules/esnext.array.from-async.js +++ b/packages/core-js/modules/esnext.array.from-async.js @@ -9,14 +9,14 @@ var getIterator = require('../internals/get-iterator'); var getIteratorDirect = require('../internals/get-iterator-direct'); var getIteratorMethod = require('../internals/get-iterator-method'); var getMethod = require('../internals/get-method'); -var getVirtual = require('../internals/entry-virtual'); var getBuiltIn = require('../internals/get-built-in'); +var getBuiltInPrototypeMethod = require('../internals/get-built-in-prototype-method'); var wellKnownSymbol = require('../internals/well-known-symbol'); var AsyncFromSyncIterator = require('../internals/async-from-sync-iterator'); var toArray = require('../internals/async-iterator-iteration').toArray; var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator'); -var arrayIterator = uncurryThis(getVirtual('Array').values); +var arrayIterator = uncurryThis(getBuiltInPrototypeMethod('Array', 'values')); var arrayIteratorNext = uncurryThis(arrayIterator([]).next); var safeArrayIterator = function () {