pax_global_header 0000666 0000000 0000000 00000000064 13774351224 0014522 g ustar 00root root 0000000 0000000 52 comment=207ce6b911c66f71c70ebf1dde6b5dd46a82c522
core-js-3.8.2/ 0000775 0000000 0000000 00000000000 13774351224 0013076 5 ustar 00root root 0000000 0000000 core-js-3.8.2/.eslintignore 0000664 0000000 0000000 00000000131 13774351224 0015574 0 ustar 00root root 0000000 0000000 node_modules/
/packages/core-js-bundle/
/packages/core-js-pure/override/
/tests/bundles/
core-js-3.8.2/.eslintrc.js 0000664 0000000 0000000 00000062551 13774351224 0015346 0 ustar 00root root 0000000 0000000 'use strict';
const SUPPORTED_NODE_VERSIONS = require('./packages/core-js-builder/package.json').engines.node;
const webpack = require('./.webpack.config.js');
const base = {
// possible errors:
// enforce 'for' loop update clause moving the counter in the right direction
'for-direction': 'error',
// disallow window alert / confirm / prompt calls
'no-alert': 'error',
// disallow comparing against -0
'no-compare-neg-zero': 'error',
// disallow use of console
'no-console': 'error',
// disallow constant expressions in conditions
'no-constant-condition': ['error', { checkLoops: false }],
// disallow control characters in regular expressions
'no-control-regex': 'error',
// disallow use of debugger
'no-debugger': 'error',
// disallow duplicate arguments in functions
'no-dupe-args': 'error',
// disallow duplicate keys when creating object literals
'no-dupe-keys': 'error',
// disallow a duplicate case label.
'no-duplicate-case': 'error',
// disallow else after a return in an if
'no-else-return': 'error',
// disallow empty statements
'no-empty': 'error',
// disallow the use of empty character classes in regular expressions
'no-empty-character-class': 'error',
// disallow unnecessary boolean casts
'no-extra-boolean-cast': 'error',
// disallow unnecessary semicolons
'no-extra-semi': 'error',
// disallow assigning to the exception in a catch block
'no-ex-assign': 'error',
// disallow overwriting functions written as function declarations
'no-func-assign': 'error',
// disallow invalid regular expression strings in the RegExp constructor
'no-invalid-regexp': 'error',
// disallow irregular whitespace outside of strings and comments
'no-irregular-whitespace': 'error',
// disallow literal numbers that lose precision
// 'no-loss-of-precision': 'error', // TODO
// disallow characters which are made with multiple code points in character class syntax
'no-misleading-character-class': 'error',
// disallow the use of object properties of the global object (Math and JSON) as functions
'no-obj-calls': 'error',
// disallow use of Object.prototypes builtins directly
'no-prototype-builtins': 'error',
// disallow multiple spaces in a regular expression literal
'no-regex-spaces': 'error',
// disallow returning values from setters
'no-setter-return': 'error',
// disallow sparse arrays
'no-sparse-arrays': 'error',
// disallow template literal placeholder syntax in regular strings
'no-template-curly-in-string': 'error',
// avoid code that looks like two expressions but is actually one
'no-unexpected-multiline': 'error',
// disallow negation of the left operand of an in expression
'no-unsafe-negation': 'error',
// disallow use of optional chaining in contexts where the `undefined` value is not allowed
'no-unsafe-optional-chaining': 'error',
// disallow loops with a body that allows only one iteration
'no-unreachable-loop': 'error',
// disallow useless backreferences in regular expressions
'no-useless-backreference': 'error',
// disallow comparisons with the value NaN
'use-isnan': 'error',
// disallow unreachable statements after a return, throw, continue, or break statement
'no-unreachable': 'error',
// ensure that the results of typeof are compared against a valid string
'valid-typeof': 'error',
// best practices:
// enforces return statements in callbacks of array's methods
'array-callback-return': 'error',
// enforce default clauses in switch statements to be last
'default-case-last': 'error',
// encourages use of dot notation whenever possible
'dot-notation': ['error', { allowKeywords: true }],
// enforce newline before and after dot
'dot-location': ['error', 'property'],
// disallow use of arguments.caller or arguments.callee
'no-caller': 'error',
// disallow lexical declarations in case/default clauses
'no-case-declarations': 'error',
// disallow duplicate conditions in if-else-if chains
'no-dupe-else-if': 'error',
// disallow empty functions, except for standalone funcs/arrows
'no-empty-function': 'error',
// disallow empty destructuring patterns
'no-empty-pattern': 'error',
// disallow use of eval()
'no-eval': 'error',
// disallow adding to native types
'no-extend-native': 'error',
// disallow unnecessary function binding
'no-extra-bind': 'error',
// disallow unnecessary labels
'no-extra-label': 'error',
// disallow fallthrough of case statements
'no-fallthrough': 'error',
// disallow the use of leading or trailing decimal points in numeric literals
'no-floating-decimal': 'error',
// disallow reassignments of native objects
'no-global-assign': 'error',
// disallow use of eval()-like methods
'no-implied-eval': 'error',
// disallow usage of __iterator__ property
'no-iterator': 'error',
// disallow use of labels for anything other then loops and switches
'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
// disallow unnecessary nested blocks
'no-lone-blocks': 'error',
// disallow function declarations and expressions inside loop statements
'no-loop-func': 'error',
// disallow use of multiple spaces
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
// disallow use of multiline strings
'no-multi-str': 'error',
// disallow use of new operator when not part of the assignment or comparison
'no-new': 'error',
// disallow use of new operator for Function object
'no-new-func': 'error',
// disallows creating new instances of String, Number, and Boolean
'no-new-wrappers': 'error',
// disallow use of (old style) octal literals
'no-octal': 'error',
// disallow `\8` and `\9` escape sequences in string literals
'no-nonoctal-decimal-escape': 'error',
// disallow use of octal escape sequences in string literals, such as var foo = 'Copyright \251';
'no-octal-escape': 'error',
// disallow usage of __proto__ property
'no-proto': 'error',
// disallow declaring the same variable more then once
'no-redeclare': 'error',
// disallow unnecessary calls to `.call()` and `.apply()`
'no-useless-call': 'error',
// disallow redundant return statements
'no-useless-return': 'error',
// disallow use of `javascript:` urls.
'no-script-url': 'error',
// disallow self assignment
'no-self-assign': 'error',
// disallow comparisons where both sides are exactly the same
'no-self-compare': 'error',
// disallow use of comma operator
'no-sequences': 'error',
// restrict what can be thrown as an exception
'no-throw-literal': 'error',
// disallow usage of expressions in statement position
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
// disallow unused labels
'no-unused-labels': 'error',
// disallow unnecessary catch clauses
'no-useless-catch': 'error',
// disallow useless string concatenation
'no-useless-concat': 'error',
// disallow unnecessary string escaping
'no-useless-escape': 'error',
// disallow void operators
'no-void': 'error',
// disallow use of the with statement
'no-with': 'error',
// require use of the second argument for parseInt()
radix: 'error',
// variables:
// disallow catch clause parameters from shadowing variables in the outer scope
'no-catch-shadow': 'error',
// disallow deletion of variables
'no-delete-var': 'error',
// disallow labels that share a name with a variable
'no-label-var': 'error',
// disallow declaration of variables already declared in the outer scope
'no-shadow': 'error',
// disallow shadowing of names such as arguments
'no-shadow-restricted-names': 'error',
// disallow use of undeclared variables unless mentioned in a /*global */ block
'no-undef': ['error'],
// disallow initializing variables to undefined
'no-undef-init': 'error',
// disallow declaration of variables that are not used in the code
'no-unused-vars': ['error', { vars: 'local', args: 'after-used', ignoreRestSiblings: true }],
// stylistic issues:
// enforce spacing inside array brackets
'array-bracket-spacing': ['error', 'never'],
// enforce spacing inside single-line blocks
'block-spacing': ['error', 'always'],
// enforce one true brace style
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
// require camel case names
camelcase: ['error', { properties: 'never' }],
// enforce trailing commas in multiline object literals
'comma-dangle': ['error', 'always-multiline'],
// enforce spacing after comma
'comma-spacing': 'error',
// enforce one true comma style
'comma-style': ['error', 'last', { exceptions: { VariableDeclaration: true } }],
// disallow padding inside computed properties
'computed-property-spacing': ['error', 'never'],
// enforce one newline at the end of files
'eol-last': ['error', 'always'],
// disallow space between function identifier and application
'func-call-spacing': 'error',
// this option sets a specific tab width for your code
'indent-legacy': ['error', 2, { VariableDeclarator: 2, SwitchCase: 1 }],
// require a space before & after certain keywords
'keyword-spacing': ['error', { before: true, after: true }],
// enforces spacing between keys and values in object literal properties
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
// enforce consistent linebreak style
'linebreak-style': ['error', 'unix'],
// specify the maximum length of a line in your program
'max-len': ['error', 120, 2],
// enforce a maximum depth that callbacks can be nested
'max-nested-callbacks': ['error', 4],
// specify the maximum number of statement allowed in a function
'max-statements': ['error', 40],
// require a capital letter for constructors
'new-cap': ['error', { newIsCap: true, capIsNew: false }],
// require parentheses when invoking a constructor with no arguments
'new-parens': 'error',
// disallow mixed spaces and tabs for indentation
'no-mixed-spaces-and-tabs': 'error',
// disallow multiple empty lines and only one newline at the end
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }],
// disallow tabs
'no-tabs': 'error',
// disallow trailing whitespace at the end of lines
'no-trailing-spaces': 'error',
// disallow the use of boolean literals in conditional expressions and prefer `a || b` over `a ? a : b`
'no-unneeded-ternary': ['error', { defaultAssignment: false }],
// disallow whitespace before properties
'no-whitespace-before-property': 'error',
// enforce the location of single-line statements
'nonblock-statement-body-position': ['error', 'beside'],
// enforce spaces inside braces
'object-curly-spacing': ['error', 'always'],
// require newlines around variable declarations with initializations
'one-var-declaration-per-line': ['error', 'initializations'],
// enforce padding within blocks
'padded-blocks': ['error', 'never'],
// specify whether double or single quotes should be used
quotes: ['error', 'single', 'avoid-escape'],
// require or disallow use of quotes around object literal property names
'quote-props': ['error', 'as-needed', { keywords: false }],
// require or disallow use of semicolons instead of ASI
semi: ['error', 'always'],
// enforce spacing before and after semicolons
'semi-spacing': 'error',
// enforce location of semicolons
'semi-style': ['error', 'last'],
// require or disallow space before blocks
'space-before-blocks': 'error',
// require or disallow space before function opening parenthesis
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never' }],
// require or disallow spaces inside parentheses
'space-in-parens': 'error',
// require spaces around operators
'space-infix-ops': 'error',
// Require or disallow spaces before/after unary operators
'space-unary-ops': 'error',
// require or disallow a space immediately following the // or /* in a comment
'spaced-comment': ['error', 'always', { line: { exceptions: ['/'] }, block: { exceptions: ['*'] } }],
// enforce spacing around colons of switch statements
'switch-colon-spacing': 'error',
// require or disallow the Unicode Byte Order Mark
'unicode-bom': ['error', 'never'],
// import:
// ensure all imports appear before other statements
'import/first': 'error',
// forbid AMD imports
'import/no-amd': 'error',
// forbid cycle dependencies
'import/no-cycle': ['error', { commonjs: true }],
// ensure imports point to files / modules that can be resolved
'import/no-unresolved': ['error', { commonjs: true }],
// forbid import of modules using absolute paths
'import/no-absolute-path': 'error',
// forbid `require()` calls with expressions
'import/no-dynamic-require': 'error',
// disallow importing from the same path more than once
'import/no-duplicates': 'error',
// forbid a module from importing itself
'import/no-self-import': 'error',
// forbid useless path segments
'import/no-useless-path-segments': 'error',
// node:
// enforce the style of file extensions in `import` declarations
'node/file-extension-in-import': ['error', 'never'],
// require require() calls to be placed at top-level module scope
'node/global-require': 'error',
// disallow the assignment to `exports`
'node/no-exports-assign': 'error',
// disallow require calls to be mixed with regular variable declarations
'node/no-mixed-requires': ['error', { grouping: true, allowCall: false }],
// disallow new operators with calls to require
'node/no-new-require': 'error',
// disallow string concatenation with `__dirname` and `__filename`
'node/no-path-concat': 'error',
// es6+:
// require parentheses around arrow function arguments
'arrow-parens': ['error', 'as-needed'],
// enforce consistent spacing before and after the arrow in arrow functions
'arrow-spacing': 'error',
// enforce the location of arrow function bodies
'implicit-arrow-linebreak': ['error', 'beside'],
// disallow unnecessary computed property keys in object literals
'no-useless-computed-key': 'error',
// disallow unnecessary constructors
'no-useless-constructor': 'error',
// require let or const instead of var
'no-var': 'error',
// disallow renaming import, export, and destructured assignments to the same name
'no-useless-rename': 'error',
// require or disallow method and property shorthand syntax for object literals
'object-shorthand': 'error',
// require using arrow functions for callbacks
'prefer-arrow-callback': 'error',
// require const declarations for variables that are never reassigned after declared
'prefer-const': ['error', { destructuring: 'all' }],
// require destructuring from arrays and/or objects
'prefer-destructuring': 'error',
// prefer the exponentiation operator over `Math.pow()`
'prefer-exponentiation-operator': 'error',
// require template literals instead of string concatenation
'prefer-template': 'error',
// enforce spacing between rest and spread operators and their expressions
'rest-spread-spacing': 'error',
// require or disallow spacing around embedded expressions of template strings
'template-curly-spacing': ['error', 'always'],
// require strict mode directives
strict: ['error', 'global'],
// unicorn
// enforce the use of regex shorthands to improve readability
'unicorn/better-regex': 'error',
// enforce a specific parameter name in catch clauses
'unicorn/catch-error-name': ['error', { name: 'error', ignore: [/^err/] }],
// enforce passing a message value when throwing a built-in error
'unicorn/error-message': 'error',
// require escape sequences to use uppercase values
'unicorn/escape-case': 'error',
// enforce a case style for filenames
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
// enforce importing index files with `.`
'unicorn/import-index': 'error',
// enforce specifying rules to disable in eslint-disable comments
'unicorn/no-abusive-eslint-disable': 'error',
// do not use leading/trailing space between `console.log` parameters
'unicorn/no-console-spaces': 'error',
// enforce the use of unicode escapes instead of hexadecimal escapes
'unicorn/no-hex-escape': 'error',
// disallow if as the only statement in an else block
'unicorn/no-lonely-if': 'error',
// disallow unreadable array destructuring
'unicorn/no-unreadable-array-destructuring': 'error',
// disallow unsafe regular expressions
'unicorn/no-unsafe-regex': 'error',
// disallow unused object properties
'unicorn/no-unused-properties': 'error',
// enforce lowercase identifier and uppercase value for number literals
'unicorn/number-literal-case': 'error',
// prefer default parameters over reassignment
'unicorn/prefer-default-parameters': 'error',
// prefer `String#slice` over `String#{ substr, substring }`
'unicorn/prefer-string-slice': 'error',
// optimize regex literals
'optimize-regex/optimize-regex': 'error',
// sonarjs
// merging collapsible if statements increases the code's readability
'sonarjs/no-collapsible-if': 'error',
// collection sizes and array length comparisons should make sense
'sonarjs/no-collection-size-mischeck': 'error',
// two branches in a conditional structure should not have exactly the same implementation
'sonarjs/no-duplicated-branches': 'error',
// collection elements should not be replaced unconditionally
'sonarjs/no-element-overwrite': 'error',
// function calls should not pass extra arguments
'sonarjs/no-extra-arguments': 'error',
// functions should not have identical implementations
'sonarjs/no-identical-functions': 'error',
// boolean checks should not be inverted
'sonarjs/no-inverted-boolean-check': 'error',
// loops with at most one iteration should be refactored
'sonarjs/no-one-iteration-loop': 'error',
// boolean literals should not be redundant
'sonarjs/no-redundant-boolean': 'error',
// jump statements should not be redundant
'sonarjs/no-redundant-jump': 'error',
// conditionals should start on new lines
'sonarjs/no-same-line-conditional': 'error',
// collection and array contents should be used
'sonarjs/no-unused-collection': 'error',
// the output of functions that don't return anything should not be used
'sonarjs/no-use-of-empty-return-value': 'error',
// local variables should not be declared and then immediately returned or thrown
'sonarjs/prefer-immediate-return': 'error',
// object literal syntax should be used
'sonarjs/prefer-object-literal': 'error',
// return of boolean expressions should not be wrapped into an `if-then-else` statement
'sonarjs/prefer-single-boolean-return': 'error',
// a `while` loop should be used instead of a `for` loop with condition only
'sonarjs/prefer-while': 'error',
};
const es3 = {
// disallow trailing commas in multiline object literals
'comma-dangle': ['error', 'never'],
// encourages use of dot notation whenever possible
'dot-notation': ['error', { allowKeywords: false }],
// disallow function or variable declarations in nested blocks
'no-inner-declarations': 'error',
// require let or const instead of var
'no-var': 'off',
// require or disallow method and property shorthand syntax for object literals
'object-shorthand': 'off',
// require using arrow functions for callbacks
'prefer-arrow-callback': 'off',
// require const declarations for variables that are never reassigned after declared
'prefer-const': 'off',
// require destructuring from arrays and/or objects
'prefer-destructuring': 'off',
// prefer the exponentiation operator over `Math.pow()`
'prefer-exponentiation-operator': 'off',
// require template literals instead of string concatenation
'prefer-template': 'off',
// require or disallow use of quotes around object literal property names
'quote-props': ['error', 'as-needed', { keywords: true }],
// require strict mode directives
strict: 'off',
// prefer default parameters over reassignment
'unicorn/prefer-default-parameters': 'off',
};
const node = {
// disallow deprecated APIs
'node/no-deprecated-api': 'error',
// disallow unsupported ECMAScript built-ins on the specified version
'node/no-unsupported-features/es-builtins': ['error', { version: SUPPORTED_NODE_VERSIONS }],
// disallow unsupported ECMAScript syntax on the specified version
'node/no-unsupported-features/es-syntax': ['error', { version: SUPPORTED_NODE_VERSIONS }],
};
const tests = {
// require strict mode directives
strict: 'off',
// relax for testing:
// enforces return statements in callbacks of array's methods
'array-callback-return': 'off',
// specify the maximum length of a line in your program
'max-len': ['error', 180, 2],
// specify the maximum number of statement allowed in a function
'max-statements': 'off',
// disallow function declarations and expressions inside loop statements
'no-loop-func': 'off',
// disallow use of new operator when not part of the assignment or comparison
'no-new': 'off',
// disallow use of new operator for Function object
'no-new-func': 'off',
// disallows creating new instances of String, Number, and Boolean
'no-new-wrappers': 'off',
// restrict what can be thrown as an exception
'no-throw-literal': 'off',
// disallow usage of expressions in statement position
'no-unused-expressions': 'off',
// disallow unnecessary calls to `.call()` and `.apply()`
'no-useless-call': 'off',
// enforce passing a message value when throwing a built-in error
'unicorn/error-message': 'off',
// functions should not have identical implementations
'sonarjs/no-identical-functions': 'off',
};
const qunit = {
// ensure the correct number of assert arguments is used
'qunit/assert-args': 'error',
// forbid the use of assert.equal
'qunit/no-assert-equal': 'error',
// require use of boolean assertions
'qunit/no-assert-equal-boolean': 'error',
// forbid binary logical expressions in assert arguments
'qunit/no-assert-logical-expression': 'error',
// forbid async calls in loops
'qunit/no-async-in-loops': 'error',
// forbid the use of asyncTest
'qunit/no-async-test': 'error',
// forbid commented tests
'qunit/no-commented-tests': 'error',
// forbid comparing relational expression to boolean in assertions
'qunit/no-compare-relation-boolean': 'error',
// prevent early return in a qunit test
'qunit/no-early-return': 'error',
// forbid the use of global qunit assertions
'qunit/no-global-assertions': 'error',
// forbid the use of global expect
'qunit/no-global-expect': 'error',
// forbid the use of global module / test / asyncTest
'qunit/no-global-module-test': 'error',
// forbid use of global stop / start
'qunit/no-global-stop-start': 'error',
// forbid identical test and module names
'qunit/no-identical-names': 'error',
// forbid use of QUnit.init
'qunit/no-init': 'error',
// forbid use of QUnit.jsDump
'qunit/no-jsdump': 'error',
// forbid QUnit.test() calls inside callback of another QUnit.test
'qunit/no-nested-tests': 'error',
// forbid equality comparisons in assert.{ok, notOk}
'qunit/no-ok-equality': 'error',
// forbid the use of QUnit.push
'qunit/no-qunit-push': 'error',
// forbid QUnit.start within tests or test hooks
'qunit/no-qunit-start-in-tests': 'error',
// forbid the use of QUnit.stop
'qunit/no-qunit-stop': 'error',
// forbid overwriting of QUnit logging callbacks
'qunit/no-reassign-log-callbacks': 'error',
// forbid use of QUnit.reset
'qunit/no-reset': 'error',
// forbid setup / teardown module hooks
'qunit/no-setup-teardown': 'error',
// forbid expect argument in QUnit.test
'qunit/no-test-expect-argument': 'error',
// forbid assert.throws() with block, string, and message
'qunit/no-throws-string': 'error',
// require that all async calls should be resolved in tests
'qunit/resolve-async': 'error',
};
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2021,
},
env: {
browser: true,
node: true,
worker: true,
},
plugins: [
'import',
'node',
'optimize-regex',
'qunit',
'sonarjs',
'unicorn',
],
settings: {
'import/resolver': {
webpack: {
config: webpack.options,
},
},
},
reportUnusedDisableDirectives: true,
rules: base,
overrides: [
{
files: [
'packages/core-js/**',
'packages/core-js-pure/**',
'tests/promises-aplus/**',
'tests/compat/**',
],
parserOptions: {
ecmaVersion: 3,
},
rules: es3,
},
{
files: [
'tests/helpers/**',
'tests/pure/**',
'tests/tests/**',
'tests/wpt-url-resources/**',
'tests/commonjs.js',
'tests/commonjs-entries-content.js',
'tests/targets-parser.js',
],
parserOptions: {
sourceType: 'module',
},
rules: tests,
},
{
files: [
'tests/helpers/**',
'tests/pure/**',
'tests/tests/**',
],
env: {
qunit: true,
},
rules: qunit,
},
{
files: [
'packages/core-js-builder/**',
'packages/core-js-compat/**',
'tests/commonjs.js',
'tests/commonjs-entries-content.js',
'tests/targets-parser.js',
'.eslintrc.js',
'.webpack.config.js',
'babel.config.js',
'Gruntfile.js',
],
env: {
es6: true,
},
rules: node,
},
{
files: [
'tests/tests/**',
'tests/compat/**',
],
env: {
es6: true,
},
globals: {
compositeKey: true,
compositeSymbol: true,
globalThis: true,
queueMicrotask: true,
AggregateError: true,
AsyncIterator: true,
Iterator: true,
Observable: true,
},
},
],
};
core-js-3.8.2/.gitattributes 0000664 0000000 0000000 00000000015 13774351224 0015765 0 ustar 00root root 0000000 0000000 * text eol=lf core-js-3.8.2/.github/ 0000775 0000000 0000000 00000000000 13774351224 0014436 5 ustar 00root root 0000000 0000000 core-js-3.8.2/.github/FUNDING.yml 0000664 0000000 0000000 00000000101 13774351224 0016243 0 ustar 00root root 0000000 0000000 open_collective: core-js
patreon: zloirock
tidelift: npm/core-js
core-js-3.8.2/.github/workflows/ 0000775 0000000 0000000 00000000000 13774351224 0016473 5 ustar 00root root 0000000 0000000 core-js-3.8.2/.github/workflows/lint.yml 0000664 0000000 0000000 00000001317 13774351224 0020166 0 ustar 00root root 0000000 0000000 name: eslint
on: [push, pull_request]
jobs:
build:
name: eslint
strategy:
matrix:
os: [ubuntu-latest]
node: [14.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
core-js-3.8.2/.github/workflows/tests.yml 0000664 0000000 0000000 00000001671 13774351224 0020365 0 ustar 00root root 0000000 0000000 name: tests
on: [push, pull_request]
jobs:
build:
name: tests
strategy:
matrix:
os: [
'ubuntu-latest',
'windows-latest',
'macos-latest',
]
node: [
'10.13',
'12.13',
'14.15',
# '15' temporarily disabled because of npm@7 bug https://github.com/npm/cli/issues/1865
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Tests
run: npm run ci
core-js-3.8.2/.gitignore 0000664 0000000 0000000 00000001712 13774351224 0015067 0 ustar 00root root 0000000 0000000 npm-shrinkwrap.json
package-lock.json
yarn.lock
node_modules/
*.tmp
*.log
*.bak
*.swp
/packages/core-js/LICENSE
/packages/core-js-builder/LICENSE
/packages/core-js-bundle/LICENSE
/packages/core-js-bundle/index.js
/packages/core-js-bundle/minified.js
/packages/core-js-bundle/minified.js.map
/packages/core-js-bundle/postinstall.js
/packages/core-js-compat/LICENSE
/packages/core-js-compat/data.json
/packages/core-js-compat/entries.json
/packages/core-js-compat/external.json
/packages/core-js-compat/modules.json
/packages/core-js-compat/modules-by-versions.json
/packages/core-js-pure/es/
/packages/core-js-pure/features/
/packages/core-js-pure/internals/
/packages/core-js-pure/modules/
/packages/core-js-pure/proposals/
/packages/core-js-pure/stable/
/packages/core-js-pure/stage/
/packages/core-js-pure/web/
/packages/core-js-pure/LICENSE
/packages/core-js-pure/index.js
/packages/core-js-pure/configurator.js
/packages/core-js-pure/postinstall.js
/tests/bundles/
core-js-3.8.2/.npmrc 0000664 0000000 0000000 00000000023 13774351224 0014211 0 ustar 00root root 0000000 0000000 package-lock=false
core-js-3.8.2/.webpack.config.js 0000664 0000000 0000000 00000002033 13774351224 0016370 0 ustar 00root root 0000000 0000000 'use strict';
const resolve = require('path').resolve;
module.exports = {
options: {
mode: 'none',
module: {
rules: [{
test: /\.js$/,
exclude: /modules/,
use: {
loader: 'babel-loader',
},
}],
},
resolve: {
alias: {
'core-js': resolve(__dirname, './packages/core-js'),
'core-js-pure': resolve(__dirname, './packages/core-js-pure'),
},
},
node: {
global: false,
process: false,
setImmediate: false,
},
stats: false,
output: {
path: resolve(__dirname, './tests/bundles'),
},
},
helpers: {
entry: './tests/helpers/qunit-helpers.js',
output: { filename: 'qunit-helpers.js' },
},
pure: {
entry: './tests/pure/index.js',
output: { filename: 'pure.js' },
},
tests: {
entry: './tests/tests/index.js',
output: { filename: 'tests.js' },
},
'promises-aplus-tests': {
entry: 'promises-aplus-tests/lib/testFiles.js',
output: { filename: 'promises-aplus.js' },
},
};
core-js-3.8.2/CHANGELOG.md 0000664 0000000 0000000 00000235545 13774351224 0014725 0 ustar 00root root 0000000 0000000 ## Changelog
##### Unreleased
- Nothing
##### 3.8.2 - 2021.01.03
- Fixed handling of special replacements patterns in `String#replaceAll`, [#900](https://github.com/zloirock/core-js/issues/900)
- Fixed iterators dependencies of `Promise.any` and `Promise.allSettled` entries
- Fixed microtask implementation on WebOS, [#898](https://github.com/zloirock/core-js/issues/898), [#901](https://github.com/zloirock/core-js/issues/901)
##### 3.8.1 - 2020.12.06
- Fixed work of new `%TypedArray%` methods on `BigInt` arrays
- Added ESNext methods to ES3 workaround for `Number` constructor wrapper
##### 3.8.0 - 2020.11.26
- Added [relative indexing method stage 3 proposal](https://github.com/tc39/proposal-relative-indexing-method)
- `Array#at`
- `%TypedArray%#at`
- Added [`Number.range` stage 1 proposal](https://github.com/tc39/proposal-Number.range)
- `Number.range`
- `BigInt.range`
- Added [array filtering stage 1 proposal](https://github.com/tc39/proposal-array-filtering)
- `Array#filterOut`
- `%TypedArray%#filterOut`
- Added [array deduplication stage 1 proposal](https://github.com/tc39/proposal-array-unique)
- `Array#uniqueBy`
- Added code points / code units explicit feature detection in `String#at` for preventing breakage code which use obsolete `String#at` proposal polyfill
- Added the missed `(es|stable)/instance/replace-all` entries
- Updated compat data mapping for Opera - from Opera 69, the difference with Chrome versions increased to 14
- Compat data mapping for modern Android WebView to Chrome moved from targets parser directly to compat data
- Depracate `core-js-builder` `blacklist` option in favor of `exclude`
##### 2.6.12 [LEGACY] - 2020.11.26
- Added code points / code units explicit feature detection in `String#at` for preventing breakage code which use obsolete `String#at` proposal polyfill
- Added `OPEN_SOURCE_CONTRIBUTOR` detection in `postinstall`
- Added Drone CI detection in `postinstall`
##### 3.7.0 - 2020.11.06
- `String#replaceAll` moved to the stable ES, [per June TC39 meeting](https://github.com/tc39/notes/blob/master/meetings/2020-06/june-2.md#stringprototypereplaceall-for-stage-4)
- `Promise.any` and `AggregateError` moved to the stable ES, [per July TC39 meeting](https://github.com/tc39/notes/blob/master/meetings/2020-07/july-21.md#promiseany--aggregateerror-for-stage-4)
- Added `Reflect[@@toStringTag]`, [per July TC39 meeting](https://github.com/tc39/ecma262/pull/2057)
- Forced replacement of `Array#{ reduce, reduceRight }` in Chrome 80-82 because of [a bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1049982), [#766](https://github.com/zloirock/core-js/issues/766)
- Following the changes in [the `upsert` proposal](https://github.com/tc39/proposal-upsert), `{ Map, WeakMap }#emplace` replace `{ Map, WeakMap }#upsert`, these obsolete methods will be removed in the next major release
- [By the current spec](https://tc39.es/ecma262/#sec-aggregate-error-constructor), `AggregateError#errors` is own data property
- Added correct iteration closing in the iteration helpers according to the current version of [the proposal](https://tc39.es/proposal-iterator-helpers)
- `process.nextTick` have a less priority when `Promise` in the microtask implementation, [#855](https://github.com/zloirock/core-js/issues/855)
- Fixed microtask implementation in engines with `MutationObserver`, but without `document`, [#865](https://github.com/zloirock/core-js/issues/865), [#866](https://github.com/zloirock/core-js/issues/866)
- Fixed `core-js-builder` with an empty (after the targets engines or another filtration) modules list, [#822](https://github.com/zloirock/core-js/issues/822)
- Fixed possible twice call of `window.onunhandledrejection`, [#760](https://github.com/zloirock/core-js/issues/760)
- Fixed some possible problems related multiple global copies of `core-js`, [#880](https://github.com/zloirock/core-js/issues/880)
- Added a workaround for 3rd party `Reflect.set` polyfill bug, [#847](https://github.com/zloirock/core-js/issues/847)
- Updated compat data:
- Chrome up to 86
- FF up to 82
- Safari up to 14
- Updated compat data mapping:
- iOS up to 14
- NodeJS up to 15.0
- Electron up to 11.0
- Samsung Internet up to 13.0
- Opera Android up to 60
- The rest automatically
- Updated all required dependencies
##### 3.6.5 - 2020.04.09
- Updated Browserlist [#755](https://github.com/zloirock/core-js/issues/755)
- Fixed `setImmediate` in Safari [#770](https://github.com/zloirock/core-js/issues/770), thanks [@dtinth](https://github.com/dtinth)
- Fixed some regexp, thanks [@scottarc](https://github.com/scottarc)
- Added OPEN_SOURCE_CONTRIBUTOR detection in `postinstall`, thanks [@scottarc](https://github.com/scottarc)
- Added Drone CI in `postinstall` CI detection [#781](https://github.com/zloirock/core-js/issues/781)
##### 3.6.4 - 2020.01.14
- Prevented a possible almost infinite loop in non-standard implementations of some backward iteration array methods
##### 3.6.3 - 2020.01.11
- Fixed replacement of substitutes of undefined capture groups in `.replace` in Safari 13.0-, [#471](https://github.com/zloirock/core-js/issues/471), [#745](https://github.com/zloirock/core-js/issues/745), thanks [@mattclough1](https://github.com/mattclough1)
- Improved compat data for old engines
##### 3.6.2 - 2020.01.07
- Fixed early implementations of `Array#{ every, forEach, includes, indexOf, lastIndexOf, reduce, reduceRight, slice, some, splice }` for the usage of `ToLength`
- Added `RegExp#exec` dependency to methods which depends on the correctness of logic of this method (`3.6.0-3.6.1` issue), [#741](https://github.com/zloirock/core-js/issues/741)
- Refactored some internals
##### 3.6.1 - 2019.12.25
- Fixed a bug related `Symbol` with multiple copies of `core-js` (for `3.4.2-3.6.0`), [#736](https://github.com/zloirock/core-js/issues/736)
- Refactored some tools
##### 3.6.0 - 2019.12.19
- Added support of sticky (`y`) `RegExp` flag, [#372](https://github.com/zloirock/core-js/issues/372), [#732](https://github.com/zloirock/core-js/issues/732), [#492](https://github.com/zloirock/core-js/issues/492), thanks [@cvle](https://github.com/cvle) and [@nicolo-ribaudo](https://github.com/nicolo-ribaudo)
- Added `RegExp#test` delegation to `RegExp#exec`, [#732](https://github.com/zloirock/core-js/issues/732), thanks [@cvle](https://github.com/cvle)
- Fixed some cases of `Object.create(null)` in IE8-, [#727](https://github.com/zloirock/core-js/issues/727), [#728](https://github.com/zloirock/core-js/issues/728), thanks [@aleen42](https://github.com/aleen42)
- Allowed object of minimum environment versions as `core-js-compat` and `core-js-builder` `targets` argument
- Allowed corresponding to Babel `targets.esmodules`, `targets.browsers`, `targets.node` options in `core-js-compat` and `core-js-builder`
- Engines in compat data and results of targets parsing sorted alphabetically
- Fixed `features/instance/match-all` entry compat data
- Fixed `Array.prototype[@@unscopables]` descriptor (was writable)
- Added Samsung Internet 11 compat data mapping
##### 3.5.0 - 2019.12.12
- Added [object iteratoration stage 1 proposal](https://github.com/tc39/proposal-object-iteration):
- `Object.iterateKeys`
- `Object.iterateValues`
- `Object.iterateEntries`
##### 3.4.8 - 2019.12.09
- Added one more workaround for broken in previous versions `inspectSource` helper, [#719](https://github.com/zloirock/core-js/issues/719)
- Added Opera Mobile compat data
- Updated Samsung Internet, iOS, old Node and Android compat data mapping
- `es.string.match-all` marked as completely supported in FF73
- Generate `core-js-compat/modules` since often we need just the list of `core-js` modules
##### 2.6.11 [LEGACY] - 2019.12.09
- Returned usage of `node -e` in the `postinstall` scripts for better cross-platform compatibility, [#582](https://github.com/zloirock/core-js/issues/582)
- Improved CI detection in the `postinstall` script, [#707](https://github.com/zloirock/core-js/issues/707)
##### 3.4.7 - 2019.12.03
- Fixed an NPM publishing issue
##### 3.4.6 - 2019.12.03
- Improved iOS compat data - added missed mapping iOS 12.2 -> Safari 12.1, added bug fixes from patch releases
- Added Safari 13.1 compat data
- Added missed in `core-js-compat` helpers `ie_mob` normalization
- Normalize the result of `getModulesListForTargetVersion` `core-js-compat` helper
- Improved CI detection in the `postinstall` script, [#707](https://github.com/zloirock/core-js/issues/707)
##### 3.4.5 - 2019.11.28
- Detect incorrect order of operations in `Object.assign`, MS Edge bug
- Detect usage of `ToLength` in `Array#{ filter, map }`, FF48-49 and MS Edge 14- issues
- Detect incorrect MS Edge 17-18 `Reflect.set` which allows setting the property to object with non-writable property on the prototype
- Fixed `inspectSource` helper with multiple `core-js` copies and some related features like some edge cases of `Promise` feature detection
##### 3.4.4 - 2019.11.27
- Added feature detection for Safari [non-generic `Promise#finally` bug](https://bugs.webkit.org/show_bug.cgi?id=200829) **(critical for `core-js-pure`)**
- Fixed missed `esnext.string.code-points` in `core-js/features/string` entry point
- Updated `Iterator` proposal feature detection for the case of non-standard `Iterator` in FF44-
##### 3.4.3 - 2019.11.26
- Fixed missed `es.json.stringify` and some modules from iteration helpers proposal in some entry points **(includes the root entry point)**
- Added a workaround of `String#{ endsWith, startsWith }` MDN polyfills bugs, [#702](https://github.com/zloirock/core-js/issues/702)
- Fixed `.size` property descriptor of `Map` / `Set` in the pure version
- Refactoring, some internal improvements
##### 3.4.2 - 2019.11.22
- Don't use polyfilled symbols as internal uids, a workaround for some incorrect use cases
- `String#replaceAll` is available only in nightly FF builds
- Improved `Promise` feature detection for the case of V8 6.6 with multiple `core-js` copies
- Some internals optimizations
- Added Node 13.2 -> V8 7.9 compat data mapping
- Returned usage of `node -e` in `postinstall` scripts
##### 3.4.1 - 2019.11.12
- Throw when `(Async)Iterator#flatMap` mapper returns a non-iterable, per [tc39/proposal-iterator-helpers/55](https://github.com/tc39/proposal-iterator-helpers/issues/55) and [tc39/proposal-iterator-helpers/59](https://github.com/tc39/proposal-iterator-helpers/pull/59)
- Removed own `AggregateError#toString`, per [tc39/proposal-promise-any/49](https://github.com/tc39/proposal-promise-any/pull/49)
- Global `core-js` `Promise` polyfill passes feature detection in the pure versions
- Fixed indexes in `String#replaceAll` callbacks
- `String#replaceAll` marked as supported by FF72
##### 3.4.0 - 2019.11.07
- Added [well-formed `JSON.stringify`](https://github.com/tc39/proposal-well-formed-stringify), ES2019 feature, thanks [@ExE-Boss](https://github.com/ExE-Boss) and [@WebReflection](https://github.com/WebReflection) for the idea
- Fixed `Math.signbit`, [#687](https://github.com/zloirock/core-js/issues/687), thanks [@chicoxyzzy](https://github.com/chicoxyzzy)
##### 3.3.6 - 2019.11.01
- Don't detect Chakra-based Edge as Chrome in the `userAgent` parsing
- Fixed inheritance in typed array constructors wrappers, [#683](https://github.com/zloirock/core-js/issues/683)
- Added one more workaround for correct work of early `fetch` implementations with polyfilled `URLSearchParams`, [#680](https://github.com/zloirock/core-js/issues/680)
##### 3.3.5 - 2019.10.29
- Added a workaround of V8 deoptimization which causes serious performance degradation (~4x in my tests) of `Array#concat`, [#679](https://github.com/zloirock/core-js/issues/679)
- Added a workaround of V8 deoptimization which causes slightly performance degradation of `Promise`, [#679](https://github.com/zloirock/core-js/issues/679)
- Added `(Async)Iterator.prototype.constructor -> (Async)Iterator` per [this issue](https://github.com/tc39/proposal-iterator-helpers/issues/60)
- Added compat data for Chromium-based Edge
##### 3.3.4 - 2019.10.25
- Added a workaround of V8 deoptimization which causes serious performance degradation (~20x in my tests) of some `RegExp`-related methods like `String#split`, [#306](https://github.com/zloirock/core-js/issues/306)
- Added a workaround of V8 deoptimization which causes serious performance degradation (up to 100x in my tests) of `Array#splice` and slightly `Array#{ 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)
- Fixed an edge case of `String#replaceAll` with an empty search value
- Added compat data for Chrome 80
- `package-lock.json` no longer generated in libraries
##### 3.3.3 - 2019.10.22
- `gopher` removed from `URL` special cases per [this issue](https://github.com/whatwg/url/issues/342) and [this PR](https://github.com/whatwg/url/pull/453)
- Added compat data for iOS 13 and Node 13.0
##### 3.3.2 - 2019.10.14
- Fixed compatibility of `core-js-compat` with Node 6 and Yarn, [#669](https://github.com/zloirock/core-js/issues/669)
##### 3.3.1 - 2019.10.13
- Fixed an NPM publishing issue
##### 3.3.0 - 2019.10.13
- **`String#{ matchAll, replaceAll }` throws an error on non-global regex argument per [the decision from TC39 meetings](https://github.com/tc39/ecma262/pull/1716) (+ [this PR](https://github.com/tc39/proposal-string-replaceall/pull/24)). It's a breaking change, but since it's a breaking change in the ES spec, it's added at the minor release**
- `globalThis` moved to stable ES, [per October TC39 meeting](https://github.com/babel/proposals/issues/60#issuecomment-537217903)
- `Promise.any` moved to stage 3, some minor internal changes, [per October TC39 meeting](https://github.com/babel/proposals/issues/60#issuecomment-538084885)
- `String#replaceAll` moved to stage 3, [per October TC39 meeting](https://github.com/babel/proposals/issues/60#issuecomment-537530013)
- Added [iterator helpers stage 2 proposal](https://github.com/tc39/proposal-iterator-helpers):
- `Iterator`
- `Iterator.from`
- `Iterator#asIndexedPairs`
- `Iterator#drop`
- `Iterator#every`
- `Iterator#filter`
- `Iterator#find`
- `Iterator#flatMap`
- `Iterator#forEach`
- `Iterator#map`
- `Iterator#reduce`
- `Iterator#some`
- `Iterator#take`
- `Iterator#toArray`
- `Iterator#@@toStringTag`
- `AsyncIterator`
- `AsyncIterator.from`
- `AsyncIterator#asIndexedPairs`
- `AsyncIterator#drop`
- `AsyncIterator#every`
- `AsyncIterator#filter`
- `AsyncIterator#find`
- `AsyncIterator#flatMap`
- `AsyncIterator#forEach`
- `AsyncIterator#map`
- `AsyncIterator#reduce`
- `AsyncIterator#some`
- `AsyncIterator#take`
- `AsyncIterator#toArray`
- `AsyncIterator#@@toStringTag`
- Updated `Map#upsert` (`Map#updateOrInsert` before) [proposal](https://github.com/thumbsupep/proposal-upsert)
- Moved to stage 2, [per October TC39 meeting](https://github.com/babel/proposals/issues/60#issuecomment-537606117)
- `Map#updateOrInsert` renamed to `Map#upsert`
- Added `WeakMap#upsert`
- You can don't pass one of the callbacks
- Added a workaround for iOS Safari MessageChannel + bfcache bug, [#624](https://github.com/zloirock/core-js/issues/624)
- Added a workaround for Chrome 33 / Android 4.4.4 `Promise` bug, [#640](https://github.com/zloirock/core-js/issues/640)
- Replaced broken `URL` constructor in Safari and `URLSearchParams` in Chrome 66-, [#656](https://github.com/zloirock/core-js/issues/656)
- Added compat data for Node up to 12.11, FF 69, Samsung up to 10.2 and Phantom 1.9
- `Math.hypot` marked as not supported in Chrome 77 since [a bug in this method](https://bugs.chromium.org/p/v8/issues/detail?id=9546) was not fixed before the stable Chrome 77 release
- Fixed unnecessary exposing on `Symbol.matchAll` in `esnext.string.match-all`, [#626](https://github.com/zloirock/core-js/issues/626)
- Fixed missed cases [access the `.next` method once, at the beginning, of the iteration protocol](https://github.com/tc39/ecma262/issues/976)
- Show similar `postinstall` messages only once per `npm i`, [#597](https://github.com/zloirock/core-js/issues/597), thanks [@remy](https://github.com/remy)
##### 2.6.10 [LEGACY] - 2019.10.13
- Show similar `postinstall` messages only once per `npm i`, [#597](https://github.com/zloirock/core-js/issues/597)
##### 3.2.1 - 2019.08.12
- Added a workaround for possible recursion in microtasks caused by conflicts with other `Promise` polyfills, [#615](https://github.com/zloirock/core-js/issues/615)
##### 3.2.0 - 2019.08.09
- `Promise.allSettled` moved to stable ES, per July TC39 meeting
- `Promise.any` moved to stage 2, `.errors` property of `AggregateError` instances maked non-enumerable, per July TC39 meeting
- `using` statement proposal moved to stage 2, added `Symbol.asyncDispose`, per July TC39 meeting
- Added `Array.isTemplateObject` [stage 2 proposal](https://github.com/tc39/proposal-array-is-template-object), per June TC39 meeting
- Added `Map#updateOrInsert` [stage 1 proposal](https://docs.google.com/presentation/d/1_xtrGSoN1-l2Q74eCXPHBbbrBHsVyqArWN0ebnW-pVQ/), per July TC39 meeting
- Added a fix for [`Math.hypot` V8 7.7 bug](https://bugs.chromium.org/p/v8/issues/detail?id=9546), since it's still not stable without adding results to `core-js-compat`
- Added a workaround for APIs where not possible to replace broken native `Promise`, [#579](https://github.com/zloirock/core-js/issues/579) - added `.finally` and patched `.then` to / on native `Promise` prototype
- Fixed crashing of Opera Presto, [#595](https://github.com/zloirock/core-js/issues/595)
- Fixed incorrect early breaking of `{ Map, Set, WeakMap, WeakSet }.deleteAll`
- Fixed some missed dependencies in entry points
- Added compat data for Node 12.5, FF 67, Safari 13
- Added support of `DISABLE_OPENCOLLECTIVE` env variable to `postinstall` script
- Removed `core-js-pure` dependency from `core-js-compat`, [#590](https://github.com/zloirock/core-js/issues/590)
- Fixed generation of `core-js-compat` on Windows, [#606](https://github.com/zloirock/core-js/issues/606)
##### 3.1.4 - 2019.06.15
- Refactoring. Many minor internal improvements and fixes like:
- Improved `Symbol.keyFor` complexity to `O(1)`
- Fixed the order of arguments validation in `String.prototype.{ endsWith, includes, startsWith }`
- Internal implementation of `RegExp#flags` helper now respect `dotAll` flag (mainly ralated to the `pure` version)
- Performace optimizations related old V8
- Etc.
##### 3.1.3 - 2019.05.27
- Fixed `core-js/features/reflect/delete-metadata` entry point
- Some fixes and improvements of the `postinstall` script like support `npm` color config ([#556](https://github.com/zloirock/core-js/issues/556)) or adding support of `ADBLOCK` env variable
- Refactoring and some minor fixes
##### 2.6.9 [LEGACY] - 2019.05.27
- Some fixes and improvements of the `postinstall` script like support `npm` color config ([#556](https://github.com/zloirock/core-js/issues/556)) or adding support of `ADBLOCK` env variable
##### 3.1.2 - 2019.05.22
- Added a workaround of a strange `npx` bug on `postinstall`, [#551](https://github.com/zloirock/core-js/issues/551)
##### 2.6.8 [LEGACY] - 2019.05.22
- Added a workaround of a strange `npx` bug on `postinstall`, [#551](https://github.com/zloirock/core-js/issues/551)
##### 3.1.1 - 2019.05.21
- Added one more workaround of alternative not completely correct `Symbol` polyfills, [#550](https://github.com/zloirock/core-js/issues/550), [#554](https://github.com/zloirock/core-js/issues/554)
- Reverted `esnext.string.match-all` in some entry points for fix autogeneration of `core-js-compat/entries` and backward `@babel/preset-env` compatibility
##### 2.6.7 [LEGACY] - 2019.05.21
- Added one more workaround of alternative not completely correct `Symbol` polyfills, [#550](https://github.com/zloirock/core-js/issues/550), [#554](https://github.com/zloirock/core-js/issues/554)
##### 3.1.0 - 2019.05.20
- `String#matchAll` moved to stable ES, exposed `Symbol.matchAll`, [#516](https://github.com/zloirock/core-js/issues/516)
- `Promise.allSettled` moved to stage 3, [#515](https://github.com/zloirock/core-js/issues/515)
- `String#replaceAll` moved to stage 2, behavior updated by the spec draft, [#524](https://github.com/zloirock/core-js/issues/524)
- `Promise.any` moved to stage 1, [#517](https://github.com/zloirock/core-js/issues/517)
- Removed `es.regexp.flags` dependency from `es.regexp.to-string`, [#536](https://github.com/zloirock/core-js/issues/536), [#537](https://github.com/zloirock/core-js/issues/537)
- Fixed IE8- non-enumerable properties support in `Object.{ assign, entries, values }`, [#541](https://github.com/zloirock/core-js/issues/541)
- Fixed support of primitives in `Object.getOwnPropertySymbols` in Chrome 38 / 39, [#539](https://github.com/zloirock/core-js/issues/539)
- `window.postMessage`-based task implementation uses location origin over `'*'`, [#542](https://github.com/zloirock/core-js/issues/542)
- Lookup `PromiseConstructor.resolve` only once in `Promise` combinators, [tc39/ecma262#1506](https://github.com/tc39/ecma262/pull/1506)
- Temporarily removed `core-js` dependency from `core-js-compat` since it's required for missed at this moment feature
- Show a message on `postinstall`
- Added compat data for Chrome 76, FF 67, Node 12
##### 2.6.6 [LEGACY] - 2019.05.20
- Fixed IE8- non-enumerable properties support in `Object.{ assign, entries, values }`, [#541](https://github.com/zloirock/core-js/issues/541)
- Fixed support of primitives in `Object.getOwnPropertySymbols` in Chrome 38 / 39, [#539](https://github.com/zloirock/core-js/issues/539)
- Show a message on `postinstall`
##### 3.0.1 - 2019.04.06
- Fixed some cases of work with malformed URI sequences in `URLSearchParams`, [#525](https://github.com/zloirock/core-js/issues/525)
- Added a workaround for a rollup issue, [#513](https://github.com/zloirock/core-js/issues/513)
##### 3.0.0 - 2019.03.19
- Features
- Add new features:
- `Object.fromEntries` ([ECMAScript 2019](https://github.com/tc39/proposal-object-from-entries))
- `Symbol#description` ([ECMAScript 2019](https://tc39.es/ecma262/#sec-symbol.prototype.description))
- New `Set` methods ([stage 2 proposal](https://github.com/tc39/proposal-set-methods))
- `Set#difference`
- `Set#intersection`
- `Set#isDisjointFrom`
- `Set#isSubsetOf`
- `Set#isSupersetOf`
- `Set#symmetricDifference`
- `Set#union`
- `Promise.allSettled` ([stage 2 proposal](https://github.com/tc39/proposal-promise-allSettled))
- Getting last item from `Array` ([stage 1 proposal](https://github.com/keithamus/proposal-array-last))
- `Array#lastItem`
- `Array#lastIndex`
- `String#replaceAll` ([stage 1 proposal](https://github.com/tc39/proposal-string-replace-all))
- `String#codePoints` ([stage 1 proposal](https://github.com/tc39/proposal-string-prototype-codepoints))
- New collections methods ([stage 1 proposal](https://github.com/tc39/collection-methods))
- `Map.groupBy`
- `Map.keyBy`
- `Map#deleteAll`
- `Map#every`
- `Map#filter`
- `Map#find`
- `Map#findKey`
- `Map#includes`
- `Map#keyOf`
- `Map#mapKeys`
- `Map#mapValues`
- `Map#merge`
- `Map#reduce`
- `Map#some`
- `Map#update`
- `Set#addAll`
- `Set#deleteAll`
- `Set#every`
- `Set#filter`
- `Set#find`
- `Set#join`
- `Set#map`
- `Set#reduce`
- `Set#some`
- `WeakMap#deleteAll`
- `WeakSet#addAll`
- `WeakSet#deleteAll`
- `compositeKey` and `compositeSymbol` methods ([stage 1 proposal](https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey))
- `Number.fromString` ([stage 1 proposal](https://github.com/tc39/proposal-number-fromstring))
- `Math.seededPRNG` ([stage 1 proposal](https://github.com/tc39/proposal-seeded-random))
- `Symbol.patternMatch` ([for stage 1 pattern matching proposal](https://github.com/tc39/proposal-pattern-matching))
- `Symbol.dispose` ([for stage 1 `using` statement proposal](https://github.com/tc39/proposal-using-statement))
- `Promise.any` (with `AggregateError`) ([stage 0 proposal](https://github.com/tc39/proposal-promise-any))
- `URL` and `URLSearchParam` [from `URL` standard](https://url.spec.whatwg.org/), also [stage 0 proposal to ECMAScript](https://github.com/jasnell/proposal-url)
- `URL`
- `URL#href`
- `URL#origin`
- `URL#protocol`
- `URL#username`
- `URL#password`
- `URL#host`
- `URL#hostname`
- `URL#port`
- `URL#pathname`
- `URL#search`
- `URL#searchParams`
- `URL#hash`
- `URL#toString`
- `URL#toJSON`
- `URLSearchParams`
- `URLSearchParams#append`
- `URLSearchParams#delete`
- `URLSearchParams#get`
- `URLSearchParams#getAll`
- `URLSearchParams#has`
- `URLSearchParams#set`
- `URLSearchParams#sort`
- `URLSearchParams#toString`
- `URLSearchParams#keys`
- `URLSearchParams#values`
- `URLSearchParams#entries`
- `URLSearchParams#@@iterator`
- `.forEach` method on iterable DOM collections ([#329](https://github.com/zloirock/core-js/issues/329))
- Improve existing features:
- Add triggering unhandled `Promise` rejection events (instead of only global handlers), [#205](https://github.com/zloirock/core-js/issues/205).
- Wrap `fetch` for correct with polyfilled `Promise` and preventing problems like [#178](https://github.com/zloirock/core-js/issues/178), [#332](https://github.com/zloirock/core-js/issues/332), [#371](https://github.com/zloirock/core-js/issues/371).
- Add support of `@@isConcatSpreadable` to `Array#concat`.
- Add support of `@@species` to `Array#{concat, filter, map, slice, splice}`.
- Add direct `.exec` calling to `RegExp#{@@replace, @@split, @@match, @@search}`. Also, added fixes for `RegExp#exec` method. [#411](https://github.com/zloirock/core-js/issues/411), [#434](https://github.com/zloirock/core-js/issues/434), [#453](https://github.com/zloirock/core-js/issues/453), thanks [**@nicolo-ribaudo**](https://github.com/nicolo-ribaudo).
- Correct iterators prototypes chain, related [#261](https://github.com/zloirock/core-js/issues/261).
- Correct Typed Arrays prototypes chain, related [#378](https://github.com/zloirock/core-js/issues/378).
- Make the internal state of polyfilled features completely unobservable, [#146](https://github.com/zloirock/core-js/issues/146).
- Add validation of receiver's internal class to missed non-generic methods.
- Fix descriptors of global properties.
- In the version without global pollution, if `Object#toString` does not support `@@toStringTag`, add to wrapped prototypes own `toString` method with `@@toStringTag` logic, see [#199](https://github.com/zloirock/core-js/issues/199).
- Update standard features and proposals:
- `asap` (old stage 0 proposal) replaced by `queueMicrotask` ([a part of HTML spec](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask))
- Update [`Observable`](https://github.com/tc39/proposal-observable) (#257, #276, etc.)
- Update `Array#flatten` -> `Array#flat` and `Array#flatMap`
- Update `global` [stage 3 proposal](https://github.com/tc39/proposal-global) - rename `global` to `globalThis`
- Update `String#matchAll` ([proposal-string-matchall#17](https://github.com/tc39/proposal-string-matchall/pull/17), [proposal-string-matchall#38](https://github.com/tc39/proposal-string-matchall/pull/38), [proposal-string-matchall#41](https://github.com/tc39/proposal-string-matchall/pull/41), etc.) and move to the stage 3
- Update `.name` properties of `String#{trimStart, trimEnd , trimLeft, trimRight}`, move to the stage 3
- Remove mongolian vowel separator (U+180E) from the list of whitespaces for methods like `String#trim` (ES6 -> ES7)
- Mark ES2016, ES2017, ES2018, ES2019 features as stable:
- `Array#{ flat, flatMap }`
- `{ Array, %TypedArray% }#includes`
- `Object.{ values, entries}`
- `Object.getOwnPropertyDescriptors`
- `String#{ padStart, padEnd }`
- `String#{ trimStart, trimEnd, trimLeft, trimRight }`
- `Promise#finally`
- `Symbol.asyncIterator`
- `Object#__(define|lookup)[GS]etter__`
- Remove obsolete features:
- `Error.isError` (withdrawn)
- `System.global` and `global` (replaced by `globalThis`)
- `Map#toJSON` and `Set#toJSON` (rejected)
- `RegExp.escape` (rejected)
- `Reflect.enumerate` (removed from the spec)
- Unnecessary iteration methods from `CSSRuleList`, `MediaList`, `StyleSheetList`
- **No more non-standard features**, finally removed:
- `Dict`
- `Object.{classof, isObject, define, make}`
- `Function#part`
- `Number#@@iterator`
- `String#{escapeHTML, unescapeHTML}`
- `delay`
- Add `.sham` flag to features which can't be properly polyfilled and / or not recommended for usage:
- `Symbol` constructor - we can't add new primitives. `Object.prototype` accessors too expensive.
- `Object.{create, defineProperty, defineProperties, getOwnPropertyDescriptor, getOwnPropertyDescriptos}`, `Reflect.{defineProperty, getOwnPropertyDescriptor}` can't be properly polyfilled without descriptors support.
- `Object.{freeze, seal, preventExtensions}`, `Reflect.preventExtensions` can't be properly polyfilled in ES3 environment.
- `Object.getPrototypeOf` can be deceived in ES3 environment.
- `Reflect.construct` can't be polyfilled for a correct work with `newTarget` argument on built-ins.
- Typed Array constructors polyfill is quite correct but too expensive.
- `URL` constructor in engines without descriptors support.
- Bug and compatibility fixes:
- Fix deoptimisation of iterators in V8, [#377](https://github.com/zloirock/core-js/issues/377).
- Fix import of property before constructor which should contain this property, [#262](https://github.com/zloirock/core-js/issues/262).
- Fix some cases of IE11 `WeakMap` frozen keys fallback, [#384](https://github.com/zloirock/core-js/issues/384).
- Fix non-enumerable integer keys issue because of Nashorn ~ JDK8 bug, [#389](https://github.com/zloirock/core-js/issues/389).
- Fix [Safari 12.0 `Array#reverse` bug](https://bugs.webkit.org/show_bug.cgi?id=188794).
- One more fix for microtasks in iOS related [#339](https://github.com/zloirock/core-js/issues/339).
- Added a fallback for [Rhino bug](https://github.com/mozilla/rhino/issues/346), [#440](https://github.com/zloirock/core-js/issues/440).
- Many other internal fixes and improvements.
- Repository:
- Change `core-js` repository structure to monorepo with packages in `/packages/` directory.
- Clean-up it, remove all possible duplicates, generated files, etc.
- Packages:
- **Extract a version without global namespace pollution to a separate `core-js-pure` package (replacement for `core-js/library`).**
- **Leave only one pair of bundles (global, with all polyfills) and move it to `core-js-bundle` package.**
- Remove bundling logic from `core-js` package, leave it only in `core-js-builder` package.
- Clean-up packages.
- Because of all approaches, **reduce size of packages from ~2mb for `core-js@2` to**:
- **~500kb for `core-js` package**
- **~440kb for `core-js-pure` package**
- Finally remove `bower.json`
- CommonJS API, namespaces:
- Add availability [configuration of aggressiveness](https://github.com/zloirock/core-js/blob/master/README.md#configurable-level-of-aggressiveness).
- Move `core-js/library` to separate `core-js-pure` package.
- Because of removing all non-standard features, we no longer need `core-js/shim` entry point, replace it just with `core-js`.
- Move all features from ES5, ES2015, ES2016, ES2017, ES2018 and ES2019 to one namespace for stable ES - it's available as `core-js/es`, all those features in `modules` folder has `es.` prefix.
- Change prefix for ES proposals from `es7.` to `esnext.`, they no longer available in `core-js/es7`, use `core-js/stage/*` instead of that.
- Rename `core-js(/library)/fn` to `core-js(-pure)/features` for improve readability.
- Allow more granular inclusion of features from `/es/` path (for example, `core-js/es/array/from`).
- Add `/stable/` entry points as an equal of `/features/` for stable features, without proposals.
- Add `/proposals/` entry points for allow include all features from one proposal (for example, `core-js/proposals/reflect-metadata`).
- Add `/es|stable|features/instance/` entry points for getting polyfill of the related method for passed instance (could be used in cases like `babel-runtime`).
- Split typed arrays polyfills. Now you can, for example, load only required method (for example, `core-js/es/typed-array/from`).
- Extract well-known symbols definition from `es.symbol` module for loading only required features, for example, in MS Edge.
- Rename `web.dom` namespace to `web.dom-collections`.
- Rename `es6.regexp.{match, replace, search, split}` -> `es.string.{match, replace, search, split}` - mainly it's fixes / adding support of well-known symbols to string methods, only in second place adding related methods to regexp prototype.
- Relax `/modules/` directory by moving internal modules to `/internals/` directory.
- Remove deprecated array entry points: `core-js(/library)/fn/array/{pop, push, reverse, shift, unshift}`.
- `core` object no longer available in the global version, entry points which previously returned it now returns `globalThis` object. Also, don't set global `core` property.
- Add some missing entry points.
- Tools, tests, code quality:
- Added `core-js-compat` package with:
- Data about the necessity of `core-js` modules and API for getting a list of required `core-js` modules by `browserslist` query, [#466](https://github.com/zloirock/core-js/issues/466).
- Data which modules load by each entry point (mainly useful for tools like `@babel/preset-env`).
- Data which modules added in minor versions (mainly useful for tools like `@babel/preset-env`).
- `core-js-builder` package:
- Added `targets` option with `browserslist` query.
- Removed an option for generation bundle of a version without global namespace pollution - now it's an odd use case.
- Removed UMD wrapper from a generated code of bundles - we don't need it for a global polyfill.
- **Getting rid of LiveScript**, usage another language in JS standard library looks strange and impedes usage of tools like ESLint:
- Tests are rewritten to JS.
- Scripts are rewritten to JS.
- Babel with minimalistic config (which should work anywhere) used on tests.
- ESLint used on tests and tools.
- Source code refactored for improving readability.
##### 2.6.5 - 2019.02.15
- Fixed buggy `String#padStart` and `String#padEnd` mobile Safari implementations, [#414](https://github.com/zloirock/core-js/issues/414).
##### 2.6.4 - 2019.02.07
- Added a workaround against crushing an old IE11.0.9600.16384 build, [#485](https://github.com/zloirock/core-js/issues/485).
##### 2.6.3 - 2019.01.22
- Added a workaround for `babel-minify` bug, [#479](https://github.com/zloirock/core-js/issues/479)
##### 2.6.2 - 2019.01.10
- Fixed handling of `$` in `String#replace`, [#471](https://github.com/zloirock/core-js/issues/471)
##### 2.6.1 - 2018.12.18
- Fixed an issue with minified version, [#463](https://github.com/zloirock/core-js/issues/463), [#465](https://github.com/zloirock/core-js/issues/465)
##### 2.6.0 - 2018.12.05
- Add direct `.exec` calling to `RegExp#{@@replace, @@split, @@match, @@search}`. Also, added fixes for `RegExp#exec` method. [#428](https://github.com/zloirock/core-js/issues/428), [#435](https://github.com/zloirock/core-js/issues/435), [#458](https://github.com/zloirock/core-js/issues/458), thanks [**@nicolo-ribaudo**](https://github.com/nicolo-ribaudo).
##### 2.5.7 - 2018.05.26
- Get rid of reserved variable name `final`, related [#400](https://github.com/zloirock/core-js/issues/400)
##### 2.5.6 - 2018.05.07
- Forced replace native `Promise` in V8 6.6 (Node 10 and Chrome 66) because of [a bug with resolving custom thenables](https://bugs.chromium.org/p/chromium/issues/detail?id=830565)
- Added a workaround for usage buggy native LG WebOS 2 `Promise` in microtask implementation, [#396](https://github.com/zloirock/core-js/issues/396)
- Added modern version internal debugging information about used versions
##### 2.5.5 - 2018.04.08
- Fix some edge cases of `Reflect.set`, [#392](https://github.com/zloirock/core-js/issues/392) and [#393](https://github.com/zloirock/core-js/issues/393)
##### 2.5.4 - 2018.03.27
- Fixed one case of deoptimization built-in iterators in V8, related [#377](https://github.com/zloirock/core-js/issues/377)
- Fixed some cases of iterators feature detection, [#368](https://github.com/zloirock/core-js/issues/368)
- Fixed manually entered NodeJS domains issue in `Promise`, [#367](https://github.com/zloirock/core-js/issues/367)
- Fixed `Number.{parseInt, parseFloat}` entry points
- Fixed `__(define|lookup)[GS]etter__` export in the `library` version
##### 2.5.3 - 2017.12.12
- Fixed calling `onunhandledrejectionhandler` multiple times for one `Promise` chain, [#318](https://github.com/zloirock/core-js/issues/318)
- Forced replacement of `String#{padStart, padEnd}` in Safari 10 because of [a bug](https://bugs.webkit.org/show_bug.cgi?id=161944), [#280](https://github.com/zloirock/core-js/issues/280)
- Fixed `Array#@@iterator` in a very rare version of `WebKit`, [#236](https://github.com/zloirock/core-js/issues/236) and [#237](https://github.com/zloirock/core-js/issues/237)
- One more [#345](https://github.com/zloirock/core-js/issues/345)-related fix
##### 2.5.2 - 2017.12.09
- `MutationObserver` no longer used for microtask implementation in iOS Safari because of bug with scrolling, [#339](https://github.com/zloirock/core-js/issues/339)
- Fixed `JSON.stringify(undefined, replacer)` case in the wrapper from the `Symbol` polyfill, [#345](https://github.com/zloirock/core-js/issues/345)
- `Array()` calls changed to `new Array()` for V8 optimisation
##### 2.5.1 - 2017.09.01
- Updated `Promise#finally` per [tc39/proposal-promise-finally#37](https://github.com/tc39/proposal-promise-finally/issues/37)
- Optimized usage of some internal helpers for reducing size of `shim` version
- Fixed some entry points for virtual methods
##### 2.5.0 - 2017.08.05
- Added `Promise#finally` [stage 3 proposal](https://github.com/tc39/proposal-promise-finally), [#225](https://github.com/zloirock/core-js/issues/225)
- Added `Promise.try` [stage 1 proposal](https://github.com/tc39/proposal-promise-try)
- Added `Array#flatten` and `Array#flatMap` [stage 1 proposal](https://tc39.github.io/proposal-flatMap)
- Added `.of` and `.from` methods on collection constructors [stage 1 proposal](https://github.com/tc39/proposal-setmap-offrom):
- `Map.of`
- `Set.of`
- `WeakSet.of`
- `WeakMap.of`
- `Map.from`
- `Set.from`
- `WeakSet.from`
- `WeakMap.from`
- Added `Math` extensions [stage 1 proposal](https://github.com/rwaldron/proposal-math-extensions), [#226](https://github.com/zloirock/core-js/issues/226):
- `Math.clamp`
- `Math.DEG_PER_RAD`
- `Math.degrees`
- `Math.fscale`
- `Math.RAD_PER_DEG`
- `Math.radians`
- `Math.scale`
- Added `Math.signbit` [stage 1 proposal](http://jfbastien.github.io/papers/Math.signbit.html)
- Updated `global` [stage 3 proposal](https://github.com/tc39/proposal-global) - added `global` global object, `System.global` deprecated
- Updated `Object.getOwnPropertyDescriptors` to the [final version](https://tc39.es/ecma262/2017/#sec-object.getownpropertydescriptors) - it should not create properties if descriptors are `undefined`
- Updated the list of iterable DOM collections, [#249](https://github.com/zloirock/core-js/issues/249), added:
- `CSSStyleDeclaration#@@iterator`
- `CSSValueList#@@iterator`
- `ClientRectList#@@iterator`
- `DOMRectList#@@iterator`
- `DOMStringList#@@iterator`
- `DataTransferItemList#@@iterator`
- `FileList#@@iterator`
- `HTMLAllCollection#@@iterator`
- `HTMLCollection#@@iterator`
- `HTMLFormElement#@@iterator`
- `HTMLSelectElement#@@iterator`
- `MimeTypeArray#@@iterator`
- `NamedNodeMap#@@iterator`
- `PaintRequestList#@@iterator`
- `Plugin#@@iterator`
- `PluginArray#@@iterator`
- `SVGLengthList#@@iterator`
- `SVGNumberList#@@iterator`
- `SVGPathSegList#@@iterator`
- `SVGPointList#@@iterator`
- `SVGStringList#@@iterator`
- `SVGTransformList#@@iterator`
- `SourceBufferList#@@iterator`
- `TextTrackCueList#@@iterator`
- `TextTrackList#@@iterator`
- `TouchList#@@iterator`
- Updated stages of proposals:
- [`Object.getOwnPropertyDescriptors`](https://github.com/tc39/proposal-object-getownpropertydescriptors) to [stage 4 (ES2017)](https://tc39.es/ecma262/2017/#sec-object.getownpropertydescriptors)
- [String padding](https://github.com/tc39/proposal-string-pad-start-end) to [stage 4 (ES2017)](https://tc39.es/ecma262/2017/#sec-string.prototype.padend)
- [`global`](https://github.com/tc39/proposal-global) to [stage 3](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-09/sept-28.md#revisit-systemglobal--global)
- [String trimming](https://github.com/tc39/proposal-string-left-right-trim) to [stage 2](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-07/jul-27.md#10iic-trimstarttrimend)
- Updated typed arrays to the modern (ES2016+) arguments validation,
[#293](https://github.com/zloirock/core-js/pull/293)
- Fixed `%TypedArray%.from` Safari bug, [#285](https://github.com/zloirock/core-js/issues/285)
- Fixed compatibility with old version of Prototype.js, [#278](https://github.com/zloirock/core-js/issues/278), [#289](https://github.com/zloirock/core-js/issues/289)
- `Function#name` no longer cache the result for correct behaviour with inherited constructors, [#296](https://github.com/zloirock/core-js/issues/296)
- Added errors on incorrect context of collection methods, [#272](https://github.com/zloirock/core-js/issues/272)
- Fixed conversion typed array constructors to string, fix [#300](https://github.com/zloirock/core-js/issues/300)
- Fixed `Set#size` with debugger ReactNative for Android, [#297](https://github.com/zloirock/core-js/issues/297)
- Fixed an issue with Electron-based debugger, [#230](https://github.com/zloirock/core-js/issues/230)
- Fixed compatibility with incomplete third-party `WeakMap` polyfills, [#252](https://github.com/zloirock/core-js/pull/252)
- Added a fallback for `Date#toJSON` in engines without native `Date#toISOString`, [#220](https://github.com/zloirock/core-js/issues/220)
- Added support for Sphere Dispatch API, [#286](https://github.com/zloirock/core-js/pull/286)
- Seriously changed the coding style and the [ESLint config](https://github.com/zloirock/core-js/blob/master/.eslintrc.js)
- Updated many dev dependencies (`webpack`, `uglify`, etc)
- Some other minor fixes and optimizations
##### 2.4.1 - 2016.07.18
- Fixed `script` tag for some parsers, [#204](https://github.com/zloirock/core-js/issues/204), [#216](https://github.com/zloirock/core-js/issues/216)
- Removed some unused variables, [#217](https://github.com/zloirock/core-js/issues/217), [#218](https://github.com/zloirock/core-js/issues/218)
- Fixed MS Edge `Reflect.construct` and `Reflect.apply` - they should not allow primitive as `argumentsList` argument
##### 1.2.7 [LEGACY] - 2016.07.18
- Some fixes for issues like [#159](https://github.com/zloirock/core-js/issues/159), [#186](https://github.com/zloirock/core-js/issues/186), [#194](https://github.com/zloirock/core-js/issues/194), [#207](https://github.com/zloirock/core-js/issues/207)
##### 2.4.0 - 2016.05.08
- Added `Observable`, [stage 1 proposal](https://github.com/zenparsing/es-observable)
- Fixed behavior `Object.{getOwnPropertySymbols, getOwnPropertyDescriptor}` and `Object#propertyIsEnumerable` on `Object.prototype`
- `Reflect.construct` and `Reflect.apply` should throw an error if `argumentsList` argument is not an object, [#194](https://github.com/zloirock/core-js/issues/194)
##### 2.3.0 - 2016.04.24
- Added `asap` for enqueuing microtasks, [stage 0 proposal](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask)
- Added well-known symbol `Symbol.asyncIterator` for [stage 2 async iteration proposal](https://github.com/tc39/proposal-async-iteration)
- Added well-known symbol `Symbol.observable` for [stage 1 observables proposal](https://github.com/zenparsing/es-observable)
- `String#{padStart, padEnd}` returns original string if filler is empty string, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#stringprototypepadstartpadend)
- `Object.values` and `Object.entries` moved to stage 4 from 3, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#objectvalues--objectentries)
- `System.global` moved to stage 2 from 1, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#systemglobal)
- `Map#toJSON` and `Set#toJSON` rejected and will be removed from the next major release, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-31.md#mapprototypetojsonsetprototypetojson)
- `Error.isError` withdrawn and will be removed from the next major release, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#erroriserror)
- Added fallback for `Function#name` on non-extensible functions and functions with broken `toString` conversion, [#193](https://github.com/zloirock/core-js/issues/193)
##### 2.2.2 - 2016.04.06
- Added conversion `-0` to `+0` to `Array#{indexOf, lastIndexOf}`, [ES2016 fix](https://github.com/tc39/ecma262/pull/316)
- Added fixes for some `Math` methods in Tor Browser
- `Array.{from, of}` no longer calls prototype setters
- Added workaround over Chrome DevTools strange behavior, [#186](https://github.com/zloirock/core-js/issues/186)
##### 2.2.1 - 2016.03.19
- Fixed `Object.getOwnPropertyNames(window)` `2.1+` versions bug, [#181](https://github.com/zloirock/core-js/issues/181)
##### 2.2.0 - 2016.03.15
- Added `String#matchAll`, [proposal](https://github.com/tc39/String.prototype.matchAll)
- Added `Object#__(define|lookup)[GS]etter__`, [annex B ES2017](https://github.com/tc39/ecma262/pull/381)
- Added `@@toPrimitive` methods to `Date` and `Symbol`
- Fixed `%TypedArray%#slice` in Edge ~ 13 (throws with `@@species` and wrapped / inherited constructor)
- Some other minor fixes
##### 2.1.5 - 2016.03.12
- Improved support NodeJS domains in `Promise#then`, [#180](https://github.com/zloirock/core-js/issues/180)
- Added fallback for `Date#toJSON` bug in Qt Script, [#173](https://github.com/zloirock/core-js/issues/173#issuecomment-193972502)
##### 2.1.4 - 2016.03.08
- Added fallback for `Symbol` polyfill in Qt Script, [#173](https://github.com/zloirock/core-js/issues/173)
- Added one more fallback for IE11 `Script Access Denied` error with iframes, [#165](https://github.com/zloirock/core-js/issues/165)
##### 2.1.3 - 2016.02.29
- Added fallback for [`es6-promise` package bug](https://github.com/stefanpenner/es6-promise/issues/169), [#176](https://github.com/zloirock/core-js/issues/176)
##### 2.1.2 - 2016.02.29
- Some minor `Promise` fixes:
- Browsers `rejectionhandled` event better HTML spec complaint
- Errors in unhandled rejection handlers should not cause any problems
- Fixed typo in feature detection
##### 2.1.1 - 2016.02.22
- Some `Promise` improvements:
- Feature detection:
- **Added detection unhandled rejection tracking support - now it's available everywhere**, [#140](https://github.com/zloirock/core-js/issues/140)
- Added detection `@@species` pattern support for completely correct subclassing
- Removed usage `Object.setPrototypeOf` from feature detection and noisy console message about it in FF
- `Promise.all` fixed for some very specific cases
##### 2.1.0 - 2016.02.09
- **API**:
- ES5 polyfills are split and logic, used in other polyfills, moved to internal modules
- **All entry point works in ES3 environment like IE8- without `core-js/(library/)es5`**
- **Added all missed single entry points for ES5 polyfills**
- Separated ES5 polyfills moved to the ES6 namespace. Why?
- Mainly, for prevent duplication features in different namespaces - logic of most required ES5 polyfills changed in ES6+:
- Already added changes for: `Object` statics - should accept primitives, new whitespaces lists in `String#trim`, `parse(Int|float)`, `RegExp#toString` logic, `String#split`, etc
- Should be changed in the future: `@@species` and `ToLength` logic in `Array` methods, `Date` parsing, `Function#bind`, etc
- Should not be changed only several features like `Array.isArray` and `Date.now`
- Some ES5 polyfills required for modern engines
- All old entry points should work fine, but in the next major release API can be changed
- `Object.getOwnPropertyDescriptors` moved to the stage 3, [January TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-01/2016-01-28.md#objectgetownpropertydescriptors-to-stage-3-jordan-harband-low-priority-but-super-quick)
- Added `umd` option for [custom build process](https://github.com/zloirock/core-js#custom-build-from-external-scripts), [#169](https://github.com/zloirock/core-js/issues/169)
- Returned entry points for `Array` statics, removed in `2.0`, for compatibility with `babel` `6` and for future fixes
- **Deprecated**:
- `Reflect.enumerate` deprecated and will be removed from the next major release, [January TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-01/2016-01-28.md#5xix-revisit-proxy-enumerate---revisit-decision-to-exhaust-iterator)
- **New Features**:
- Added [`Reflect` metadata API](https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md) as a pre-strawman feature, [#152](https://github.com/zloirock/core-js/issues/152):
- `Reflect.defineMetadata`
- `Reflect.deleteMetadata`
- `Reflect.getMetadata`
- `Reflect.getMetadataKeys`
- `Reflect.getOwnMetadata`
- `Reflect.getOwnMetadataKeys`
- `Reflect.hasMetadata`
- `Reflect.hasOwnMetadata`
- `Reflect.metadata`
- Implementation / fixes `Date#toJSON`
- Fixes for `parseInt` and `Number.parseInt`
- Fixes for `parseFloat` and `Number.parseFloat`
- Fixes for `RegExp#toString`
- Fixes for `Array#sort`
- Fixes for `Number#toFixed`
- Fixes for `Number#toPrecision`
- Additional fixes for `String#split` (`RegExp#@@split`)
- **Improvements**:
- Correct subclassing wrapped collections, `Number` and `RegExp` constructors with native class syntax
- Correct support `SharedArrayBuffer` and buffers from other realms in typed arrays wrappers
- Additional validations for `Object.{defineProperty, getOwnPropertyDescriptor}` and `Reflect.defineProperty`
- **Bug Fixes**:
- Fixed some cases `Array#lastIndexOf` with negative second argument
##### 2.0.3 - 2016.01.11
- Added fallback for V8 ~ Chrome 49 `Promise` subclassing bug causes unhandled rejection on feature detection, [#159](https://github.com/zloirock/core-js/issues/159)
- Added fix for very specific environments with global `window === null`
##### 2.0.2 - 2016.01.04
- Temporarily removed `length` validation from `Uint8Array` constructor wrapper. Reason - [bug in `ws` module](https://github.com/websockets/ws/pull/645) (-> `socket.io`) which passes to `Buffer` constructor -> `Uint8Array` float and uses [the `V8` bug](https://code.google.com/p/v8/issues/detail?id=4552) for conversion to int (by the spec should be thrown an error). [It creates problems for many people.](https://github.com/karma-runner/karma/issues/1768) I hope, it will be returned after fixing this bug in `V8`.
##### 2.0.1 - 2015.12.31
- Forced usage `Promise.resolve` polyfill in the `library` version for correct work with wrapper
- `Object.assign` should be defined in the strict mode -> throw an error on extension non-extensible objects, [#154](https://github.com/zloirock/core-js/issues/154)
##### 2.0.0 - 2015.12.24
- Added implementations and fixes [Typed Arrays](https://github.com/zloirock/core-js#ecmascript-6-typed-arrays)-related features
- `ArrayBuffer`, `ArrayBuffer.isView`, `ArrayBuffer#slice`
- `DataView` with all getter / setter methods
- `Int8Array`, `Uint8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array` and `Float64Array` constructors
- `%TypedArray%.{for, of}`, `%TypedArray%#{copyWithin, every, fill, filter, find, findIndex, forEach, indexOf, includes, join, lastIndexOf, map, reduce, reduceRight, reverse, set, slice, some, sort, subarray, values, keys, entries, @@iterator, ...}`
- Added [`System.global`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/tc39/proposal-global), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-19.md#systemglobal-jhd)
- Added [`Error.isError`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/ljharb/proposal-is-error), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-19.md#jhd-erroriserror)
- Added [`Math.{iaddh, isubh, imulh, umulh}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703)
- `RegExp.escape` moved from the `es7` to the non-standard `core` namespace, [July TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-07/july-28.md#62-regexpescape) - too slow, but it's condition of stability, [#116](https://github.com/zloirock/core-js/issues/116)
- [`Promise`](https://github.com/zloirock/core-js#ecmascript-6-promise)
- Some performance optimisations
- Added basic support [`rejectionHandled` event / `onrejectionhandled` handler](https://github.com/zloirock/core-js#unhandled-rejection-tracking) to the polyfill
- Removed usage `@@species` from `Promise.{all, race}`, [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-18.md#conclusionresolution-2)
- Some improvements [collections polyfills](https://github.com/zloirock/core-js#ecmascript-6-collections)
- `O(1)` and preventing possible leaks with frozen keys, [#134](https://github.com/zloirock/core-js/issues/134)
- Correct observable state object keys
- Renamed `String#{padLeft, padRight}` -> [`String#{padStart, padEnd}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/tc39/proposal-string-pad-start-end), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-17.md#conclusionresolution-2) (they want to rename it on each meeting?O_o), [#132](https://github.com/zloirock/core-js/issues/132)
- Added [`String#{trimStart, trimEnd}` as aliases for `String#{trimLeft, trimRight}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-17.md#conclusionresolution-2)
- Added [annex B HTML methods](https://github.com/zloirock/core-js#ecmascript-6-string) - ugly, but also [the part of the spec](http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.anchor)
- Added little fix for [`Date#toString`](https://github.com/zloirock/core-js#ecmascript-6-date) - `new Date(NaN).toString()` [should be `'Invalid Date'`](http://www.ecma-international.org/ecma-262/6.0/#sec-todatestring)
- Added [`{keys, values, entries, @@iterator}` methods to DOM collections](https://github.com/zloirock/core-js#iterable-dom-collections) which should have [iterable interface](https://heycam.github.io/webidl/#idl-iterable) or should be [inherited from `Array`](https://heycam.github.io/webidl/#LegacyArrayClass) - `NodeList`, `DOMTokenList`, `MediaList`, `StyleSheetList`, `CSSRuleList`.
- Removed Mozilla `Array` generics - [deprecated and will be removed from FF](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#Array_generic_methods), [looks like strawman is dead](http://wiki.ecmascript.org/doku.php?id=strawman:array_statics), available [alternative shim](https://github.com/plusdude/array-generics)
- Removed `core.log` module
- CommonJS API
- Added entry points for [virtual methods](https://github.com/zloirock/core-js#commonjs-and-prototype-methods-without-global-namespace-pollution)
- Added entry points for [stages proposals](https://github.com/zloirock/core-js#ecmascript-7-proposals)
- Some other minor changes
- [Custom build from external scripts](https://github.com/zloirock/core-js#custom-build-from-external-scripts) moved to the separate package for preventing problems with dependencies
- Changed `$` prefix for internal modules file names because Team Foundation Server does not support it, [#129](https://github.com/zloirock/core-js/issues/129)
- Additional fix for `SameValueZero` in V8 ~ Chromium 39-42 collections
- Additional fix for FF27 `Array` iterator
- Removed usage shortcuts for `arguments` object - old WebKit bug, [#150](https://github.com/zloirock/core-js/issues/150)
- `{Map, Set}#forEach` non-generic, [#144](https://github.com/zloirock/core-js/issues/144)
- Many other improvements
##### 1.2.6 - 2015.11.09
* Reject with `TypeError` on attempt resolve promise itself
* Correct behavior with broken `Promise` subclass constructors / methods
* Added `Promise`-based fallback for microtask
* Fixed V8 and FF `Array#{values, @@iterator}.name`
* Fixed IE7- `[1, 2].join(undefined) -> '1,2'`
* Some other fixes / improvements / optimizations
##### 1.2.5 - 2015.11.02
* Some more `Number` constructor fixes:
* Fixed V8 ~ Node 0.8 bug: `Number('+0x1')` should be `NaN`
* Fixed `Number(' 0b1\n')` case, should be `1`
* Fixed `Number()` case, should be `0`
##### 1.2.4 - 2015.11.01
* Fixed `Number('0b12') -> NaN` case in the shim
* Fixed V8 ~ Chromium 40- bug - `Weak(Map|Set)#{delete, get, has}` should not throw errors [#124](https://github.com/zloirock/core-js/issues/124)
* Some other fixes and optimizations
##### 1.2.3 - 2015.10.23
* Fixed some problems related old V8 bug `Object('a').propertyIsEnumerable(0) // => false`, for example, `Object.assign({}, 'qwe')` from the last release
* Fixed `.name` property and `Function#toString` conversion some polyfilled methods
* Fixed `Math.imul` arity in Safari 8-
##### 1.2.2 - 2015.10.18
* Improved optimisations for V8
* Fixed build process from external packages, [#120](https://github.com/zloirock/core-js/pull/120)
* One more `Object.{assign, values, entries}` fix for [**very** specific case](https://github.com/ljharb/proposal-object-values-entries/issues/5)
##### 1.2.1 - 2015.10.02
* Replaced fix `JSON.stringify` + `Symbol` behavior from `.toJSON` method to wrapping `JSON.stringify` - little more correct, [compat-table/642](https://github.com/kangax/compat-table/pull/642)
* Fixed typo which broke tasks scheduler in WebWorkers in old FF, [#114](https://github.com/zloirock/core-js/pull/114)
##### 1.2.0 - 2015.09.27
* Added browser [`Promise` rejection hook](#unhandled-rejection-tracking), [#106](https://github.com/zloirock/core-js/issues/106)
* Added correct [`IsRegExp`](http://www.ecma-international.org/ecma-262/6.0/#sec-isregexp) logic to [`String#{includes, startsWith, endsWith}`](https://github.com/zloirock/core-js/#ecmascript-6-string) and [`RegExp` constructor](https://github.com/zloirock/core-js/#ecmascript-6-regexp), `@@match` case, [example](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/match#Disabling_the_isRegExp_check)
* Updated [`String#leftPad`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) [with proposal](https://github.com/ljharb/proposal-string-pad-left-right/issues/6): string filler truncated from the right side
* Replaced V8 [`Object.assign`](https://github.com/zloirock/core-js/#ecmascript-6-object) - its properties order not only [incorrect](https://github.com/sindresorhus/object-assign/issues/22), it is non-deterministic and it causes some problems
* Fixed behavior with deleted in getters properties for `Object.{`[`assign`](https://github.com/zloirock/core-js/#ecmascript-6-object)`, `[`entries, values`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)`}`, [example](http://goo.gl/iQE01c)
* Fixed [`Math.sinh`](https://github.com/zloirock/core-js/#ecmascript-6-math) with very small numbers in V8 near Chromium 38
* Some other fixes and optimizations
##### 1.1.4 - 2015.09.05
* Fixed support symbols in FF34-35 [`Object.assign`](https://github.com/zloirock/core-js/#ecmascript-6-object)
* Fixed [collections iterators](https://github.com/zloirock/core-js/#ecmascript-6-iterators) in FF25-26
* Fixed non-generic WebKit [`Array.of`](https://github.com/zloirock/core-js/#ecmascript-6-array)
* Some other fixes and optimizations
##### 1.1.3 - 2015.08.29
* Fixed support Node.js domains in [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise), [#103](https://github.com/zloirock/core-js/issues/103)
##### 1.1.2 - 2015.08.28
* Added `toJSON` method to [`Symbol`](https://github.com/zloirock/core-js/#ecmascript-6-symbol) polyfill and to MS Edge implementation for expected `JSON.stringify` result w/o patching this method
* Replaced [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) implementations w/o correct support third argument
* Fixed `global` detection with changed `document.domain` in ~IE8, [#100](https://github.com/zloirock/core-js/issues/100)
##### 1.1.1 - 2015.08.20
* Added more correct microtask implementation for [`Promise`](#ecmascript-6-promise)
##### 1.1.0 - 2015.08.17
* Updated [string padding](https://github.com/zloirock/core-js/#ecmascript-7-proposals) to [actual proposal](https://github.com/ljharb/proposal-string-pad-left-right) - renamed, minor internal changes:
* `String#lpad` -> `String#padLeft`
* `String#rpad` -> `String#padRight`
* Added [string trim functions](#ecmascript-7-proposals) - [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim), defacto standard - required only for IE11- and fixed for some old engines:
* `String#trimLeft`
* `String#trimRight`
* [`String#trim`](https://github.com/zloirock/core-js/#ecmascript-6-string) fixed for some engines by es6 spec and moved from `es5` to single `es6` module
* Splitted [`es6.object.statics-accept-primitives`](https://github.com/zloirock/core-js/#ecmascript-6-object)
* Caps for `freeze`-family `Object` methods moved from `es5` to `es6` namespace and joined with [es6 wrappers](https://github.com/zloirock/core-js/#ecmascript-6-object)
* `es5` [namespace](https://github.com/zloirock/core-js/#commonjs) also includes modules, moved to `es6` namespace - you can use it as before
* Increased `MessageChannel` priority in `$.task`, [#95](https://github.com/zloirock/core-js/issues/95)
* Does not get `global.Symbol` on each getting iterator, if you wanna use alternative `Symbol` shim - add it before `core-js`
* [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) optimized and fixed for some cases
* Simplified [`Reflect.enumerate`](https://github.com/zloirock/core-js/#ecmascript-6-reflect), see [this question](https://esdiscuss.org/topic/question-about-enumerate-and-property-decision-timing)
* Some corrections in [`Math.acosh`](https://github.com/zloirock/core-js/#ecmascript-6-math)
* Fixed [`Math.imul`](https://github.com/zloirock/core-js/#ecmascript-6-math) for old WebKit
* Some fixes in string / RegExp [well-known symbols](https://github.com/zloirock/core-js/#ecmascript-6-regexp) logic
* Some other fixes and optimizations
##### 1.0.1 - 2015.07.31
* Some fixes for final MS Edge, replaced broken native `Reflect.defineProperty`
* Some minor fixes and optimizations
* Changed compression `client/*.min.js` options for safe `Function#name` and `Function#length`, should be fixed [#92](https://github.com/zloirock/core-js/issues/92)
##### 1.0.0 - 2015.07.22
* Added logic for [well-known symbols](https://github.com/zloirock/core-js/#ecmascript-6-regexp):
* `Symbol.match`
* `Symbol.replace`
* `Symbol.split`
* `Symbol.search`
* Actualized and optimized work with iterables:
* Optimized [`Map`, `Set`, `WeakMap`, `WeakSet` constructors](https://github.com/zloirock/core-js/#ecmascript-6-collections), [`Promise.all`, `Promise.race`](https://github.com/zloirock/core-js/#ecmascript-6-promise) for default `Array Iterator`
* Optimized [`Array.from`](https://github.com/zloirock/core-js/#ecmascript-6-array) for default `Array Iterator`
* Added [`core.getIteratorMethod`](https://github.com/zloirock/core-js/#ecmascript-6-iterators) helper
* Uses enumerable properties in shimmed instances - collections, iterators, etc for optimize performance
* Added support native constructors to [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) with 2 arguments
* Added support native constructors to [`Function#bind`](https://github.com/zloirock/core-js/#ecmascript-5) shim with `new`
* Removed obsolete `.clear` methods native [`Weak`-collections](https://github.com/zloirock/core-js/#ecmascript-6-collections)
* Maximum modularity, reduced minimal custom build size, separated into submodules:
* [`es6.reflect`](https://github.com/zloirock/core-js/#ecmascript-6-reflect)
* [`es6.regexp`](https://github.com/zloirock/core-js/#ecmascript-6-regexp)
* [`es6.math`](https://github.com/zloirock/core-js/#ecmascript-6-math)
* [`es6.number`](https://github.com/zloirock/core-js/#ecmascript-6-number)
* [`es7.object.to-array`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* [`core.object`](https://github.com/zloirock/core-js/#object)
* [`core.string`](https://github.com/zloirock/core-js/#escaping-strings)
* [`core.iter-helpers`](https://github.com/zloirock/core-js/#ecmascript-6-iterators)
* Internal modules (`$`, `$.iter`, etc)
* Many other optimizations
* Final cleaning non-standard features
* Moved `$for` to [separate library](https://github.com/zloirock/forof). This work for syntax - `for-of` loop and comprehensions
* Moved `Date#{format, formatUTC}` to [separate library](https://github.com/zloirock/dtf). Standard way for this - `ECMA-402`
* Removed `Math` methods from `Number.prototype`. Slight sugar for simple `Math` methods calling
* Removed `{Array#, Array, Dict}.turn`
* Removed `core.global`
* Uses `ToNumber` instead of `ToLength` in [`Number Iterator`](https://github.com/zloirock/core-js/#number-iterator), `Array.from(2.5)` will be `[0, 1, 2]` instead of `[0, 1]`
* Fixed [#85](https://github.com/zloirock/core-js/issues/85) - invalid `Promise` unhandled rejection message in nested `setTimeout`
* Fixed [#86](https://github.com/zloirock/core-js/issues/86) - support FF extensions
* Fixed [#89](https://github.com/zloirock/core-js/issues/89) - behavior `Number` constructor in strange case
##### 0.9.18 - 2015.06.17
* Removed `/` from [`RegExp.escape`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) escaped characters
##### 0.9.17 - 2015.06.14
* Updated [`RegExp.escape`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) to the [latest proposal](https://github.com/benjamingr/RexExp.escape)
* Fixed conflict with webpack dev server + IE buggy behavior
##### 0.9.16 - 2015.06.11
* More correct order resolving thenable in [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) polyfill
* Uses polyfill instead of [buggy V8 `Promise`](https://github.com/zloirock/core-js/issues/78)
##### 0.9.15 - 2015.06.09
* [Collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) from `library` version return wrapped native instances
* Fixed collections prototype methods in `library` version
* Optimized [`Math.hypot`](https://github.com/zloirock/core-js/#ecmascript-6-math)
##### 0.9.14 - 2015.06.04
* Updated [`Promise.resolve` behavior](https://esdiscuss.org/topic/fixing-promise-resolve)
* Added fallback for IE11 buggy `Object.getOwnPropertyNames` + iframe
* Some other fixes
##### 0.9.13 - 2015.05.25
* Added fallback for [`Symbol` polyfill](https://github.com/zloirock/core-js/#ecmascript-6-symbol) for old Android
* Some other fixes
##### 0.9.12 - 2015.05.24
* Different instances `core-js` should use / recognize the same symbols
* Some fixes
##### 0.9.11 - 2015.05.18
* Simplified [custom build](https://github.com/zloirock/core-js/#custom-build)
* Added custom build js api
* Added `grunt-cli` to `devDependencies` for `npm run grunt`
* Some fixes
##### 0.9.10 - 2015.05.16
* Wrapped `Function#toString` for correct work wrapped methods / constructors with methods similar to the [`lodash` `isNative`](https://github.com/lodash/lodash/issues/1197)
* Added proto versions of methods to export object in `default` version for consistency with `library` version
##### 0.9.9 - 2015.05.14
* Wrapped `Object#propertyIsEnumerable` for [`Symbol` polyfill](https://github.com/zloirock/core-js/#ecmascript-6-symbol)
* [Added proto versions of methods to `library` for ES7 bind syntax](https://github.com/zloirock/core-js/issues/65)
* Some other fixes
##### 0.9.8 - 2015.05.12
* Fixed [`Math.hypot`](https://github.com/zloirock/core-js/#ecmascript-6-math) with negative arguments
* Added `Object#toString.toString` as fallback for [`lodash` `isNative`](https://github.com/lodash/lodash/issues/1197)
##### 0.9.7 - 2015.05.07
* Added [support DOM collections](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice#Streamlining_cross-browser_behavior) to IE8- `Array#slice`
##### 0.9.6 - 2015.05.01
* Added [`String#lpad`, `String#rpad`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
##### 0.9.5 - 2015.04.30
* Added cap for `Function#@@hasInstance`
* Some fixes and optimizations
##### 0.9.4 - 2015.04.27
* Fixed `RegExp` constructor
##### 0.9.3 - 2015.04.26
* Some fixes and optimizations
##### 0.9.2 - 2015.04.25
* More correct [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) unhandled rejection tracking and resolving / rejection priority
##### 0.9.1 - 2015.04.25
* Fixed `__proto__`-based [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) subclassing in some environments
##### 0.9.0 - 2015.04.24
* Added correct [symbols](https://github.com/zloirock/core-js/#ecmascript-6-symbol) descriptors
* Fixed behavior `Object.{assign, create, defineProperty, defineProperties, getOwnPropertyDescriptor, getOwnPropertyDescriptors}` with symbols
* Added [single entry points](https://github.com/zloirock/core-js/#commonjs) for `Object.{create, defineProperty, defineProperties}`
* Added [`Map#toJSON`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* Removed non-standard methods `Object#[_]` and `Function#only` - they solves syntax problems, but now in compilers available arrows and ~~in near future will be available~~ [available](http://babeljs.io/blog/2015/05/14/function-bind/) [bind syntax](https://github.com/zenparsing/es-function-bind)
* Removed non-standard undocumented methods `Symbol.{pure, set}`
* Some fixes and internal changes
##### 0.8.4 - 2015.04.18
* Uses `webpack` instead of `browserify` for browser builds - more compression-friendly result
##### 0.8.3 - 2015.04.14
* Fixed `Array` statics with single entry points
##### 0.8.2 - 2015.04.13
* [`Math.fround`](https://github.com/zloirock/core-js/#ecmascript-6-math) now also works in IE9-
* Added [`Set#toJSON`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* Some optimizations and fixes
##### 0.8.1 - 2015.04.03
* Fixed `Symbol.keyFor`
##### 0.8.0 - 2015.04.02
* Changed [CommonJS API](https://github.com/zloirock/core-js/#commonjs)
* Splitted and renamed some modules
* Added support ES3 environment (ES5 polyfill) to **all** default versions - size increases slightly (+ ~4kb w/o gzip), many issues disappear, if you don't need it - [simply include only required namespaces / features / modules](https://github.com/zloirock/core-js/#commonjs)
* Removed [abstract references](https://github.com/zenparsing/es-abstract-refs) support - proposal has been superseded =\
* [`$for.isIterable` -> `core.isIterable`, `$for.getIterator` -> `core.getIterator`](https://github.com/zloirock/core-js/#ecmascript-6-iterators), temporary available in old namespace
* Fixed iterators support in v8 `Promise.all` and `Promise.race`
* Many other fixes
##### 0.7.2 - 2015.03.09
* Some fixes
##### 0.7.1 - 2015.03.07
* Some fixes
##### 0.7.0 - 2015.03.06
* Rewritten and splitted into [CommonJS modules](https://github.com/zloirock/core-js/#commonjs)
##### 0.6.1 - 2015.02.24
* Fixed support [`Object.defineProperty`](https://github.com/zloirock/core-js/#ecmascript-5) with accessors on DOM elements on IE8
##### 0.6.0 - 2015.02.23
* Added support safe closing iteration - calling `iterator.return` on abort iteration, if it exists
* Added basic support [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) unhandled rejection tracking in shim
* Added [`Object.getOwnPropertyDescriptors`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* Removed `console` cap - creates too many problems
* Restructuring [namespaces](https://github.com/zloirock/core-js/#custom-build)
* Some fixes
##### 0.5.4 - 2015.02.15
* Some fixes
##### 0.5.3 - 2015.02.14
* Added [support binary and octal literals](https://github.com/zloirock/core-js/#ecmascript-6-number) to `Number` constructor
* Added [`Date#toISOString`](https://github.com/zloirock/core-js/#ecmascript-5)
##### 0.5.2 - 2015.02.10
* Some fixes
##### 0.5.1 - 2015.02.09
* Some fixes
##### 0.5.0 - 2015.02.08
* Systematization of modules
* Splitted [`es6` module](https://github.com/zloirock/core-js/#ecmascript-6)
* Splitted `console` module: `web.console` - only cap for missing methods, `core.log` - bound methods & additional features
* Added [`delay` method](https://github.com/zloirock/core-js/#delay)
* Some fixes
##### 0.4.10 - 2015.01.28
* [`Object.getOwnPropertySymbols`](https://github.com/zloirock/core-js/#ecmascript-6-symbol) polyfill returns array of wrapped keys
##### 0.4.9 - 2015.01.27
* FF20-24 fix
##### 0.4.8 - 2015.01.25
* Some [collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) fixes
##### 0.4.7 - 2015.01.25
* Added support frozen objects as [collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) keys
##### 0.4.6 - 2015.01.21
* Added [`Object.getOwnPropertySymbols`](https://github.com/zloirock/core-js/#ecmascript-6-symbol)
* Added [`NodeList.prototype[@@iterator]`](https://github.com/zloirock/core-js/#ecmascript-6-iterators)
* Added basic `@@species` logic - getter in native constructors
* Removed `Function#by`
* Some fixes
##### 0.4.5 - 2015.01.16
* Some fixes
##### 0.4.4 - 2015.01.11
* Enabled CSP support
##### 0.4.3 - 2015.01.10
* Added `Function` instances `name` property for IE9+
##### 0.4.2 - 2015.01.10
* `Object` static methods accept primitives
* `RegExp` constructor can alter flags (IE9+)
* Added `Array.prototype[Symbol.unscopables]`
##### 0.4.1 - 2015.01.05
* Some fixes
##### 0.4.0 - 2015.01.03
* Added [`es6.reflect`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) module:
* Added `Reflect.apply`
* Added `Reflect.construct`
* Added `Reflect.defineProperty`
* Added `Reflect.deleteProperty`
* Added `Reflect.enumerate`
* Added `Reflect.get`
* Added `Reflect.getOwnPropertyDescriptor`
* Added `Reflect.getPrototypeOf`
* Added `Reflect.has`
* Added `Reflect.isExtensible`
* Added `Reflect.preventExtensions`
* Added `Reflect.set`
* Added `Reflect.setPrototypeOf`
* `core-js` methods now can use external `Symbol.iterator` polyfill
* Some fixes
##### 0.3.3 - 2014.12.28
* [Console cap](https://github.com/zloirock/core-js/#console) excluded from node.js default builds
##### 0.3.2 - 2014.12.25
* Added cap for [ES5](https://github.com/zloirock/core-js/#ecmascript-5) freeze-family methods
* Fixed `console` bug
##### 0.3.1 - 2014.12.23
* Some fixes
##### 0.3.0 - 2014.12.23
* Optimize [`Map` & `Set`](https://github.com/zloirock/core-js/#ecmascript-6-collections):
* Use entries chain on hash table
* Fast & correct iteration
* Iterators moved to [`es6`](https://github.com/zloirock/core-js/#ecmascript-6) and [`es6.collections`](https://github.com/zloirock/core-js/#ecmascript-6-collections) modules
##### 0.2.5 - 2014.12.20
* `console` no longer shortcut for `console.log` (compatibility problems)
* Some fixes
##### 0.2.4 - 2014.12.17
* Better compliance of ES6
* Added [`Math.fround`](https://github.com/zloirock/core-js/#ecmascript-6-math) (IE10+)
* Some fixes
##### 0.2.3 - 2014.12.15
* [Symbols](https://github.com/zloirock/core-js/#ecmascript-6-symbol):
* Added option to disable addition setter to `Object.prototype` for Symbol polyfill:
* Added `Symbol.useSimple`
* Added `Symbol.useSetter`
* Added cap for well-known Symbols:
* Added `Symbol.hasInstance`
* Added `Symbol.isConcatSpreadable`
* Added `Symbol.match`
* Added `Symbol.replace`
* Added `Symbol.search`
* Added `Symbol.species`
* Added `Symbol.split`
* Added `Symbol.toPrimitive`
* Added `Symbol.unscopables`
##### 0.2.2 - 2014.12.13
* Added [`RegExp#flags`](https://github.com/zloirock/core-js/#ecmascript-6-regexp) ([December 2014 Draft Rev 29](http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#december_6_2014_draft_rev_29))
* Added [`String.raw`](https://github.com/zloirock/core-js/#ecmascript-6-string)
##### 0.2.1 - 2014.12.12
* Repair converting -0 to +0 in [native collections](https://github.com/zloirock/core-js/#ecmascript-6-collections)
##### 0.2.0 - 2014.12.06
* Added [`es7.proposals`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) and [`es7.abstract-refs`](https://github.com/zenparsing/es-abstract-refs) modules
* Added [`String#at`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* Added real [`String Iterator`](https://github.com/zloirock/core-js/#ecmascript-6-iterators), older versions used Array Iterator
* Added abstract references support:
* Added `Symbol.referenceGet`
* Added `Symbol.referenceSet`
* Added `Symbol.referenceDelete`
* Added `Function#@@referenceGet`
* Added `Map#@@referenceGet`
* Added `Map#@@referenceSet`
* Added `Map#@@referenceDelete`
* Added `WeakMap#@@referenceGet`
* Added `WeakMap#@@referenceSet`
* Added `WeakMap#@@referenceDelete`
* Added `Dict.{...methods}[@@referenceGet]`
* Removed deprecated `.contains` methods
* Some fixes
##### 0.1.5 - 2014.12.01
* Added [`Array#copyWithin`](https://github.com/zloirock/core-js/#ecmascript-6-array)
* Added [`String#codePointAt`](https://github.com/zloirock/core-js/#ecmascript-6-string)
* Added [`String.fromCodePoint`](https://github.com/zloirock/core-js/#ecmascript-6-string)
##### 0.1.4 - 2014.11.27
* Added [`Dict.mapPairs`](https://github.com/zloirock/core-js/#dict)
##### 0.1.3 - 2014.11.20
* [TC39 November meeting](https://github.com/rwaldron/tc39-notes/tree/master/es6/2014-11):
* [`.contains` -> `.includes`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-18.md#51--44-arrayprototypecontains-and-stringprototypecontains)
* `String#contains` -> [`String#includes`](https://github.com/zloirock/core-js/#ecmascript-6-string)
* `Array#contains` -> [`Array#includes`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
* `Dict.contains` -> [`Dict.includes`](https://github.com/zloirock/core-js/#dict)
* [Removed `WeakMap#clear`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-19.md#412-should-weakmapweakset-have-a-clear-method-markm)
* [Removed `WeakSet#clear`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-19.md#412-should-weakmapweakset-have-a-clear-method-markm)
##### 0.1.2 - 2014.11.19
* `Map` & `Set` bug fix
##### 0.1.1 - 2014.11.18
* Public release
core-js-3.8.2/CONTRIBUTING.md 0000664 0000000 0000000 00000011023 13774351224 0015324 0 ustar 00root root 0000000 0000000 # Contributing
Contributions are always welcome. If you don't know how you can help, you can check [issues](https://github.com/zloirock/core-js/issues) or ask @zloirock.
## How to add a new polyfill
- The polyfill implementation should be added to the [`packages/core-js/modules`](./packages/core-js/modules) directory.
- Any shared helpers should be added to the [`packages/core-js/internals`](./packages/core-js/internals) directory.
- If the implementation for the `pure` version differs from the global version, add it to [`packages/core-js-pure/override`](./packages/core-js-pure/override) directory. The rest parts of `core-js-pure` will be copied from `core-js` package.
- For export the polyfill, in almost all cases use `internals/export` helper.
- Add feature detection of the polyfill to [`tests/compat/tests.js`](./tests/compat/tests.js) and compatibility data to [`packages/core-js-compat/src/data.js`](./packages/core-js-compat/src/data.js) and [`packages/core-js-compat/src/modules-by-versions.js`](./packages/core-js-compat/src/modules-by-versions.js) (this data also used for getting the default list of polyfills at bundling).
- Add it to entry points where it's required: directories [`packages/core-js/features`](./packages/core-js/features), [`packages/core-js/es`](./packages/core-js/es), [`packages/core-js/proposals`](./packages/core-js/proposals), [`packages/core-js/stage`](./packages/core-js/stage) and [`packages/core-js/web`](./packages/core-js/web).
- Add unit tests to [`tests/tests`](./tests/tests) and [`tests/pure`](./tests/pure).
- Add tests of entry points to [`tests/commonjs.js`](./tests/commonjs).
- Add documentation to [README.md](./README.md).
## Style and standards
The coding style should follow our [`.eslintrc`](./.eslintrc.js). You can test it by calling [`npm run lint`](#testing). Different places have different syntax and standard library limitations:
- Polyfill implementations should use only ES3 syntax and standard library. Polyfills should not use another polyfill from the global namespace.
- In unit tests should be used modern syntax with our [minimalistic Babel config](./babel.config.js). Unit tests for the `pure` version should not use any modern standard library features.
- In building tools and tests, performed in Node.js, should be used only available in Node.js 4 syntax and standard library.
File names should be in the kebab-case. Name of files with polyfills should follow naming convention `namespace.subnamespase-where-required.feature-name`, for example, `esnext.promise.try`. Top-level namespace could be `es` for stable ECMAScript features, `esnext` for ECMAScript proposals and `web` for other web standards.
## Testing
Before testing, you should install dependencies:
```
$ npm i
```
You can run all tests by
```
$ npm run test
```
You can run parts of the test case separately:
- Linting:
```
$ npm run lint
```
- Global version unit tests:
```
$ npm run unit-tests
```
- `pure` version unit tests:
```
$ npm run unit-tests-pure
```
- [Promises/A+ test case](https://github.com/promises-aplus/promises-tests):
```
$ npm run promises-tests
```
- [ECMAScript `Observable` test case](https://github.com/tc39/proposal-observable):
```
$ npm run observables-tests
```
- CommonJS entry points tests:
```
$ npm run commonjs-tests
```
If you want to run tests in a certain browser at first you should build packages and test bundles:
```
$ npm run build
```
- For running the global version of the unit test case use this file:
```
tests/tests.html
```
- For running the pure version of the unit test case use this file:
```
tests/pure.html
```
- Before running [Promises/A+ test case](https://github.com/promises-aplus/promises-tests) in the browser you should bundle it:
```
$ npm run bundle-promises-tests
```
and after that use this file:
```
tests/promises-aplus.html
```
## Updating `core-js-compat` data
For updating `core-js-compat` data:
- Clone `core-js` repo.
- If you wanna add new data for a browser, run in this browser `tests/compat/index.html` and you will see which `core-js` modules required for this browser.
- If you wanna add new data for Node.js, run `tests/compat/node-runner.js` in required Node.js version and you will see results in the console.
- After getting this data, add it to [`packages/core-js-compat/src/data.js`](./packages/core-js-compat/src/data.js).
- If you wanna add new mapping (for example, add a new iOS Safari version based on Safari or Node.js based on Chrome), add it to [`packages/core-js-compat/src/mapping.js`](./packages/core-js-compat/src/mapping.js).
- Add a pull request to `core-js` repo.
core-js-3.8.2/Gruntfile.js 0000664 0000000 0000000 00000011117 13774351224 0015374 0 ustar 00root root 0000000 0000000 /* eslint-disable unicorn/filename-case */
'use strict';
const webpack = require('./.webpack.config.js');
const { banner } = require('./packages/core-js-builder/config');
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = grunt => {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-webpack');
grunt.initConfig({
pkg: grunt.file.readJSON('./package.json'),
uglify: {
build: {
files: {
'./packages/core-js-bundle/minified.js': './packages/core-js-bundle/index.js',
},
options: {
mangle: {
keep_fnames: true,
},
compress: {
keep_fnames: true,
pure_getters: true,
},
output: {
max_line_len: 32000,
},
ie8: true,
sourceMap: true,
banner,
},
},
},
clean: {
'core-js': [
'./packages/core-js/LICENSE',
],
'core-js-pure': [
'./packages/core-js-pure/*',
'!./packages/core-js-pure/override',
'!./packages/core-js-pure/.npmignore',
'!./packages/core-js-pure/package.json',
'!./packages/core-js-pure/README.md',
],
'core-js-builder': [
'./packages/core-js-builder/LICENSE',
],
'core-js-bundle': [
'./packages/core-js-bundle/scripts',
'./packages/core-js-bundle/LICENSE',
],
'core-js-compat': [
'./packages/core-js-compat/LICENSE',
],
tests: [
'./tests/bundles/*',
],
},
copy: {
'core-js': {
files: [
{
expand: true,
src: ['LICENSE'],
dest: './packages/core-js/',
},
],
},
'core-js-pure': {
files: [
{
expand: true,
src: ['LICENSE'],
dest: './packages/core-js-pure/',
}, {
expand: true,
cwd: './packages/core-js/',
src: [
'es/**',
'features/**',
'internals/**',
'modules/**',
'proposals/**',
'stable/**',
'stage/**',
'web/**',
'index.js',
'configurator.js',
'postinstall.js',
],
dest: './packages/core-js-pure/',
}, {
expand: true,
cwd: './packages/core-js-pure/override/',
src: '**',
dest: './packages/core-js-pure',
},
],
},
'core-js-builder': {
files: [
{
expand: true,
src: ['LICENSE'],
dest: './packages/core-js-builder/',
},
],
},
'core-js-bundle': {
files: [
{
expand: true,
src: ['LICENSE'],
dest: './packages/core-js-bundle/',
}, {
expand: true,
cwd: './packages/core-js/',
src: ['postinstall.js'],
dest: './packages/core-js-bundle/',
},
],
},
'core-js-compat': {
files: [
{
expand: true,
src: ['LICENSE'],
dest: './packages/core-js-compat/',
},
],
},
},
karma: {
options: {
frameworks: ['qunit'],
basePath: '.',
browsers: ['HeadlessChrome', 'PhantomJS'],
customLaunchers: {
HeadlessChrome: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-setuid-sandbox'],
},
},
singleRun: true,
},
tests: {
files: [
'tests/bundles/qunit-helpers.js',
'packages/core-js-bundle/index.js',
'tests/bundles/tests.js',
].map(src => ({ src })),
},
pure: {
files: [
'tests/bundles/qunit-helpers.js',
'tests/bundles/pure.js',
].map(src => ({ src })),
},
},
webpack,
});
grunt.registerTask('bundle', function () {
// some dependencies of this module generated in grunt tasks, so we should load it here
// eslint-disable-next-line node/global-require
const builder = require('./packages/core-js-builder');
const done = this.async();
builder({ filename: './packages/core-js-bundle/index.js' }).then(done).catch(error => {
// eslint-disable-next-line no-console
console.error(error);
process.exit(1);
});
});
};
core-js-3.8.2/LICENSE 0000664 0000000 0000000 00000002050 13774351224 0014100 0 ustar 00root root 0000000 0000000 Copyright (c) 2014-2021 Denis Pushkarev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
core-js-3.8.2/README.md 0000664 0000000 0000000 00000460117 13774351224 0014366 0 ustar 00root root 0000000 0000000 # core-js
[](#raising-funds) [](#raising-funds) [](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.npmjs.com/package/core-js) [](https://npm-stat.com/charts.html?package=core-js&package=core-js-pure&package=core-js-compat&from=2014-11-18) [](https://github.com/zloirock/core-js/actions)
[](https://github.com/zloirock/core-js/actions)
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](#ecmascript): [promises](#ecmascript-promise), [symbols](#ecmascript-symbol), [collections](#ecmascript-collections), iterators, [typed arrays](#ecmascript-typed-arrays), many other features, [ECMAScript proposals](#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
**If you looking documentation for obsolete `core-js@2`, please, check [this branch](https://github.com/zloirock/core-js/tree/v2).**
## As advertising: the author is looking for a good job -)
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## Raising funds
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer [**on Open Collective**](https://opencollective.com/core-js) or [**on Patreon**](https://www.patreon.com/zloirock) if you are interested in `core-js`.
---
---
---
### For enterprise
Available as part of the Tidelift Subscription.
The maintainers of `core-js` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-core-js?utm_source=npm-core-js&utm_medium=referral&utm_campaign=enterprise)
---
[*Example of usage*](http://goo.gl/a2xexl):
```js
import 'core-js'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*You can load only required features*:
```js
import 'core-js/features/array/from'; // <- at the top of your entry point
import 'core-js/features/array/flat'; // <- at the top of your entry point
import 'core-js/features/set'; // <- at the top of your entry point
import 'core-js/features/promise'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*Or use it without global namespace pollution*:
```js
import from from 'core-js-pure/features/array/from';
import flat from 'core-js-pure/features/array/flat';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
flat([1, [2, 3], [4, [5]]], 2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
### Index
- [Usage](#usage)
- [Installation](#installation)
- [`postinstall` message](#postinstall-message)
- [CommonJS API](#commonjs-api)
- [Babel](#babel)
- [`@babel/polyfill`](#babelpolyfill)
- [`@babel/preset-env`](#babelpreset-env)
- [`@babel/runtime`](#babelruntime)
- [Configurable level of aggressiveness](#configurable-level-of-aggressiveness)
- [Custom build](#custom-build)
- [Compatibility data](#compatibility-data)
- [Supported engines](#supported-engines)
- [Features](#features)
- [ECMAScript](#ecmascript)
- [ECMAScript: Object](#ecmascript-object)
- [ECMAScript: Function](#ecmascript-function)
- [ECMAScript: Array](#ecmascript-array)
- [ECMAScript: String and RegExp](#ecmascript-string-and-regexp)
- [ECMAScript: Number](#ecmascript-number)
- [ECMAScript: Math](#ecmascript-math)
- [ECMAScript: Date](#ecmascript-date)
- [ECMAScript: Promise](#ecmascript-promise)
- [ECMAScript: Symbol](#ecmascript-symbol)
- [ECMAScript: Collections](#ecmascript-collections)
- [ECMAScript: Typed Arrays](#ecmascript-typed-arrays)
- [ECMAScript: Reflect](#ecmascript-reflect)
- [ECMAScript: JSON](#ecmascript-json)
- [ECMAScript: globalThis](#ecmascript-globalthis)
- [ECMAScript proposals](#ecmascript-proposals)
- [stage 4 proposals](#stage-4-proposals)
- [stage 3 proposals](#stage-3-proposals)
- [stage 2 proposals](#stage-2-proposals)
- [stage 1 proposals](#stage-1-proposals)
- [stage 0 proposals](#stage-0-proposals)
- [pre-stage 0 proposals](#pre-stage-0-proposals)
- [Web standards](#web-standards)
- [`setTimeout` and `setInterval`](#settimeout-and-setinterval)
- [`setImmediate`](#setimmediate)
- [`queueMicrotask`](#queuemicrotask)
- [`URL` and `URLSearchParams`](#url-and-urlsearchparams)
- [iterable DOM collections](#iterable-dom-collections)
- [Iteration helpers](#iteration-helpers)
- [Missing polyfills](#missing-polyfills)
- [Contributing](./CONTRIBUTING.md)
- [Security policy](https://github.com/zloirock/core-js/blob/master/SECURITY.md)
- [Changelog](./CHANGELOG.md)
## Usage[⬆](#index)
### Installation:[⬆](#index)
```
// global version
npm install --save core-js@3.8.2
// version without global namespace pollution
npm install --save core-js-pure@3.8.2
// bundled global version
npm install --save core-js-bundle@3.8.2
```
Already bundled version of `core-js` [on CDN](https://unpkg.com/core-js-bundle@3.8.2) ([minified version](https://unpkg.com/core-js-bundle@3.8.2/minified.js)).
### `postinstall` message[⬆](#index)
The `core-js` project needs your help, so the package shows a message about it after installation. If it causes problems for you, you can disable it:
```
ADBLOCK=true npm install
// or
DISABLE_OPENCOLLECTIVE=true npm install
// or
npm install --loglevel silent
```
### CommonJS API[⬆](#index)
You can import only-required-for-you polyfills, like in examples at the top of `README.md`. Available CommonJS entry points for all polyfilled methods / constructors and namespaces. Just some examples:
```js
// polyfill all `core-js` features:
import "core-js";
// polyfill only stable `core-js` features - ES and web standards:
import "core-js/stable";
// polyfill only stable ES features:
import "core-js/es";
// if you want to polyfill `Set`:
// all `Set`-related features, with ES proposals:
import "core-js/features/set";
// stable required for `Set` ES features and features from web standards
// (DOM collections iterator in this case):
import "core-js/stable/set";
// only stable ES features required for `Set`:
import "core-js/es/set";
// the same without global namespace pollution:
import Set from "core-js-pure/features/set";
import Set from "core-js-pure/stable/set";
import Set from "core-js-pure/es/set";
// if you want to polyfill just required methods:
import "core-js/features/set/intersection";
import "core-js/stable/queue-microtask";
import "core-js/es/array/from";
// polyfill reflect metadata proposal:
import "core-js/proposals/reflect-metadata";
// polyfill all stage 2+ proposals:
import "core-js/stage/2";
```
##### Caveats when using CommonJS API:[⬆](#index)
* `modules` path is an internal API, does not inject all required dependencies and can be changed in minor or patch releases. Use it only for a custom build and/or if you know what are you doing.
* If you use `core-js` with the extension of native objects, recommended load all `core-js` modules at the top of the entry point of your application, otherwise, you can have conflicts.
* For example, Google Maps use their own `Symbol.iterator`, conflicting with `Array.from`, `URLSearchParams` and/or something else from `core-js`, see [related issues](https://github.com/zloirock/core-js/search?q=Google+Maps&type=Issues).
* Such conflicts also resolvable by discrovering and manual adding each conflicting entry from `core-js`.
* `core-js` is extremely modular and uses a lot of very tiny modules, because of that for usage in browsers bundle up `core-js` instead of usage loader for each file, otherwise, you will have hundreds of requests.
#### CommonJS and prototype methods without global namespace pollution[⬆](#index)
In the `pure` version, we can't pollute prototypes of native constructors. Because of that, prototype methods transformed into static methods like in examples above. But with transpilers, we can use one more trick - [bind operator and virtual methods](https://github.com/tc39/proposal-bind-operator). Special for that, available `/virtual/` entry points. Example:
```js
import fill from 'core-js-pure/features/array/virtual/fill';
import findIndex from 'core-js-pure/features/array/virtual/find-index';
Array(10)::fill(0).map((a, b) => b * b)::findIndex(it => it && !(it % 8)); // => 4
// or
import { fill, findIndex } from 'core-js-pure/features/array/virtual';
Array(10)::fill(0).map((a, b) => b * b)::findIndex(it => it && !(it % 8)); // => 4
```
### Babel[⬆](#index)
`core-js` is integrated with `babel` and is the base for polyfilling-related `babel` features:
#### `@babel/polyfill`[⬆](#index)
[`@babel/polyfill`](http://babeljs.io/docs/usage/polyfill) [**IS** just the import of stable `core-js` features and `regenerator-runtime`](https://github.com/babel/babel/blob/c8bb4500326700e7dc68ce8c4b90b6482c48d82f/packages/babel-polyfill/src/index.js) for generators and async functions, so if you load `@babel/polyfill` - you load the global version of `core-js` without ES proposals.
Now it's deprecated in favour of separate inclusion of required parts of `core-js` and `regenerator-runtime` and, for preventing breaking changes, left on `core-js@2`.
As a full equal of `@babel/polyfill`, you can use this:
```js
import 'core-js/stable';
import 'regenerator-runtime/runtime';
```
#### `@babel/preset-env`[⬆](#index)
[`@babel/preset-env`](https://github.com/babel/babel/tree/master/packages/babel-preset-env) has `useBuiltIns` option, which optimizes working with global version of `core-js`. With `useBuiltIns` option, you should also set `corejs` option to used version of `core-js`, like `corejs: '3.8'`.
> **Warning!** Recommended to specify used minor `core-js` version, like `corejs: '3.8'`, instead of `corejs: 3`, since with `corejs: 3` will not be injected modules which were added in minor `core-js` releases.
- `useBuiltIns: 'entry'` replaces imports of `core-js` to import only required for a target environment modules. So, for example,
```js
import 'core-js/stable';
```
with `chrome 71` target will be replaced just to:
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modules/web.immediate";
```
It works for all entry points of global version of `core-js` and their combinations, for example for
```js
import 'core-js/es';
import 'core-js/proposals/set-methods';
import 'core-js/features/set/map';
```
with `chrome 71` target you will have as a result:
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modules/esnext.set.difference";
import "core-js/modules/esnext.set.intersection";
import "core-js/modules/esnext.set.is-disjoint-from";
import "core-js/modules/esnext.set.is-subset-of";
import "core-js/modules/esnext.set.is-superset-of";
import "core-js/modules/esnext.set.map";
import "core-js/modules/esnext.set.symmetric-difference";
import "core-js/modules/esnext.set.union";
```
- `useBuiltIns: 'usage'` adds to the top of each file import of polyfills for features used in this file and not supported by target environments, so for:
```js
// first file:
var set = new Set([1, 2, 3]);
// second file:
var array = Array.of(1, 2, 3);
```
if target contains an old environment like `IE 11` we will have something like:
```js
// first file:
import 'core-js/modules/es.array.iterator';
import 'core-js/modules/es.object.to-string';
import 'core-js/modules/es.set';
var set = new Set([1, 2, 3]);
// second file:
import 'core-js/modules/es.array.of';
var array = Array.of(1, 2, 3);
```
By default, `@babel/preset-env` with `useBuiltIns: 'usage'` option only polyfills stable features, but you can enable polyfilling of proposals by `proposals` option, as `corejs: { version: '3.8', proposals: true }`.
#### `@babel/runtime`[⬆](#index)
[`@babel/runtime`](http://babeljs.io/docs/plugins/transform-runtime/) with `corejs: 3` option simplifies work with `core-js-pure`. It automatically replaces usage of modern features from JS standard library to imports from the version of `core-js` without global namespace pollution, so instead of:
```js
import from from 'core-js-pure/stable/array/from';
import flat from 'core-js-pure/stable/array/flat';
import Set from 'core-js-pure/stable/set';
import Promise from 'core-js-pure/stable/promise';
from(new Set([1, 2, 3, 2, 1]));
flat([1, [2, 3], [4, [5]]], 2);
Promise.resolve(32).then(x => console.log(x));
```
you can write just:
```js
Array.from(new Set([1, 2, 3, 2, 1]));
[1, [2, 3], [4, [5]]].flat(2);
Promise.resolve(32).then(x => console.log(x));
```
By default, `@babel/runtime` only polyfills stable features, but like in `@babel/preset-env`, you can enable polyfilling of proposals by `proposals` option, as `corejs: { version: 3, proposals: true }`.
> **Warning!** If you use `@babel/preset-env` and `@babel/runtime` together, use `corejs` option only in one place since it's duplicate functionality and will cause conflicts.
### Configurable level of aggressiveness[⬆](#index)
By default, `core-js` sets polyfills only when they are required. That means that `core-js` checks if a feature is available and works correctly or not and if it has no problems, `core-js` use native implementation.
But sometimes `core-js` feature detection could be too strict for your case. For example, `Promise` constructor requires the support of unhandled rejection tracking and `@@species`.
Sometimes we could have inverse problem - knowingly broken environment with problems not covered by `core-js` feature detection.
For those cases, we could redefine this behaviour for certain polyfills:
```js
const configurator = require('core-js/configurator');
configurator({
useNative: ['Promise'], // polyfills will be used only if natives completely unavailable
usePolyfill: ['Array.from', 'String.prototype.padEnd'], // polyfills will be used anyway
useFeatureDetection: ['Map', 'Set'], // default behaviour
});
require('core-js');
```
It does not work with some features. Also, if you change the default behaviour, even `core-js` internals may not work correctly.
### Custom build[⬆](#index)
For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. You could use [`core-js-builder`](/packages/core-js-builder) package for that.
### Compatibility data[⬆](#index)
[`core-js-compat`](/packages/core-js-compat) package contains data about the necessity of `core-js` modules and API for getting a list of required `core-js` modules by `browserslist` query.
## Supported engines[⬆](#index)
**Tested in:**
- Chrome 26+
- Firefox 4+
- Safari 5+
- Opera 12+
- Internet Explorer 8+ (sure, IE8 with ES3 limitations; IE7- also should work, but no longer tested)
- Edge
- Android Browser 2.3+
- iOS Safari 5.1+
- PhantomJS 1.9+
- NodeJS 0.8+
...and it doesn't mean `core-js` will not work in other engines, they just have not been tested.
## Features:[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)
```
### ECMAScript[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es
```
#### ECMAScript: Object[⬆](#index)
Modules [`es.object.assign`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.assign.js), [`es.object.is`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.is.js), [`es.object.set-prototype-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.set-prototype-of.js), [`es.object.to-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.to-string.js), [`es.object.freeze`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.freeze.js), [`es.object.seal`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.seal.js), [`es.object.prevent-extensions`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.prevent-extensions.js), [`es.object.is-frozen`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.is-frozen.js), [`es.object.is-sealed`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.is-sealed.js), [`es.object.is-extensible`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.is-extensible.js), [`es.object.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.get-own-property-descriptor.js), [`es.object.get-own-property-descriptors`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.get-own-property-descriptors.js), [`es.object.get-prototype-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.get-prototype-of.js), [`es.object.keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.keys.js), [`es.object.values`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.values.js), [`es.object.entries`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.entries.js), [`es.object.get-own-property-names`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.get-own-property-names.js) and [`es.object.from-entries`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.from-entries.js).
Just ES5 features: [`es.object.create`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.create.js), [`es.object.define-property`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.define-property.js) and [`es.object.define-properties`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.es.object.define-properties.js).
[ES2017 Annex B](https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__) - modules [`es.object.define-setter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.define-setter.js), [`es.object.define-getter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.define-getter.js), [`es.object.lookup-setter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.lookup-setter.js) and [`es.object.lookup-getter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.object.lookup-getter.js)
```js
class Object {
toString(): string; // ES2015+ fix: @@toStringTag support
__defineGetter__(property: PropertyKey, getter: Function): void;
__defineSetter__(property: PropertyKey, setter: Function): void;
__lookupGetter__(property: PropertyKey): Function | void;
__lookupSetter__(property: PropertyKey): Function | void;
static assign(target: Object, ...sources: Array): Object;
static create(prototype: Object | null, properties?: { [property: PropertyKey]: PropertyDescriptor }): Object;
static defineProperties(object: Object, properties: { [property: PropertyKey]: PropertyDescriptor })): Object;
static defineProperty(object: Object, property: PropertyKey, attributes: PropertyDescriptor): Object;
static entries(object: Object): Array<[string, mixed]>;
static freeze(object: any): any;
static fromEntries(iterable: Iterable<[key, value]>): Object;
static getOwnPropertyDescriptor(object: any, property: PropertyKey): PropertyDescriptor | void;
static getOwnPropertyDescriptors(object: any): { [property: PropertyKey]: PropertyDescriptor };
static getOwnPropertyNames(object: any): Array;
static getPrototypeOf(object: any): Object | null;
static is(value1: any, value2: any): boolean;
static isExtensible(object: any): boolean;
static isFrozen(object: any): boolean;
static isSealed(object: any): boolean;
static keys(object: any): Array;
static preventExtensions(object: any): any;
static seal(object: any): any;
static setPrototypeOf(target: any, prototype: Object | null): any; // required __proto__ - IE11+
static values(object: any): Array;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/object
core-js(-pure)/es|stable|features/object/assign
core-js(-pure)/es|stable|features/object/is
core-js(-pure)/es|stable|features/object/set-prototype-of
core-js(-pure)/es|stable|features/object/get-prototype-of
core-js(-pure)/es|stable|features/object/create
core-js(-pure)/es|stable|features/object/define-property
core-js(-pure)/es|stable|features/object/define-properties
core-js(-pure)/es|stable|features/object/get-own-property-descriptor
core-js(-pure)/es|stable|features/object/get-own-property-descriptors
core-js(-pure)/es|stable|features/object/keys
core-js(-pure)/es|stable|features/object/values
core-js(-pure)/es|stable|features/object/entries
core-js(-pure)/es|stable|features/object/get-own-property-names
core-js(-pure)/es|stable|features/object/freeze
core-js(-pure)/es|stable|features/object/from-entries
core-js(-pure)/es|stable|features/object/seal
core-js(-pure)/es|stable|features/object/prevent-extensions
core-js(-pure)/es|stable|features/object/is-frozen
core-js(-pure)/es|stable|features/object/is-sealed
core-js(-pure)/es|stable|features/object/is-extensible
core-js/es|stable|features/object/to-string
core-js(-pure)/es|stable|features/object/define-getter
core-js(-pure)/es|stable|features/object/define-setter
core-js(-pure)/es|stable|features/object/lookup-getter
core-js(-pure)/es|stable|features/object/lookup-setter
```
[*Examples*](https://goo.gl/sqY5mD):
```js
let foo = { q: 1, w: 2 };
let bar = { e: 3, r: 4 };
let baz = { t: 5, y: 6 };
Object.assign(foo, bar, baz); // => foo = { q: 1, w: 2, e: 3, r: 4, t: 5, y: 6 }
Object.is(NaN, NaN); // => true
Object.is(0, -0); // => false
Object.is(42, 42); // => true
Object.is(42, '42'); // => false
function Parent() {}
function Child() {}
Object.setPrototypeOf(Child.prototype, Parent.prototype);
new Child() instanceof Child; // => true
new Child() instanceof Parent; // => true
let object = {
[Symbol.toStringTag]: 'Foo'
};
'' + object; // => '[object Foo]'
Object.keys('qwe'); // => ['0', '1', '2']
Object.getPrototypeOf('qwe') === String.prototype; // => true
Object.values({ a: 1, b: 2, c: 3 }); // => [1, 2, 3]
Object.entries({ a: 1, b: 2, c: 3 }); // => [['a', 1], ['b', 2], ['c', 3]]
for (let [key, value] of Object.entries({ a: 1, b: 2, c: 3 })) {
console.log(key); // => 'a', 'b', 'c'
console.log(value); // => 1, 2, 3
}
// Shallow object cloning with prototype and descriptors:
let copy = Object.create(Object.getPrototypeOf(object), Object.getOwnPropertyDescriptors(object));
// Mixin:
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
const map = new Map([['a', 1], ['b', 2]]);
Object.fromEntries(map); // => { a: 1, b: 2 }
class Unit {
constructor(id) {
this.id = id;
}
toString() {
return `unit${ this.id }`;
}
}
const units = new Set([new Unit(101), new Unit(102)]);
Object.fromEntries(units.entries()); // => { unit101: Unit { id: 101 }, unit102: Unit { id: 102 } }
```
#### ECMAScript: Function[⬆](#index)
Modules [`es.function.name`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.function.name.js), [`es.function.has-instance`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.function.has-instance.js). Just ES5: [`es.function.bind`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.function.bind.js).
```js
class Function {
name: string;
bind(thisArg: any, ...args: Array): Function;
@@hasInstance(value: any): boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/es|stable|features/function
core-js/es|stable|features/function/name
core-js/es|stable|features/function/has-instance
core-js/es|stable|features/function/bind
core-js/es|stable|features/function/virtual/bind
```
[*Example*](http://goo.gl/zqu3Wp):
```js
(function foo() {}).name // => 'foo'
console.log.bind(console, 42)(43); // => 42 43
```
#### ECMAScript: Array[⬆](#index)
Modules [`es.array.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.from.js), [`es.array.is-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.is-array.js), [`es.array.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.of.js), [`es.array.copy-within`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.copy-within.js), [`es.array.fill`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.fill.js), [`es.array.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.find.js), [`es.array.find-index`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.find-index.js), [`es.array.iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.iterator.js), [`es.array.includes`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.includes.js), [`es.array.slice`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.slice.js), [`es.array.join`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.join.js), [`es.array.index-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.index-of.js), [`es.array.last-index-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.last-index-of.js), [`es.array.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.every.js), [`es.array.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.some.js), [`es.array.for-each`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.for-each.js), [`es.array.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.map.js), [`es.array.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.filter.js), [`es.array.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.reduce.js), [`es.array.reduce-right`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.reduce-right.js), [`es.array.reverse`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.reverse.js), [`es.array.sort`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.sort.js), [`es.array.flat`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.flat.js), [`es.array.flat-map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.flat-map.js), [`es.array.unscopables.flat`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.unscopables.flat.js) and [`es.array.unscopables.flat-map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array.unscopables.flat-map.js)
```js
class Array {
concat(...args: Array): Array; // with adding support of @@isConcatSpreadable and @@species
copyWithin(target: number, start: number, end?: number): this;
entries(): Iterator<[index, value]>;
every(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): boolean;
fill(value: any, start?: number, end?: number): this;
filter(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): Array; // with adding support of @@species
find(callbackfn: (value: any, index: number, target: any) => boolean), thisArg?: any): any;
findIndex(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): number;
flat(depthArg?: number = 1): Array;
flatMap(mapFn: (value: any, index: number, target: any) => any, thisArg: any): Array;
forEach(callbackfn: (value: any, index: number, target: any) => void, thisArg?: any): void;
includes(searchElement: any, from?: number): boolean;
indexOf(searchElement: any, from?: number): number;
join(separator: string = ','): string;
keys(): Iterator;
lastIndexOf(searchElement: any, from?: number): number;
map(mapFn: (value: any, index: number, target: any) => any, thisArg?: any): Array; // with adding support of @@species
reduce(callbackfn: (memo: any, value: any, index: number, target: any) => any, initialValue?: any): any;
reduceRight(callbackfn: (memo: any, value: any, index: number, target: any) => any, initialValue?: any): any;
reverse(): this; // Safari 12.0 bug fix
slice(start?: number, end?: number): Array; // with adding support of @@species
splice(start?: number, deleteCount?: number, ...items: Array): Array; // with adding support of @@species
some(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): boolean;
sort(comparefn?: (a: any, b: any) => number): this;
values(): Iterator;
@@iterator(): Iterator;
@@unscopables: { [newMethodNames: string]: true };
static from(items: Iterable | ArrayLike, mapFn?: (value: any, index: number) => any, thisArg?: any): Array;
static isArray(value: any): boolean;
static of(...args: Array): Array;
}
class Arguments {
@@iterator(): Iterator; // available only in core-js methods
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/array
core-js(-pure)/es|stable|features/array/from
core-js(-pure)/es|stable|features/array/of
core-js(-pure)/es|stable|features/array/is-array
core-js(-pure)/es|stable|features/array/concat
core-js(-pure)/es|stable|features/array/entries
core-js(-pure)/es|stable|features/array/every
core-js(-pure)/es|stable|features/array/copy-within
core-js(-pure)/es|stable|features/array/fill
core-js(-pure)/es|stable|features/array/filter
core-js(-pure)/es|stable|features/array/find
core-js(-pure)/es|stable|features/array/find-index
core-js(-pure)/es|stable|features/array/flat
core-js(-pure)/es|stable|features/array/flat-map
core-js(-pure)/es|stable|features/array/for-each
core-js(-pure)/es|stable|features/array/includes
core-js(-pure)/es|stable|features/array/index-of
core-js(-pure)/es|stable|features/array/iterator
core-js(-pure)/es|stable|features/array/join
core-js(-pure)/es|stable|features/array/keys
core-js(-pure)/es|stable|features/array/last-index-of
core-js(-pure)/es|stable|features/array/map
core-js(-pure)/es|stable|features/array/reduce
core-js(-pure)/es|stable|features/array/reduce-right
core-js(-pure)/es|stable|features/array/reverse
core-js(-pure)/es|stable|features/array/slice
core-js(-pure)/es|stable|features/array/splice
core-js(-pure)/es|stable|features/array/some
core-js(-pure)/es|stable|features/array/sort
core-js(-pure)/es|stable|features/array/values
core-js(-pure)/es|stable|features/array/virtual/concat
core-js(-pure)/es|stable|features/array/virtual/copy-within
core-js(-pure)/es|stable|features/array/virtual/entries
core-js(-pure)/es|stable|features/array/virtual/every
core-js(-pure)/es|stable|features/array/virtual/fill
core-js(-pure)/es|stable|features/array/virtual/filter
core-js(-pure)/es|stable|features/array/virtual/find
core-js(-pure)/es|stable|features/array/virtual/find-index
core-js(-pure)/es|stable|features/array/virtual/flat
core-js(-pure)/es|stable|features/array/virtual/flat-map
core-js(-pure)/es|stable|features/array/virtual/for-each
core-js(-pure)/es|stable|features/array/virtual/includes
core-js(-pure)/es|stable|features/array/virtual/index-of
core-js(-pure)/es|stable|features/array/virtual/iterator
core-js(-pure)/es|stable|features/array/virtual/join
core-js(-pure)/es|stable|features/array/virtual/keys
core-js(-pure)/es|stable|features/array/virtual/last-index-of
core-js(-pure)/es|stable|features/array/virtual/map
core-js(-pure)/es|stable|features/array/virtual/reduce
core-js(-pure)/es|stable|features/array/virtual/reduce-right
core-js(-pure)/es|stable|features/array/virtual/reverse
core-js(-pure)/es|stable|features/array/virtual/slice
core-js(-pure)/es|stable|features/array/virtual/some
core-js(-pure)/es|stable|features/array/virtual/sort
core-js(-pure)/es|stable|features/array/virtual/splice
core-js(-pure)/es|stable|features/array/virtual/values
```
[*Examples*](https://goo.gl/Tegvq4):
```js
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
Array.from({ 0: 1, 1: 2, 2: 3, length: 3 }); // => [1, 2, 3]
Array.from('123', Number); // => [1, 2, 3]
Array.from('123', it => it * it); // => [1, 4, 9]
Array.of(1); // => [1]
Array.of(1, 2, 3); // => [1, 2, 3]
let array = ['a', 'b', 'c'];
for (let value of array) console.log(value); // => 'a', 'b', 'c'
for (let value of array.values()) console.log(value); // => 'a', 'b', 'c'
for (let key of array.keys()) console.log(key); // => 0, 1, 2
for (let [key, value] of array.entries()) {
console.log(key); // => 0, 1, 2
console.log(value); // => 'a', 'b', 'c'
}
function isOdd(value) {
return value % 2;
}
[4, 8, 15, 16, 23, 42].find(isOdd); // => 15
[4, 8, 15, 16, 23, 42].findIndex(isOdd); // => 2
[4, 8, 15, 16, 23, 42].find(isNaN); // => undefined
[4, 8, 15, 16, 23, 42].findIndex(isNaN); // => -1
Array(5).fill(42); // => [42, 42, 42, 42, 42]
[1, 2, 3, 4, 5].copyWithin(0, 3); // => [4, 5, 3, 4, 5]
[1, 2, 3].includes(2); // => true
[1, 2, 3].includes(4); // => false
[1, 2, 3].includes(2, 2); // => false
[NaN].indexOf(NaN); // => -1
[NaN].includes(NaN); // => true
Array(1).indexOf(undefined); // => -1
Array(1).includes(undefined); // => true
[1, [2, 3], [4, 5]].flat(); // => [1, 2, 3, 4, 5]
[1, [2, [3, [4]]], 5].flat(); // => [1, 2, [3, [4]], 5]
[1, [2, [3, [4]]], 5].flat(3); // => [1, 2, 3, 4, 5]
[{ a: 1, b: 2 }, { a: 3, b: 4 }, { a: 5, b: 6 }].flatMap(it => [it.a, it.b]); // => [1, 2, 3, 4, 5, 6]
```
#### ECMAScript: String and RegExp[⬆](#index)
The main part of `String` features: modules [`es.string.from-code-point`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.from-code-point.js), [`es.string.raw`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.raw.js), [`es.string.iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.iterator.js), [`es.string.split`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.split.js), [`es.string.code-point-at`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.code-point-at.js), [`es.string.ends-with`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.ends-with.js), [`es.string.includes`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.includes.js), [`es.string.repeat`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.repeat.js), [`es.string.pad-start`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.pad-start.js), [`es.string.pad-end`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.pad-end.js), [`es.string.starts-with`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.starts-with.js), [`es.string.trim`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.trim.js), [`es.string.trim-start`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.trim-start.js), [`es.string.trim-end`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.trim-end.js), [`es.string.match-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.match-all.js), [`es.string.replace-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.replace-all.js).
Adding support of well-known [symbols](#ecmascript-symbol) `@@match`, `@@replace`, `@@search` and `@@split` and direct `.exec` calls to related `String` methods, modules [`es.string.match`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.match.js), [`es.string.replace`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.replace.js), [`es.string.search`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.search.js) and [`es.string.split`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.split.js).
Annex B HTML methods. Ugly, but it's also the part of the spec. Modules [`es.string.anchor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.anchor.js), [`es.string.big`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.big.js), [`es.string.blink`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.blink.js), [`es.string.bold`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.bold.js), [`es.string.fixed`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.fixed.js), [`es.string.fontcolor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.fontcolor.js), [`es.string.fontsize`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.fontsize.js), [`es.string.italics`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.italics.js), [`es.string.link`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.link.js), [`es.string.small`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.small.js), [`es.string.strike`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.strike.js), [`es.string.sub`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.sub.js) and [`es.string.sup`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.string.sup.js).
`RegExp` features: modules [`es.regexp.constructor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.regexp.constructor.js), [`es.regexp.flags`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.regexp.flags.js), [`es.regexp.sticky`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.regexp.sticky.js) and [`es.regexp.test`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.regexp.test.js).
```js
class String {
static fromCodePoint(...codePoints: Array): string;
static raw({ raw: Array }, ...substitutions: Array): string;
split(separator: string, limit?: number): Array;
includes(searchString: string, position?: number): boolean;
startsWith(searchString: string, position?: number): boolean;
endsWith(searchString: string, position?: number): boolean;
repeat(count: number): string;
padStart(length: number, fillStr?: string = ' '): string;
padEnd(length: number, fillStr?: string = ' '): string;
codePointAt(pos: number): number | void;
match(template: any): any; // ES2015+ fix for support @@match
matchAll(regexp: RegExp): Iterator;
replace(template: any, replacer: any): any; // ES2015+ fix for support @@replace
replaceAll(searchValue: string | RegExp, replaceString: string | (searchValue, index, this) => string): string;
search(template: any): any; // ES2015+ fix for support @@search
split(template: any, limit: any): any; // ES2015+ fix for support @@split, some fixes for old engines
trim(): string;
trimLeft(): string;
trimRight(): string;
trimStart(): string;
trimEnd(): string;
anchor(name: string): string;
big(): string;
blink(): string;
bold(): string;
fixed(): string;
fontcolor(color: string): string;
fontsize(size: any): string;
italics(): string;
link(url: string): string;
small(): string;
strike(): string;
sub(): string;
sup(): string;
@@iterator(): Iterator;
}
class RegExp {
constructor(pattern: RegExp | string, flags?: string): RegExp; // support of sticky (`y`) flag; can alter flags
exec(): Array | null; // IE8 fixes
test(string: string): boolean; // delegation to `.exec`
toString(): string; // ES2015+ fix - generic
@@match(string: string): Array | null;
@@replace(string: string, replaceValue: Function | string): string;
@@search(string: string): number;
@@split(string: string, limit: number): Array;
readonly attribute flags: string; // IE9+
readonly attribute sticky: boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/string
core-js(-pure)/es|stable|features/string/from-code-point
core-js(-pure)/es|stable|features/string/raw
core-js(-pure)/es|stable|features/string/code-point-at
core-js(-pure)/es|stable|features/string/ends-with
core-js(-pure)/es|stable|features/string/includes
core-js(-pure)/es|stable|features/string/starts-with
core-js/es|stable|features/string/match
core-js(-pure)/es|stable|features/string/match-all
core-js(-pure)/es|stable|features/string/pad-start
core-js(-pure)/es|stable|features/string/pad-end
core-js(-pure)/es|stable|features/string/repeat
core-js/es|stable|features/string/replace
core-js(-pure)/es|stable|features/string/replace-all
core-js/es|stable|features/string/search
core-js/es|stable|features/string/split
core-js(-pure)/es|stable|features/string/trim
core-js(-pure)/es|stable|features/string/trim-start
core-js(-pure)/es|stable|features/string/trim-end
core-js(-pure)/es|stable|features/string/trim-left
core-js(-pure)/es|stable|features/string/trim-right
core-js(-pure)/es|stable|features/string/anchor
core-js(-pure)/es|stable|features/string/big
core-js(-pure)/es|stable|features/string/blink
core-js(-pure)/es|stable|features/string/bold
core-js(-pure)/es|stable|features/string/fixed
core-js(-pure)/es|stable|features/string/fontcolor
core-js(-pure)/es|stable|features/string/fontsize
core-js(-pure)/es|stable|features/string/italics
core-js(-pure)/es|stable|features/string/link
core-js(-pure)/es|stable|features/string/small
core-js(-pure)/es|stable|features/string/strike
core-js(-pure)/es|stable|features/string/sub
core-js(-pure)/es|stable|features/string/sup
core-js(-pure)/es|stable|features/string/iterator
core-js(-pure)/es|stable|features/string/virtual/includes
core-js(-pure)/es|stable|features/string/virtual/starts-with
core-js(-pure)/es|stable|features/string/virtual/ends-with
core-js(-pure)/es|stable|features/string/virtual/match-all
core-js(-pure)/es|stable|features/string/virtual/repeat
core-js(-pure)/es|stable|features/string/virtual/replace-all
core-js(-pure)/es|stable|features/string/virtual/pad-start
core-js(-pure)/es|stable|features/string/virtual/pad-end
core-js(-pure)/es|stable|features/string/virtual/code-point-at
core-js(-pure)/es|stable|features/string/virtual/trim
core-js(-pure)/es|stable|features/string/virtual/trim-start
core-js(-pure)/es|stable|features/string/virtual/trim-end
core-js(-pure)/es|stable|features/string/virtual/trim-left
core-js(-pure)/es|stable|features/string/virtual/trim-right
core-js(-pure)/es|stable|features/string/virtual/anchor
core-js(-pure)/es|stable|features/string/virtual/big
core-js(-pure)/es|stable|features/string/virtual/blink
core-js(-pure)/es|stable|features/string/virtual/bold
core-js(-pure)/es|stable|features/string/virtual/fixed
core-js(-pure)/es|stable|features/string/virtual/fontcolor
core-js(-pure)/es|stable|features/string/virtual/fontsize
core-js(-pure)/es|stable|features/string/virtual/italics
core-js(-pure)/es|stable|features/string/virtual/link
core-js(-pure)/es|stable|features/string/virtual/small
core-js(-pure)/es|stable|features/string/virtual/strike
core-js(-pure)/es|stable|features/string/virtual/sub
core-js(-pure)/es|stable|features/string/virtual/sup
core-js(-pure)/es|stable|features/string/virtual/iterator
core-js/es|stable|features/regexp
core-js/es|stable|features/regexp/constructor
core-js(-pure)/es|stable|features/regexp/flags
core-js/es|stable|features/regexp/sticky
core-js/es|stable|features/regexp/test
core-js/es|stable|features/regexp/to-string
```
[*Examples*](http://es6.zloirock.ru/#for(var%20val%20of%20'a%F0%A0%AE%B7b')%7B%0A%20%20log(val)%3B%20%2F%2F%20%3D%3E%20'a'%2C%20'%F0%A0%AE%B7'%2C%20'b'%0A%7D%0A%0Alog('foobarbaz'.includes('bar'))%3B%20%20%20%20%20%20%2F%2F%20%3D%3E%20true%0Alog('foobarbaz'.includes('bar'%2C%204))%3B%20%20%20%2F%2F%20%3D%3E%20false%0Alog('foobarbaz'.startsWith('foo'))%3B%20%20%20%20%2F%2F%20%3D%3E%20true%0Alog('foobarbaz'.startsWith('bar'%2C%203))%3B%20%2F%2F%20%3D%3E%20true%0Alog('foobarbaz'.endsWith('baz'))%3B%20%20%20%20%20%20%2F%2F%20%3D%3E%20true%0Alog('foobarbaz'.endsWith('bar'%2C%206))%3B%20%20%20%2F%2F%20%3D%3E%20true%0A%0Alog('string'.repeat(3))%3B%20%2F%2F%20%3D%3E%20'stringstringstring'%0A%0Alog('hello'.padStart(10))%3B%20%20%20%20%20%20%20%20%20%2F%2F%20%3D%3E%20'%20%20%20%20%20hello'%0Alog('hello'.padStart(10%2C%20'1234'))%3B%20%2F%2F%20%3D%3E%20'12341hello'%0Alog('hello'.padEnd(10))%3B%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20%3D%3E%20'hello%20%20%20%20%20'%0Alog('hello'.padEnd(10%2C%20'1234'))%3B%20%20%20%2F%2F%20%3D%3E%20'hello12341'%0A%0Alog('%F0%A0%AE%B7'.codePointAt(0))%3B%20%2F%2F%20%3D%3E%20134071%0A%0Avar%20name%20%3D%20'Bob'%3B%0Alog(String.raw%60Hi%5Cn%24%7Bname%7D!%60)%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20%3D%3E%20'Hi%5C%5CnBob!'%20(ES6%20template%20string%20syntax)%0Alog(String.raw(%7B%20raw%3A%20'test'%20%7D%2C%200%2C%201%2C%202))%3B%20%2F%2F%20%3D%3E%20%2F%2F%20't0e1s2t'%0A%0Alog('foo'.bold())%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20%3D%3E%20'%3Cb%3Efoo%3C%2Fb%3E'%0Alog('bar'.anchor('a%22b'))%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20%3D%3E%20'%3Ca%20name%3D%22a%26quot%3Bb%22%3Ebar%3C%2Fa%3E'%0Alog('baz'.link('http%3A%2F%2Fexample.com'))%3B%20%2F%2F%20%3D%3E%20'%3Ca%20href%3D%22http%3A%2F%2Fexample.com%22%3Ebaz%3C%2Fa%3E'%0A%0Alog(RegExp(%2F.%2Fg%2C%20'm'))%3B%20%2F%2F%20%3D%3E%20%2F.%2Fm%0A%0Alog(%2Ffoo%2F.flags)%3B%20%20%20%20%2F%2F%20%3D%3E%20''%0Alog(%2Ffoo%2Fgim.flags)%3B%20%2F%2F%20%3D%3E%20'gim'%0A%0Alog(RegExp('foo'%2C%20'y').sticky)%3B%20%2F%2F%20%3D%3E%20true%0A%0Aconst%20text%20%3D%20'First%20line%5CnSecond%20line'%3B%0Aconst%20regex%20%3D%20RegExp('(%5C%5CS%2B)%20line%5C%5Cn%3F'%2C%20'y')%3B%0A%0Alog(regex.exec(text)%5B1%5D)%3B%20%2F%2F%20%3D%3E%20'First'%0Alog(regex.exec(text)%5B1%5D)%3B%20%2F%2F%20%3D%3E%20'Second'%0Alog(regex.exec(text))%3B%20%20%20%20%2F%2F%20%3D%3E%20null%0A%0Alog('foo'.match(%7B%5BSymbol.match%5D%3A%20_%20%3D%3E%201%7D))%3B%20%20%20%20%20%2F%2F%20%3D%3E%201%0Alog('foo'.replace(%7B%5BSymbol.replace%5D%3A%20_%20%3D%3E%202%7D))%3B%20%2F%2F%20%3D%3E%202%0Alog('foo'.search(%7B%5BSymbol.search%5D%3A%20_%20%3D%3E%203%7D))%3B%20%20%20%2F%2F%20%3D%3E%203%0Alog('foo'.split(%7B%5BSymbol.split%5D%3A%20_%20%3D%3E%204%7D))%3B%20%20%20%20%20%2F%2F%20%3D%3E%204%0A%0Alog(RegExp.prototype.toString.call(%7Bsource%3A%20'foo'%2C%20flags%3A%20'bar'%7D))%3B%0A%0Alog('%20%20%20hello%20%20%20'.trimLeft())%3B%20%20%2F%2F%20%3D%3E%20'hello%20%20%20'%0Alog('%20%20%20hello%20%20%20'.trimRight())%3B%20%2F%2F%20%3D%3E%20'%20%20%20hello'%0Alog('%20%20%20hello%20%20%20'.trimStart())%3B%20%2F%2F%20%3D%3E%20'hello%20%20%20'%0Alog('%20%20%20hello%20%20%20'.trimEnd())%3B%20%20%20%2F%2F%20%3D%3E%20'%20%20%20hello'%0A%0Afor%20(let%20%5B_%2C%20d%2C%20D%5D%20of%20'1111a2b3cccc'.matchAll(%2F(%5Cd)(%5CD)%2Fg))%20%7B%0A%20%20log(d%2C%20D)%3B%20%2F%2F%20%3D%3E%201%20a%2C%202%20b%2C%203%20c%0A%7D%0A%0Alog('Test%20abc%20test%20test%20abc%20test.'.replaceAll('abc'%2C%20'foo'))%3B%20%2F%2F%20-%3E%20'Test%20foo%20test%20test%20foo%20test.'):
```js
for (let value of 'a𠮷b') {
console.log(value); // => 'a', '𠮷', 'b'
}
'foobarbaz'.includes('bar'); // => true
'foobarbaz'.includes('bar', 4); // => false
'foobarbaz'.startsWith('foo'); // => true
'foobarbaz'.startsWith('bar', 3); // => true
'foobarbaz'.endsWith('baz'); // => true
'foobarbaz'.endsWith('bar', 6); // => true
'string'.repeat(3); // => 'stringstringstring'
'hello'.padStart(10); // => ' hello'
'hello'.padStart(10, '1234'); // => '12341hello'
'hello'.padEnd(10); // => 'hello '
'hello'.padEnd(10, '1234'); // => 'hello12341'
'𠮷'.codePointAt(0); // => 134071
String.fromCodePoint(97, 134071, 98); // => 'a𠮷b'
let name = 'Bob';
String.raw`Hi\n${name}!`; // => 'Hi\\nBob!' (ES2015 template string syntax)
String.raw({ raw: 'test' }, 0, 1, 2); // => 't0e1s2t'
'foo'.bold(); // => 'foo '
'bar'.anchor('a"b'); // => 'bar '
'baz'.link('http://example.com'); // => 'baz '
RegExp(/./g, 'm'); // => /./m
/foo/.flags; // => ''
/foo/gim.flags; // => 'gim'
RegExp('foo', 'y').sticky; // => true
const text = 'First line\nSecond line';
const regex = RegExp('(\\S+) line\\n?', 'y');
regex.exec(text)[1]; // => 'First'
regex.exec(text)[1]; // => 'Second'
regex.exec(text); // => null
'foo'.match({ [Symbol.match]: () => 1 }); // => 1
'foo'.replace({ [Symbol.replace]: () => 2 }); // => 2
'foo'.search({ [Symbol.search]: () => 3 }); // => 3
'foo'.split({ [Symbol.split]: () => 4 }); // => 4
RegExp.prototype.toString.call({ source: 'foo', flags: 'bar' }); // => '/foo/bar'
' hello '.trimLeft(); // => 'hello '
' hello '.trimRight(); // => ' hello'
' hello '.trimStart(); // => 'hello '
' hello '.trimEnd(); // => ' hello'
for (let [_, d, D] of '1111a2b3cccc'.matchAll(/(\d)(\D)/g)) {
console.log(d, D); // => 1 a, 2 b, 3 c
}
'Test abc test test abc test.'.replaceAll('abc', 'foo'); // -> 'Test foo test test foo test.'
```
#### ECMAScript: Number[⬆](#index)
Module [`es.number.constructor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.constructor.js). `Number` constructor support binary and octal literals, [*example*](http://goo.gl/jRd6b3):
```js
Number('0b1010101'); // => 85
Number('0o7654321'); // => 2054353
```
Modules [`es.number.epsilon`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.epsilon.js), [`es.number.is-finite`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.is-finite.js), [`es.number.is-integer`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.is-integer.js), [`es.number.is-nan`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.is-nan.js), [`es.number.is-safe-integer`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.is-safe-integer.js), [`es.number.max-safe-integer`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.max-safe-integer.js), [`es.number.min-safe-integer`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.min-safe-integer.js), [`es.number.parse-float`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.parse-float.js), [`es.number.parse-int`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.parse-int.js), [`es.number.to-fixed`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.to-fixed.js), [`es.number.to-precision`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.number.to-precision.js), [`es.parse-int`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.parse-int.js), [`es.parse-float`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.parse-float.js).
```js
class Number {
constructor(value: any): number;
toFixed(digits: number): string;
toPrecision(precision: number): string;
static isFinite(number: any): boolean;
static isNaN(number: any): boolean;
static isInteger(number: any): boolean;
static isSafeInteger(number: any): boolean;
static parseFloat(string: string): number;
static parseInt(string: string, radix?: number = 10): number;
static EPSILON: number;
static MAX_SAFE_INTEGER: number;
static MIN_SAFE_INTEGER: number;
}
function parseFloat(string: string): number;
function parseInt(string: string, radix?: number = 10): number;
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/number
core-js/es|stable|features/number/constructor
core-js(-pure)/es|stable|features/number/is-finite
core-js(-pure)/es|stable|features/number/is-nan
core-js(-pure)/es|stable|features/number/is-integer
core-js(-pure)/es|stable|features/number/is-safe-integer
core-js(-pure)/es|stable|features/number/parse-float
core-js(-pure)/es|stable|features/number/parse-int
core-js(-pure)/es|stable|features/number/epsilon
core-js(-pure)/es|stable|features/number/max-safe-integer
core-js(-pure)/es|stable|features/number/min-safe-integer
core-js(-pure)/es|stable|features/number/to-fixed
core-js(-pure)/es|stable|features/number/to-precision
core-js(-pure)/es|stable|features/parse-float
core-js(-pure)/es|stable|features/parse-int
```
#### ECMAScript: Math[⬆](#index)
Modules [`es.math.acosh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.acosh.js), [`es.math.asinh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.asinh.js), [`es.math.atanh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.atanh.js), [`es.math.cbrt`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.cbrt.js), [`es.math.clz32`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.clz32.js), [`es.math.cosh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.cosh.js), [`es.math.expm1`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.expm1.js), [`es.math.fround`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.fround.js), [`es.math.hypot`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.hypot.js), [`es.math.imul`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.imul.js), [`es.math.log10`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.log10.js), [`es.math.log1p`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.log1p.js), [`es.math.log2`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.log2.js), [`es.math.sign`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.sign.js), [`es.math.sinh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.sinh.js), [`es.math.tanh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.tanh.js), [`es.math.trunc`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.trunc.js).
```js
namespace Math {
acosh(number: number): number;
asinh(number: number): number;
atanh(number: number): number;
cbrt(number: number): number;
clz32(number: number): number;
cosh(number: number): number;
expm1(number: number): number;
fround(number: number): number;
hypot(...args: Array): number;
imul(number1: number, number2: number): number;
log1p(number: number): number;
log10(number: number): number;
log2(number: number): number;
sign(number: number): 1 | -1 | 0 | -0 | NaN;
sinh(number: number): number;
tanh(number: number): number;
trunc(number: number): number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/math
core-js(-pure)/es|stable|features/math/acosh
core-js(-pure)/es|stable|features/math/asinh
core-js(-pure)/es|stable|features/math/atanh
core-js(-pure)/es|stable|features/math/cbrt
core-js(-pure)/es|stable|features/math/clz32
core-js(-pure)/es|stable|features/math/cosh
core-js(-pure)/es|stable|features/math/expm1
core-js(-pure)/es|stable|features/math/fround
core-js(-pure)/es|stable|features/math/hypot
core-js(-pure)/es|stable|features/math/imul
core-js(-pure)/es|stable|features/math/log1p
core-js(-pure)/es|stable|features/math/log10
core-js(-pure)/es|stable|features/math/log2
core-js(-pure)/es|stable|features/math/sign
core-js(-pure)/es|stable|features/math/sinh
core-js(-pure)/es|stable|features/math/tanh
core-js(-pure)/es|stable|features/math/trunc
```
#### ECMAScript: Date[⬆](#index)
Modules [`es.date.to-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.date.to-string.js), ES5 features with fixes: [`es.date.now`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.date.now.js), [`es.date.to-iso-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.date.to-iso-string.js), [`es.date.to-json`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.date.to-json.js) and [`es.date.to-primitive`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.date.to-primitive.js).
```js
class Date {
toISOString(): string;
toJSON(): string;
toString(): string;
@@toPrimitive(hint: 'default' | 'number' | 'string'): string | number;
static now(): number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/es|stable|features/date
core-js/es|stable|features/date/to-string
core-js(-pure)/es|stable|features/date/now
core-js(-pure)/es|stable|features/date/to-iso-string
core-js(-pure)/es|stable|features/date/to-json
core-js(-pure)/es|stable|features/date/to-primitive
```
[*Example*](http://goo.gl/haeHLR):
```js
new Date(NaN).toString(); // => 'Invalid Date'
```
#### ECMAScript: Promise[⬆](#index)
Modules [`es.aggregate-error`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.aggregate-error.js), [`es.promise`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.promise.js), [`es.promise.all-settled`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.promise.all-settled.js), [`es.promise.any`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.promise.any.js) and [`es.promise.finally`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.promise.finally.js).
```js
class AggregateError {
constructor(errors: Iterable, message: string): AggregateError;
errors: Array;
message: string;
}
class Promise {
constructor(executor: (resolve: Function, reject: Function) => void): Promise;
then(onFulfilled: Function, onRejected: Function): Promise;
catch(onRejected: Function): Promise;
finally(onFinally: Function): Promise;
static resolve(x: any): Promise;
static reject(r: any): Promise;
static all(iterable: Iterable): Promise;
static allSettled(iterable: Iterable): Promise;
static any(promises: Iterable): Promise;
static race(iterable: Iterable): Promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/aggregate-error
core-js(-pure)/es|stable|features/promise
core-js(-pure)/es|stable|features/promise/all-settled
core-js(-pure)/es|stable|features/promise/any
core-js(-pure)/es|stable|features/promise/finally
```
Basic [*example*](http://goo.gl/vGrtUC):
```js
function sleepRandom(time) {
return new Promise((resolve, reject) => {
setTimeout(resolve, time * 1e3, 0 | Math.random() * 1e3);
});
}
console.log('Run'); // => Run
sleepRandom(5).then(result => {
console.log(result); // => 869, after 5 sec.
return sleepRandom(10);
}).then(result => {
console.log(result); // => 202, after 10 sec.
}).then(() => {
console.log('immediately after'); // => immediately after
throw Error('Irror!');
}).then(() => {
console.log('will not be displayed');
}).catch(x => console.log(x)); // => => Error: Irror!
```
`Promise.resolve` and `Promise.reject` [*example*](http://goo.gl/vr8TN3):
```js
Promise.resolve(42).then(x => console.log(x)); // => 42
Promise.reject(42).catch(x => console.log(x)); // => 42
Promise.resolve($.getJSON('/data.json')); // => ES promise
```
`Promise#finally` [*example*](https://goo.gl/AhyBbJ):
```js
Promise.resolve(42).finally(() => console.log('You will see it anyway'));
Promise.reject(42).finally(() => console.log('You will see it anyway'));
```
`Promise.all` [*example*](http://goo.gl/RdoDBZ):
```js
Promise.all([
'foo',
sleepRandom(5),
sleepRandom(15),
sleepRandom(10) // after 15 sec:
]).then(x => console.log(x)); // => ['foo', 956, 85, 382]
```
`Promise.race` [*example*](http://goo.gl/L8ovkJ):
```js
function timeLimit(promise, time) {
return Promise.race([promise, new Promise((resolve, reject) => {
setTimeout(reject, time * 1e3, Error('Await > ' + time + ' sec'));
})]);
}
timeLimit(sleepRandom(5), 10).then(x => console.log(x)); // => 853, after 5 sec.
timeLimit(sleepRandom(15), 10).catch(x => console.log(x)); // Error: Await > 10 sec
```
`Promise.allSettled` [*example*](https://goo.gl/PXXLNJ):
```js
Promise.allSettled([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3),
]).then(console.log); // => [{ value: 1, status: 'fulfilled' }, { reason: 2, status: 'rejected' }, { value: 3, status: 'fulfilled' }]
```
`Promise.any` [*example*](https://goo.gl/iErvmp):
```js
Promise.any([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3),
]).then(console.log); // => 1
Promise.any([
Promise.reject(1),
Promise.reject(2),
Promise.reject(3),
]).catch(({ errors }) => console.log(errors)); // => [1, 2, 3]
```
[Example](http://goo.gl/wnQS4j) with async functions:
```js
let delay = time => new Promise(resolve => setTimeout(resolve, time))
async function sleepRandom(time) {
await delay(time * 1e3);
return 0 | Math.random() * 1e3;
}
async function sleepError(time, msg) {
await delay(time * 1e3);
throw Error(msg);
}
(async () => {
try {
console.log('Run'); // => Run
console.log(await sleepRandom(5)); // => 936, after 5 sec.
let [a, b, c] = await Promise.all([
sleepRandom(5),
sleepRandom(15),
sleepRandom(10)
]);
console.log(a, b, c); // => 210 445 71, after 15 sec.
await sleepError(5, 'Error!');
console.log('Will not be displayed');
} catch (e) {
console.log(e); // => Error: 'Error!', after 5 sec.
}
})();
```
##### Unhandled rejection tracking[⬆](#index)
In Node.js, like in native implementation, available events [`unhandledRejection`](https://nodejs.org/api/process.html#process_event_unhandledrejection) and [`rejectionHandled`](https://nodejs.org/api/process.html#process_event_rejectionhandled):
```js
process.on('unhandledRejection', (reason, promise) => console.log('unhandled', reason, promise));
process.on('rejectionHandled', (promise) => console.log('handled', promise));
let promise = Promise.reject(42);
// unhandled 42 [object Promise]
setTimeout(() => promise.catch(() => {}), 1e3);
// handled [object Promise]
```
In a browser on rejection, by default, you will see notify in the console, or you can add a custom handler and a handler on handling unhandled, [*example*](http://goo.gl/Wozskl):
```js
window.addEventListener('unhandledrejection', e => console.log('unhandled', e.reason, e.promise));
window.addEventListener('rejectionhandled', e => console.log('handled', e.reason, e.promise));
// or
window.onunhandledrejection = e => console.log('unhandled', e.reason, e.promise);
window.onrejectionhandled = e => console.log('handled', e.reason, e.promise);
let promise = Promise.reject(42);
// => unhandled 42 [object Promise]
setTimeout(() => promise.catch(() => {}), 1e3);
// => handled 42 [object Promise]
```
#### ECMAScript: Symbol[⬆](#index)
Modules [`es.symbol`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.js), [`es.symbol.async-iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.async-iterator.js), [`es.symbol.description`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.description.js), [`es.symbol.has-instance`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.has-instance.js), [`es.symbol.is-concat-spreadable`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.is-concat-spreadable.js), [`es.symbol.iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.iterator.js), [`es.symbol.match`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.match.js), [`es.symbol.replace`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.replace.js), [`es.symbol.search`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.search.js), [`es.symbol.species`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.species.js), [`es.symbol.split`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.split.js), [`es.symbol.to-primitive`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.to-primitive.js), [`es.symbol.to-string-tag`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.to-string-tag.js), [`es.symbol.unscopables`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.symbol.unscopables.js), [`es.math.to-string-tag`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.math.to-string-tag.js).
```js
class Symbol {
constructor(description?): symbol;
readonly attribute description: string | void;
static asyncIterator: @@asyncIterator;
static hasInstance: @@hasInstance;
static isConcatSpreadable: @@isConcatSpreadable;
static iterator: @@iterator;
static match: @@match;
static replace: @@replace;
static search: @@search;
static species: @@species;
static split: @@split;
static toPrimitive: @@toPrimitive;
static toStringTag: @@toStringTag;
static unscopables: @@unscopables;
static for(key: string): symbol;
static keyFor(sym: symbol): string;
static useSimple(): void;
static useSetter(): void;
}
class Object {
static getOwnPropertySymbols(object: any): Array;
}
```
Also wrapped some methods for correct work with `Symbol` polyfill.
```js
class Object {
static create(prototype: Object | null, properties?: { [property: PropertyKey]: PropertyDescriptor }): Object;
static defineProperties(object: Object, properties: { [property: PropertyKey]: PropertyDescriptor })): Object;
static defineProperty(object: Object, property: PropertyKey, attributes: PropertyDescriptor): Object;
static getOwnPropertyDescriptor(object: any, property: PropertyKey): PropertyDescriptor | void;
static getOwnPropertyNames(object: any): Array;
propertyIsEnumerable(key: PropertyKey): boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/symbol
core-js(-pure)/es|stable|features/symbol/async-iterator
core-js/es|stable|features/symbol/description
core-js(-pure)/es|stable|features/symbol/has-instance
core-js(-pure)/es|stable|features/symbol/is-concat-spreadable
core-js(-pure)/es|stable|features/symbol/iterator
core-js(-pure)/es|stable|features/symbol/match
core-js(-pure)/es|stable|features/symbol/replace
core-js(-pure)/es|stable|features/symbol/search
core-js(-pure)/es|stable|features/symbol/species
core-js(-pure)/es|stable|features/symbol/split
core-js(-pure)/es|stable|features/symbol/to-primitive
core-js(-pure)/es|stable|features/symbol/to-string-tag
core-js(-pure)/es|stable|features/symbol/unscopables
core-js(-pure)/es|stable|features/symbol/for
core-js(-pure)/es|stable|features/symbol/key-for
core-js(-pure)/es|stable|features/object/get-own-property-symbols
core-js(-pure)/es|stable|features/math/to-string-tag
```
[*Basic example*](http://goo.gl/BbvWFc):
```js
let Person = (() => {
let NAME = Symbol('name');
return class {
constructor(name) {
this[NAME] = name;
}
getName() {
return this[NAME];
}
}
})();
let person = new Person('Vasya');
console.log(person.getName()); // => 'Vasya'
console.log(person['name']); // => undefined
console.log(person[Symbol('name')]); // => undefined, symbols are uniq
for (let key in person) console.log(key); // => nothing, symbols are not enumerable
```
`Symbol.for` & `Symbol.keyFor` [*example*](http://goo.gl/0pdJjX):
```js
let symbol = Symbol.for('key');
symbol === Symbol.for('key'); // true
Symbol.keyFor(symbol); // 'key'
```
[*Example*](http://goo.gl/mKVOQJ) with methods for getting own object keys:
```js
let object = { a: 1 };
Object.defineProperty(object, 'b', { value: 2 });
object[Symbol('c')] = 3;
Object.keys(object); // => ['a']
Object.getOwnPropertyNames(object); // => ['a', 'b']
Object.getOwnPropertySymbols(object); // => [Symbol(c)]
Reflect.ownKeys(object); // => ['a', 'b', Symbol(c)]
```
[*Symbol#description getter*](https://goo.gl/MWizfc):
```js
Symbol('foo').description; // => 'foo'
Symbol().description; // => undefined
```
##### Caveats when using `Symbol` polyfill:[⬆](#index)
* We can't add new primitive type, `Symbol` returns object.
* `Symbol.for` and `Symbol.keyFor` can't be shimmed cross-realm.
* By default, to hide the keys, `Symbol` polyfill defines setter in `Object.prototype`. For this reason, uncontrolled creation of symbols can cause memory leak and the `in` operator is not working correctly with `Symbol` polyfill: `Symbol() in {} // => true`.
You can disable defining setters in `Object.prototype`. [Example](http://goo.gl/N5UD7J):
```js
Symbol.useSimple();
let symbol1 = Symbol('symbol1');
let object1 = {};
object1[symbol1] = true;
for (let key in object1) console.log(key); // => 'Symbol(symbol1)_t.qamkg9f3q', w/o native Symbol
Symbol.useSetter();
let symbol2 = Symbol('symbol2');
let object2 = {};
object2[symbol2] = true;
for (let key in object2) console.log(key); // nothing
```
* Currently, `core-js` not adds setters to `Object.prototype` for well-known symbols for correct work something like `Symbol.iterator in foo`. It can cause problems with their enumerability.
* Some problems possible with environment exotic objects (for example, IE `localStorage`).
#### ECMAScript: Collections[⬆](#index)
`core-js` uses native collections in most case, just fixes methods / constructor, if it's required, and in old environment uses fast polyfill (O(1) lookup).
#### Map[⬆](#index)
Module [`es.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.map.js).
```js
class Map {
constructor(iterable?: Iterable<[key, value]>): Map;
clear(): void;
delete(key: any): boolean;
forEach(callbackfn: (value: any, key: any, target: any) => void, thisArg: any): void;
get(key: any): any;
has(key: any): boolean;
set(key: any, val: any): this;
values(): Iterator;
keys(): Iterator;
entries(): Iterator<[key, value]>;
@@iterator(): Iterator<[key, value]>;
readonly attribute size: number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/map
```
[*Examples*](http://goo.gl/GWR7NI):
```js
let array = [1];
let map = new Map([['a', 1], [42, 2]]);
map.set(array, 3).set(true, 4);
console.log(map.size); // => 4
console.log(map.has(array)); // => true
console.log(map.has([1])); // => false
console.log(map.get(array)); // => 3
map.forEach((val, key) => {
console.log(val); // => 1, 2, 3, 4
console.log(key); // => 'a', 42, [1], true
});
map.delete(array);
console.log(map.size); // => 3
console.log(map.get(array)); // => undefined
console.log(Array.from(map)); // => [['a', 1], [42, 2], [true, 4]]
let map = new Map([['a', 1], ['b', 2], ['c', 3]]);
for (let [key, value] of map) {
console.log(key); // => 'a', 'b', 'c'
console.log(value); // => 1, 2, 3
}
for (let value of map.values()) console.log(value); // => 1, 2, 3
for (let key of map.keys()) console.log(key); // => 'a', 'b', 'c'
for (let [key, value] of map.entries()) {
console.log(key); // => 'a', 'b', 'c'
console.log(value); // => 1, 2, 3
}
```
#### Set[⬆](#index)
Module [`es.set`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.set.js).
```js
class Set {
constructor(iterable?: Iterable): Set;
add(key: any): this;
clear(): void;
delete(key: any): boolean;
forEach((value: any, key: any, target: any) => void, thisArg: any): void;
has(key: any): boolean;
values(): Iterator;
keys(): Iterator;
entries(): Iterator<[value, value]>;
@@iterator(): Iterator;
readonly attribute size: number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/set
```
[*Examples*](http://goo.gl/bmhLwg):
```js
let set = new Set(['a', 'b', 'a', 'c']);
set.add('d').add('b').add('e');
console.log(set.size); // => 5
console.log(set.has('b')); // => true
set.forEach(it => {
console.log(it); // => 'a', 'b', 'c', 'd', 'e'
});
set.delete('b');
console.log(set.size); // => 4
console.log(set.has('b')); // => false
console.log(Array.from(set)); // => ['a', 'c', 'd', 'e']
let set = new Set([1, 2, 3, 2, 1]);
for (let value of set) console.log(value); // => 1, 2, 3
for (let value of set.values()) console.log(value); // => 1, 2, 3
for (let key of set.keys()) console.log(key); // => 1, 2, 3
for (let [key, value] of set.entries()) {
console.log(key); // => 1, 2, 3
console.log(value); // => 1, 2, 3
}
```
#### WeakMap[⬆](#index)
Module [`es.weak-map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.weak-map.js).
```js
class WeakMap {
constructor(iterable?: Iterable<[key, value]>): WeakMap;
delete(key: Object): boolean;
get(key: Object): any;
has(key: Object): boolean;
set(key: Object, val: any): this;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/weak-map
```
[*Examples*](http://goo.gl/SILXyw):
```js
let a = [1];
let b = [2];
let c = [3];
let weakmap = new WeakMap([[a, 1], [b, 2]]);
weakmap.set(c, 3).set(b, 4);
console.log(weakmap.has(a)); // => true
console.log(weakmap.has([1])); // => false
console.log(weakmap.get(a)); // => 1
weakmap.delete(a);
console.log(weakmap.get(a)); // => undefined
// Private properties store:
let Person = (() => {
let names = new WeakMap;
return class {
constructor(name) {
names.set(this, name);
}
getName() {
return names.get(this);
}
}
})();
let person = new Person('Vasya');
console.log(person.getName()); // => 'Vasya'
for (let key in person) console.log(key); // => only 'getName'
```
#### WeakSet[⬆](#index)
Module [`es.weak-set`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.weak-set.js).
```js
class WeakSet {
constructor(iterable?: Iterable): WeakSet;
add(key: Object): this;
delete(key: Object): boolean;
has(key: Object): boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/weak-set
```
[*Examples*](http://goo.gl/TdFbEx):
```js
let a = [1];
let b = [2];
let c = [3];
let weakset = new WeakSet([a, b, a]);
weakset.add(c).add(b).add(c);
console.log(weakset.has(b)); // => true
console.log(weakset.has([2])); // => false
weakset.delete(b);
console.log(weakset.has(b)); // => false
```
##### Caveats when using collections polyfill:[⬆](#index)
* Weak-collections polyfill stores values as hidden properties of keys. It works correct and not leak in most cases. However, it is desirable to store a collection longer than its keys.
#### ECMAScript: Typed Arrays[⬆](#index)
Implementations and fixes for `ArrayBuffer`, `DataView`, Typed Arrays constructors, static and prototype methods. Typed arrays work only in environments with support descriptors (IE9+), `ArrayBuffer` and `DataView` should work anywhere.
Modules [`es.array-buffer.constructor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array-buffer.constructor.js), [`es.array-buffer.is-view`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array-buffer.is-view.js), [`es.array-buffer.slice`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.array-buffer.slice.js), [`es.data-view`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.data-view.js), [`es.typed-array.int8-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.int8-array.js), [`es.typed-array.uint8-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.uint8-array.js), [`es.typed-array.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.uint8-clamped-array.js), [`es.typed-array.int16-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.int16-array.js), [`es.typed-array.uint16-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.uint16-array.js), [`es.typed-array.int32-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed.int32-array.js), [`es.typed-array.uint32-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.uint32-array.js), [`es.typed-array.float32-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.float32-array.js), [`es.typed-array.float64-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.float64-array.js), [`es.typed-array.copy-within`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.copy-within.js), [`es.typed-array.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.every.js), [`es.typed-array.fill`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.fill.js), [`es.typed-array.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.filter.js), [`es.typed-array.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.find.js), [`es.typed-array.find-index`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.find-index.js), [`es.typed-array.for-each`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.for-each.js), [`es.typed-array.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.from.js), [`es.typed-array.includes`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.includes.js), [`es.typed-array.index-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.index-of.js), [`es.typed-array.iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.iterator.js), [`es.typed-array.last-index-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.last-index-of.js), [`es.typed-array.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.map.js), [`es.typed-array.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.of.js), [`es.typed-array.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.reduce.js), [`es.typed-array.reduce-right`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.reduce-right.js), [`es.typed-array.reverse`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.reverse.js), [`es.typed-array.set`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.set.js), [`es.typed-array.slice`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.slice.js), [`es.typed-array.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.some.js), [`es.typed-array.sort`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.sort.js), [`es.typed-array.subarray`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.subarray.js), [`es.typed-array.to-locale-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.to-locale-string.js) and [`es.typed-array.to-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.typed-array.to-string.js).
```js
class ArrayBuffer {
constructor(length: any): ArrayBuffer;
slice(start: any, end: any): ArrayBuffer;
readonly attribute byteLength: number;
static isView(arg: any): boolean;
}
class DataView {
constructor(buffer: ArrayBuffer, byteOffset?: number, byteLength?: number): DataView;
getInt8(offset: any): int8;
getUint8(offset: any): uint8
getInt16(offset: any, littleEndian?: boolean = false): int16;
getUint16(offset: any, littleEndian?: boolean = false): uint16;
getInt32(offset: any, littleEndian?: boolean = false): int32;
getUint32(offset: any, littleEndian?: boolean = false): uint32;
getFloat32(offset: any, littleEndian?: boolean = false): float32;
getFloat64(offset: any, littleEndian?: boolean = false): float64;
setInt8(offset: any, value: any): void;
setUint8(offset: any, value: any): void;
setInt16(offset: any, value: any, littleEndian?: boolean = false): void;
setUint16(offset: any, value: any, littleEndian?: boolean = false): void;
setInt32(offset: any, value: any, littleEndian?: boolean = false): void;
setUint32(offset: any, value: any, littleEndian?: boolean = false): void;
setFloat32(offset: any, value: any, littleEndian?: boolean = false): void;
setFloat64(offset: any, value: any, littleEndian?: boolean = false): void;
readonly attribute buffer: ArrayBuffer;
readonly attribute byteLength: number;
readonly attribute byteOffset: number;
}
class [
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array,
] {
constructor(length: number): %TypedArray%;
constructor(object: %TypedArray% | Iterable | ArrayLike): %TypedArray%;
constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number): %TypedArray%;
copyWithin(target: number, start: number, end?: number): this;
every(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): boolean;
fill(value: number, start?: number, end?: number): this;
filter(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): %TypedArray%;
find(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean), thisArg?: any): any;
findIndex(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): number;
forEach(callbackfn: (value: number, index: number, target: %TypedArray%) => void, thisArg?: any): void;
includes(searchElement: any, from?: number): boolean;
indexOf(searchElement: any, from?: number): number;
join(separator: string = ','): string;
lastIndexOf(searchElement: any, from?: number): number;
map(mapFn: (value: number, index: number, target: %TypedArray%) => number, thisArg?: any): %TypedArray%;
reduce(callbackfn: (memo: any, value: number, index: number, target: %TypedArray%) => any, initialValue?: any): any;
reduceRight(callbackfn: (memo: any, value: number, index: number, target: %TypedArray%) => any, initialValue?: any): any;
reverse(): this;
set(array: ArrayLike, offset?: number): void;
slice(start?: number, end?: number): %TypedArray%;
some(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): boolean;
sort(comparefn?: (a: number, b: number) => number): this;
subarray(begin?: number, end?: number): %TypedArray%;
toString(): string;
toLocaleString(): string;
values(): Iterator;
keys(): Iterator;
entries(): Iterator<[index, value]>;
@@iterator(): Iterator;
readonly attribute buffer: ArrayBuffer;
readonly attribute byteLength: number;
readonly attribute byteOffset: number;
readonly attribute length: number;
BYTES_PER_ELEMENT: number;
static from(items: Iterable | ArrayLike, mapFn?: (value: any, index: number) => any, thisArg?: any): %TypedArray%;
static of(...args: Array): %TypedArray%;
static BYTES_PER_ELEMENT: number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/es|stable|features/array-buffer
core-js/es|stable|features/array-buffer/constructor
core-js/es|stable|features/array-buffer/is-view
core-js/es|stable|features/array-buffer/slice
core-js/es|stable|features/data-view
core-js/es|stable|features/typed-array
core-js/es|stable|features/typed-array/int8-array
core-js/es|stable|features/typed-array/uint8-array
core-js/es|stable|features/typed-array/uint8-clamped-array
core-js/es|stable|features/typed-array/int16-array
core-js/es|stable|features/typed-array/uint16-array
core-js/es|stable|features/typed-array/int32-array
core-js/es|stable|features/typed-array/uint32-array
core-js/es|stable|features/typed-array/float32-array
core-js/es|stable|features/typed-array/float64-array
core-js/es|stable|features/typed-array/copy-within
core-js/es|stable|features/typed-array/entries
core-js/es|stable|features/typed-array/every
core-js/es|stable|features/typed-array/fill
core-js/es|stable|features/typed-array/filter
core-js/es|stable|features/typed-array/find
core-js/es|stable|features/typed-array/find-index
core-js/es|stable|features/typed-array/for-each
core-js/es|stable|features/typed-array/from
core-js/es|stable|features/typed-array/includes
core-js/es|stable|features/typed-array/index-of
core-js/es|stable|features/typed-array/iterator
core-js/es|stable|features/typed-array/join
core-js/es|stable|features/typed-array/keys
core-js/es|stable|features/typed-array/last-index-of
core-js/es|stable|features/typed-array/map
core-js/es|stable|features/typed-array/of
core-js/es|stable|features/typed-array/reduce
core-js/es|stable|features/typed-array/reduce-right
core-js/es|stable|features/typed-array/reverse
core-js/es|stable|features/typed-array/set
core-js/es|stable|features/typed-array/slice
core-js/es|stable|features/typed-array/some
core-js/es|stable|features/typed-array/sort
core-js/es|stable|features/typed-array/subarray
core-js/es|stable|features/typed-array/to-locale-string
core-js/es|stable|features/typed-array/to-string
core-js/es|stable|features/typed-array/values
```
[*Examples*](http://goo.gl/yla75z):
```js
new Int32Array(4); // => [0, 0, 0, 0]
new Uint8ClampedArray([1, 2, 3, 666]); // => [1, 2, 3, 255]
new Float32Array(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
let buffer = new ArrayBuffer(8);
let view = new DataView(buffer);
view.setFloat64(0, 123.456, true);
new Uint8Array(buffer.slice(4)); // => [47, 221, 94, 64]
Int8Array.of(1, 1.5, 5.7, 745); // => [1, 1, 5, -23]
Uint8Array.from([1, 1.5, 5.7, 745]); // => [1, 1, 5, 233]
let typed = new Uint8Array([1, 2, 3]);
let a = typed.slice(1); // => [2, 3]
typed.buffer === a.buffer; // => false
let b = typed.subarray(1); // => [2, 3]
typed.buffer === b.buffer; // => true
typed.filter(it => it % 2); // => [1, 3]
typed.map(it => it * 1.5); // => [1, 3, 4]
for (let value of typed) console.log(value); // => 1, 2, 3
for (let value of typed.values()) console.log(value); // => 1, 2, 3
for (let key of typed.keys()) console.log(key); // => 0, 1, 2
for (let [key, value] of typed.entries()) {
console.log(key); // => 0, 1, 2
console.log(value); // => 1, 2, 3
}
```
##### Caveats when using typed arrays polyfills:[⬆](#index)
* Polyfills of Typed Arrays constructors work completely how should work by the spec, but because of internal usage of getters / setters on each instance, are slow and consumes significant memory. However, polyfills of Typed Arrays constructors required mainly for old IE, all modern engines have native Typed Arrays constructors and require only fixes of constructors and polyfills of methods.
#### ECMAScript: Reflect[⬆](#index)
Modules [`es.reflect.apply`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.apply.js), [`es.reflect.construct`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.construct.js), [`es.reflect.define-property`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.define-property.js), [`es.reflect.delete-property`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.delete-property.js), [`es.reflect.get`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.get.js), [`es.reflect.get-own-property-descriptor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.get-own-property-descriptor.js), [`es.reflect.get-prototype-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.get-prototype-of.js), [`es.reflect.has`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.has.js), [`es.reflect.is-extensible`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.is-extensible.js), [`es.reflect.own-keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.own-keys.js), [`es.reflect.prevent-extensions`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.prevent-extensions.js), [`es.reflect.set`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.set.js), [`es.reflect.set-prototype-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.reflect.set-prototype-of.js).
```js
namespace Reflect {
apply(target: Function, thisArgument: any, argumentsList: Array): any;
construct(target: Function, argumentsList: Array, newTarget?: Function): Object;
defineProperty(target: Object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
deleteProperty(target: Object, propertyKey: PropertyKey): boolean;
get(target: Object, propertyKey: PropertyKey, receiver?: any): any;
getOwnPropertyDescriptor(target: Object, propertyKey: PropertyKey): PropertyDescriptor | void;
getPrototypeOf(target: Object): Object | null;
has(target: Object, propertyKey: PropertyKey): boolean;
isExtensible(target: Object): boolean;
ownKeys(target: Object): Array;
preventExtensions(target: Object): boolean;
set(target: Object, propertyKey: PropertyKey, V: any, receiver?: any): boolean;
setPrototypeOf(target: Object, proto: Object | null): boolean; // required __proto__ - IE11+
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/es|stable|features/reflect
core-js(-pure)/es|stable|features/reflect/apply
core-js(-pure)/es|stable|features/reflect/construct
core-js(-pure)/es|stable|features/reflect/define-property
core-js(-pure)/es|stable|features/reflect/delete-property
core-js(-pure)/es|stable|features/reflect/get
core-js(-pure)/es|stable|features/reflect/get-own-property-descriptor
core-js(-pure)/es|stable|features/reflect/get-prototype-of
core-js(-pure)/es|stable|features/reflect/has
core-js(-pure)/es|stable|features/reflect/is-extensible
core-js(-pure)/es|stable|features/reflect/own-keys
core-js(-pure)/es|stable|features/reflect/prevent-extensions
core-js(-pure)/es|stable|features/reflect/set
core-js(-pure)/es|stable|features/reflect/set-prototype-of
```
[*Examples*](http://goo.gl/gVT0cH):
```js
let object = { a: 1 };
Object.defineProperty(object, 'b', { value: 2 });
object[Symbol('c')] = 3;
Reflect.ownKeys(object); // => ['a', 'b', Symbol(c)]
function C(a, b) {
this.c = a + b;
}
let instance = Reflect.construct(C, [20, 22]);
instance.c; // => 42
```
#### ECMAScript: JSON[⬆](#index)
Since `JSON` object is missed only in very old engines like IE7-, `core-js` does not provide a full `JSON` polyfill, however, fix already existing implementations by the current standard, for example, [well-formed `JSON.stringify`](https://github.com/tc39/proposal-well-formed-stringify). `JSON` also fixed in other modules - for example, `Symbol` polyfill fixes `JSON.stringify` for correct work with symbols.
Module [`es.json.to-string-tag`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.json.to-string-tag.js) and [`es.json.stringify`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.json.stringify.js).
```js
namespace JSON {
stringify(target: any, replacer?: Function | Array, space?: string | number): string | void;
@@toStringTag: 'JSON';
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/es|stable|features/json/stringify
core-js(-pure)/es|stable|features/json/to-string-tag
```
[*Examples*](http://es6.zloirock.ru/#log(JSON.stringify(%7B%20'%F0%A0%AE%B7'%3A%20%5B'%5CuDF06%5CuD834'%5D%20%7D))%3B%20%2F%2F%20%3D%3E%20'%7B%22%F0%A0%AE%B7%22%3A%5B%22%5C%5Cudf06%5C%5Cud834%22%5D%7D'):
```js
JSON.stringify({ '𠮷': ['\uDF06\uD834'] }); // => '{"𠮷":["\\udf06\\ud834"]}'
```
#### ECMAScript: globalThis[⬆](#index)
Module [`es.global-this`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/es.global-this.js).
```js
let globalThis: Object;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/es|stable|features/global-this
```
[*Examples*](https://goo.gl/LAifsc):
```js
globalThis.Array === Array; // => true
```
### ECMAScript proposals[⬆](#index)
[The TC39 process.](https://tc39.github.io/process-document/)
`core-js/stage/4` entry point contains only stage 4 proposals, `core-js/stage/3` - stage 3 and stage 4, etc.
#### Stage 4 proposals[⬆](#index)
Stage 4 proposals already marked in `core-js` as stable ECMAScript, they will be removed from proposals namespace in the next major `core-js` version.
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/stage/4
```
##### [`globalThis`](https://github.com/tc39/proposal-global)[⬆](#index)
Module [`esnext.global-this`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.global-this.js).
```js
let globalThis: Object;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/global-this
core-js(-pure)/features/global-this
```
[*Examples*](https://goo.gl/LAifsc):
```js
globalThis.Array === Array; // => true
```
##### [`String#matchAll`](https://github.com/tc39/proposal-string-matchall)[⬆](#index)
Module [`esnext.string.match-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.string.match-all.js).
```js
class String {
matchAll(regexp: RegExp): Iterator;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/string-match-all
```
##### [`String#replaceAll`](https://github.com/tc39/proposal-string-replace-all)[⬆](#index)
Module [`esnext.string.replace-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.string.replace-all.js)
```js
class String {
replaceAll(searchValue: string | RegExp, replaceString: string | (searchValue, index, this) => string): string;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/string-replace-all
core-js/features/string/replace-all
```
[*Examples*](https://goo.gl/wUXNXN):
```js
'Test abc test test abc test.'.replaceAll('abc', 'foo'); // -> 'Test foo test test foo test.'
```
##### [`Promise.allSettled`](https://github.com/tc39/proposal-promise-allSettled)[⬆](#index)
Module [`esnext.promise.all-settled`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.promise.all-settled.js)
```js
class Promise {
static allSettled(iterable: Iterable): Promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/promise-all-settled
```
##### [`Promise.any`](https://github.com/tc39/proposal-promise-any)[⬆](#index)
Modules [`esnext.promise.any`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.promise.any.js) and [`esnext.aggregate-error`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.aggregate-error.js)
```js
class AggregateError {
constructor(errors: Iterable, message: string): AggregateError;
errors: Array;
message: string;
}
class Promise {
static any(promises: Iterable): Promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/promise-any
core-js(-pure)/features/promise/any
core-js(-pure)/features/aggregate-error
```
[*Examples*](https://goo.gl/iErvmp):
```js
Promise.any([
Promise.resolve(1),
Promise.reject(2),
Promise.resolve(3),
]).then(console.log); // => 1
Promise.any([
Promise.reject(1),
Promise.reject(2),
Promise.reject(3),
]).catch(({ errors }) => console.log(errors)); // => [1, 2, 3]
```
#### Stage 3 proposals[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/stage/3
```
##### [Relative indexing method](https://github.com/tc39/proposal-relative-indexing-method)[⬆](#index)
Modules [`esnext.array.at`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.at.js) and [`esnext.typed-array.at`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.typed-array.at.js)
> **Warning! Because of the conflict with [another proposal](#stringat), this method is not available on `String.prototype` in this version.**
```js
class Array {
at(index: int): any;
}
class [
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array,
] {
at(index: int): any;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/proposals/relative-indexing-method
core-js(-pure)/features/array/at
core-js(-pure)/features/typed-array/at
```
[*Examples*](http://es6.zloirock.ru/#log(%5B1%2C%202%2C%203%5D.at(1))%3B%20%20%2F%2F%20%3D%3E%202%0Alog(%5B1%2C%202%2C%203%5D.at(-1))%3B%20%2F%2F%20%3D%3E%203):
```js
[1, 2, 3].at(1); // => 2
[1, 2, 3].at(-1); // => 3
```
#### Stage 2 proposals[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```
core-js(-pure)/stage/2
```
##### [New `Set` methods](https://github.com/tc39/proposal-set-methods)[⬆](#index)
Modules [`esnext.set.difference`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.difference.js), [`esnext.set.intersection`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.intersection.js), [`esnext.set.is-disjoint-from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.is-disjoint-from.js), [`esnext.set.is-subset-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.is-subset-of.js), [`esnext.set.is-superset-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.is-superset-of.js), [`esnext.set.symmetric-difference`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.symmetric-difference.js), [`esnext.set.union`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.union.js)
```js
class Set {
difference(iterable: Iterable): Set;
intersection(iterable: Iterable): Set;
isDisjointFrom(iterable: Iterable): boolean;
isSubsetOf(iterable: Iterable): boolean;
isSupersetOf(iterable: Iterable): boolean;
symmetricDifference(iterable: Iterable): Set;
union(iterable: Iterable): Set;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/set-methods
core-js(-pure)/features/set/difference
core-js(-pure)/features/set/intersection
core-js(-pure)/features/set/is-disjoint-from
core-js(-pure)/features/set/is-subset-of
core-js(-pure)/features/set/is-superset-of
core-js(-pure)/features/set/symmetric-difference
core-js(-pure)/features/set/union
```
[*Examples*](https://goo.gl/QMQdaJ):
```js
new Set([1, 2, 3]).union([3, 4, 5]); // => Set {1, 2, 3, 4, 5}
new Set([1, 2, 3]).intersection([3, 4, 5]); // => Set {3}
new Set([1, 2, 3]).difference([3, 4, 5]); // => Set {1, 2}
new Set([1, 2, 3]).symmetricDifference([3, 4, 5]); // => Set {1, 2, 4, 5}
new Set([1, 2, 3]).isDisjointFrom([4, 5, 6]); // => true
new Set([1, 2, 3]).isSubsetOf([5, 4, 3, 2, 1]); // => true
new Set([5, 4, 3, 2, 1]).isSupersetOf([1, 2, 3]); // => true
```
##### [`Symbol.{ asyncDispose, dispose }` for `using` statement](https://github.com/tc39/proposal-using-statement)[⬆](#index)
Modules [`esnext.symbol.dispose`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.symbol.dispose.js) and [`esnext.symbol.async-dispose`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.symbol.async-dispose.js).
```js
class Symbol {
static asyncDispose: @@asyncDispose;
static dispose: @@dispose;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/using-statement
core-js(-pure)/features/symbol/async-dispose
core-js(-pure)/features/symbol/dispose
```
##### [`Array.isTemplateObject`](https://github.com/tc39/proposal-array-is-template-object)[⬆](#index)
Module [`esnext.array.is-template-object`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.is-template-object.js)
```js
class Array {
static isTemplateObject(value: any): boolean
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/array-is-template-object
core-js(-pure)/features/array/is-template-object
```
*Example*:
```js
console.log(Array.isTemplateObject((it => it)`qwe${ 123 }asd`)); // => true
```
##### [Iterator helpers](https://github.com/tc39/proposal-iterator-helpers)[⬆](#index)
Modules [`esnext.async-iterator.constructor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.constructor.js), [`esnext.async-iterator.as-indexed-pairs`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js), [`esnext.async-iterator.drop`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.drop.js), [`esnext.async-iterator.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.every.js), [`esnext.async-iterator.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.filter.js), [`esnext.async-iterator.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.find.js), [`esnext.async-iterator.flat-map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.flat-map.js), [`esnext.async-iterator.for-each`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.for-each.js), [`esnext.async-iterator.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.from.js), [`esnext.async-iterator.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.map.js), [`esnext.async-iterator.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.reduce.js), [`esnext.async-iterator.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.some.js), [`esnext.async-iterator.take`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.take.js), [`esnext.async-iterator.to-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.async-iterator.to-array.js), [`esnext.iterator.constructor`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.constructor.js), [`esnext.iterator.as-indexed-pairs`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js), [`esnext.iterator.drop`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.drop.js), [`esnext.iterator.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.every.js), [`esnext.iterator.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.filter.js), [`esnext.iterator.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.find.js), [`esnext.iterator.flat-map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.flat-map.js), [`esnext.iterator.for-each`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.for-each.js), [`esnext.iterator.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.from.js), [`esnext.iterator.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.map.js), [`esnext.iterator.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.reduce.js), [`esnext.iterator.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.some.js), [`esnext.iterator.take`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.take.js) and [`esnext.iterator.to-array`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.iterator.to-array.js)
```js
class Iterator {
static from(iterable: Iterable): Iterator;
asIndexedPairs(): Iterator<[index, any]>;
drop(limit: uint): Iterator;
every(callbackfn: value: any => boolean): boolean;
filter(callbackfn: value: any => boolean): Iterator;
find(callbackfn: value: any => boolean)): any;
flatMap(callbackfn: value => any: Iterable): Iterator;
forEach(callbackfn: value => void): void;
map(callbackfn: value => any): Iterator;
reduce(callbackfn: (memo: any, value: any) => any, initialValue: any): any;
some(callbackfn: value: any => boolean): boolean;
take(limit: uint): Iterator;
toArray(): Array;
@@toStringTag: 'Iterator'
}
class AsyncIterator {
static from(iterable: Iterable): AsyncIterator;
asIndexedPairs(): AsyncIterator<[index, any]>;
drop(limit: uint): AsyncIterator;
every(async callbackfn: value: any => boolean): Promise;
filter(async callbackfn: value: any => boolean): AsyncIterator;
find(async callbackfn: value: any => boolean)): Promise;
flatMap(async callbackfn: value => any: Iterable): AsyncIterator;
forEach(async callbackfn: value => void): Promise;
map(async callbackfn: value => any): AsyncIterator;
reduce(async callbackfn: (memo: any, value: any) => any, initialValue: any): Promise;
some(async callbackfn: value: any => boolean): Promise;
take(limit: uint): AsyncIterator;
toArray(): Promise;
@@toStringTag: 'AsyncIterator'
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/iterator-helpers
core-js(-pure)/features/async-iterator
core-js(-pure)/features/async-iterator/as-indexed-pairs
core-js(-pure)/features/async-iterator/drop
core-js(-pure)/features/async-iterator/every
core-js(-pure)/features/async-iterator/filter
core-js(-pure)/features/async-iterator/find
core-js(-pure)/features/async-iterator/flat-map
core-js(-pure)/features/async-iterator/for-each
core-js(-pure)/features/async-iterator/from
core-js(-pure)/features/async-iterator/map
core-js(-pure)/features/async-iterator/reduce
core-js(-pure)/features/async-iterator/some
core-js(-pure)/features/async-iterator/take
core-js(-pure)/features/async-iterator/to-array
core-js(-pure)/features/iterator
core-js(-pure)/features/iterator/as-indexed-pairs
core-js(-pure)/features/iterator/drop
core-js(-pure)/features/iterator/every
core-js(-pure)/features/iterator/filter
core-js(-pure)/features/iterator/find
core-js(-pure)/features/iterator/flat-map
core-js(-pure)/features/iterator/for-each
core-js(-pure)/features/iterator/from
core-js(-pure)/features/iterator/map
core-js(-pure)/features/iterator/reduce
core-js(-pure)/features/iterator/some
core-js(-pure)/features/iterator/take
core-js(-pure)/features/iterator/to-array
```
[Examples](http://es6.zloirock.ru/#log(%5B1%2C%202%2C%203%2C%204%2C%205%2C%206%2C%207%5D.values()%0A%20%20.drop(1)%0A%20%20.take(5)%0A%20%20.filter(it%20%3D%3E%20it%20%25%202)%0A%20%20.map(it%20%3D%3E%20it%20**%202)%0A%20%20.toArray())%3B%20%2F%2F%20%3D%3E%20%5B9%2C%2025%5D%0A%0Alog(Iterator.from(%7B%0A%20%20next%3A%20()%20%3D%3E%20(%7B%20done%3A%20Math.random()%20%3E%20.9%2C%20value%3A%20Math.random()%20*%2010%20%7C%200%20%7D)%0A%7D).toArray())%3B%20%2F%2F%20%3D%3E%20%5B7%2C%206%2C%203%2C%200%2C%202%2C%208%5D%0A%0AAsyncIterator.from(%5B1%2C%202%2C%203%2C%204%2C%205%2C%206%2C%207%5D)%0A%20%20.drop(1)%0A%20%20.take(5)%0A%20%20.filter(it%20%3D%3E%20it%20%25%202)%0A%20%20.map(it%20%3D%3E%20it%20**%202)%0A%20%20.toArray()%0A%20%20.then(log)%3B%20%2F%2F%20%3D%3E%20%5B9%2C%2025%5D):
```js
[1, 2, 3, 4, 5, 6, 7].values()
.drop(1)
.take(5)
.filter(it => it % 2)
.map(it => it ** 2)
.toArray(); // => [9, 25]
Iterator.from({
next: () => ({ done: Math.random() > .9, value: Math.random() * 10 | 0 })
}).toArray(); // => [7, 6, 3, 0, 2, 8]
AsyncIterator.from([1, 2, 3, 4, 5, 6, 7])
.drop(1)
.take(5)
.filter(it => it % 2)
.map(it => it ** 2)
.toArray()
.then(console.log); // => [9, 25]
```
###### Caveats:[⬆](#index)
- For preventing prototypes pollution, in the `pure` version, new `%IteratorPrototype%` methods are not added to the real `%IteratorPrototype%`, they available only on wrappers - instead of `[].values().map(fn)` use `Iterator.from([]).map(fn)`.
- Now, we have access to the real `%AsyncIteratorPrototype%` only with usage async generators syntax. So, for compatibility the library with old browsers, we should use `Function` constructor. However, that breaks compatibility with CSP. So, if you wanna use the real `%AsyncIteratorPrototype%`, you should set `USE_FUNCTION_CONSTRUCTOR` option in the `core-js/configurator` to `true`:
```js
const configurator = require('core-js/configurator');
configurator({ USE_FUNCTION_CONSTRUCTOR: true });
require('core-js');
(async function * () { /* empty */ })() instanceof AsyncIterator; // => true
```
##### [`Map#emplace`](https://github.com/thumbsupep/proposal-upsert)[⬆](#index)
Modules [`esnext.map.emplace`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.emplace.js) and [`esnext.weak-map.emplace`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-map.emplace.js)
```js
class Map {
emplace(key: any, { update: (value: any, key: any, handler: object) => updated: any, insert: (key: any, handler: object) => value: any): updated | value;
}
class WeakMap {
emplace(key: any, { update: (value: any, key: any, handler: object) => updated: any, insert: (key: any, handler: object) => value: any): updated | value;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/map-upsert
core-js(-pure)/features/map/emplace
core-js(-pure)/features/weak-map/emplace
```
[*Examples*](http://es6.zloirock.ru/#const%20map%20%3D%20new%20Map(%5B%5B'a'%2C%202%5D%5D)%3B%0A%0Amap.emplace('a'%2C%20%7B%20update%3A%20it%20%3D%3E%20it%20**%202%2C%20insert%3A%20()%20%3D%3E%203%7D)%3B%20%2F%2F%20%3D%3E%204%0A%0Amap.emplace('b'%2C%20%7B%20update%3A%20it%20%3D%3E%20it%20**%202%2C%20insert%3A%20()%20%3D%3E%203%7D)%3B%20%2F%2F%20%3D%3E%203%0A%0Afor%20(let%20%5Bkey%2C%20value%5D%20of%20map)%7B%0A%20%20log(key%2C%20value)%3B%20%2F%2F%20%3D%3E%20Map%20%7B%20'a'%3A%204%2C%20'b'%3A%203%20%7D%0A%7D):
```js
const map = new Map([['a', 2]]);
map.emplace('a', { update: it => it ** 2, insert: () => 3}); // => 4
map.emplace('b', { update: it => it ** 2, insert: () => 3}); // => 3
console.log(map); // => Map { 'a': 4, 'b': 3 }
```
#### Stage 1 proposals[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/stage/1
```
##### [Getting last item from `Array`](https://github.com/keithamus/proposal-array-last)[⬆](#index)
Modules [`esnext.array.last-item`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.last-item.js) and [`esnext.array.last-index`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.last-index.js)
```js
class Array {
attribute lastItem: any;
readonly attribute lastIndex: uint;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/array-last
core-js/features/array/last-item
core-js/features/array/last-index
```
[*Examples*](https://goo.gl/2TmcMT):
```js
[1, 2, 3].lastItem; // => 3
[1, 2, 3].lastIndex; // => 2
const array = [1, 2, 3];
array.lastItem = 4;
array; // => [1, 2, 4]
```
##### [`Promise.try`](https://github.com/tc39/proposal-promise-try)[⬆](#index)
Module [`esnext.promise.try`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.promise.try.js)
```js
class Promise {
static try(callbackfn: Function): promise;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/promise-try
core-js(-pure)/features/promise/try
```
[*Examples*](https://goo.gl/k5GGRo):
```js
Promise.try(() => 42).then(it => console.log(`Promise, resolved as ${it}`));
Promise.try(() => { throw 42; }).catch(it => console.log(`Promise, rejected as ${it}`));
```
#### New collections methods:[⬆](#index)
##### [New `Set` and `Map` methods](https://github.com/tc39/proposal-collection-methods)[⬆](#index)
Modules [`esnext.set.add-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.add-all.js), [`esnext.set.delete-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.delete-all.js), [`esnext.set.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.every.js), [`esnext.set.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.filter.js), [`esnext.set.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.find.js), [`esnext.set.join`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.join.js), [`esnext.set.map`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.map.js), [`esnext.set.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.reduce.js), [`esnext.set.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.some.js), [`esnext.map.delete-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.delete-all.js), [`esnext.map.every`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.every.js), [`esnext.map.filter`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.filter.js), [`esnext.map.find`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.find.js), [`esnext.map.find-key`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.find-key.js), [`esnext.map.group-by`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.group-by.js), [`esnext.map.includes`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.includes.js), [`esnext.map.key-by`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.key-by.js), [`esnext.map.key-of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.key-of.js), [`esnext.map.map-keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.map-keys.js), [`esnext.map.map-values`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.map-values.js), [`esnext.map.merge`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.merge.js), [`esnext.map.reduce`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.reduce.js), [`esnext.map.some`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.some.js), [`esnext.map.update`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.update.js), [`esnext.weak-set.add-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-set.add-all.js), [`esnext.weak-set.delete-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-set.delete-all.js), [`esnext.weak-map.delete-all`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-map.delete-all.js)
##### [`.of` and `.from` methods on collection constructors](https://github.com/tc39/proposal-setmap-offrom)[⬆](#index)
Modules [`esnext.set.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.of.js), [`esnext.set.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.set.from.js), [`esnext.map.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.of.js), [`esnext.map.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.map.from.js), [`esnext.weak-set.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-set.of.js), [`esnext.weak-set.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-set.from.js), [`esnext.weak-map.of`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-map.of.js), [`esnext.weak-map.from`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.weak-map.from.js)
```js
class Set {
static of(...args: Array): Set;
static from(iterable: Iterable, mapFn?: (value: any, index: number) => any, thisArg?: any): Set;
addAll(...args: Array): this;
deleteAll(...args: Array): boolean;
every(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): boolean;
filter(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): Set;
find(callbackfn: (value: any, key: any, target: any) => boolean), thisArg?: any): any;
join(separator: string = ','): string;
map(callbackfn: (value: any, key: any, target: any) => any, thisArg?: any): Set;
reduce(callbackfn: (memo: any, value: any, key: any, target: any) => any, initialValue?: any): any;
some(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): boolean;
}
class Map {
static groupBy(iterable: Iterable, callbackfn?: (value: any) => any): Map;
static of(...args: Array<[key, value]>): Map;
static from(iterable: Iterable, mapFn?: (value: any, index: number) => [key: any, value: any], thisArg?: any): Map;
static keyBy(iterable: Iterable, callbackfn?: (value: any) => any): Map;
deleteAll(...args: Array): boolean;
every(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): boolean;
filter(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): Map;
find(callbackfn: (value: any, key: any, target: any) => boolean), thisArg?: any): any;
findKey(callbackfn: (value: any, key: any, target: any) => boolean), thisArg?: any): any;
includes(searchElement: any): boolean;
keyOf(searchElement: any): any;
mapKeys(mapFn: (value: any, index: number, target: any) => any, thisArg?: any): Map;
mapValues(mapFn: (value: any, index: number, target: any) => any, thisArg?: any): Map;
merge(...iterables: Array): this;
reduce(callbackfn: (memo: any, value: any, key: any, target: any) => any, initialValue?: any): any;
some(callbackfn: (value: any, key: any, target: any) => boolean, thisArg?: any): boolean;
update(key: any, callbackfn: (value: any, key: any, target: any) => any, thunk?: (key: any, target: any) => any): this;
}
class WeakSet {
static of(...args: Array): WeakSet;
static from(iterable: Iterable, mapFn?: (value: any, index: number) => Object, thisArg?: any): WeakSet;
addAll(...args: Array): this;
deleteAll(...args: Array): boolean;
}
class WeakMap {
static of(...args: Array<[key, value]>): WeakMap;
static from(iterable: Iterable, mapFn?: (value: any, index: number) => [key: Object, value: any], thisArg?: any): WeakMap;
deleteAll(...args: Array): boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/collection-methods
core-js/proposals/collection-of-from
core-js(-pure)/features/set/add-all
core-js(-pure)/features/set/delete-all
core-js(-pure)/features/set/every
core-js(-pure)/features/set/filter
core-js(-pure)/features/set/find
core-js(-pure)/features/set/from
core-js(-pure)/features/set/join
core-js(-pure)/features/set/map
core-js(-pure)/features/set/of
core-js(-pure)/features/set/reduce
core-js(-pure)/features/set/some
core-js(-pure)/features/map/delete-all
core-js(-pure)/features/map/every
core-js(-pure)/features/map/filter
core-js(-pure)/features/map/find
core-js(-pure)/features/map/find-key
core-js(-pure)/features/map/from
core-js(-pure)/features/map/group-by
core-js(-pure)/features/map/includes
core-js(-pure)/features/map/key-by
core-js(-pure)/features/map/key-of
core-js(-pure)/features/map/map-keys
core-js(-pure)/features/map/map-values
core-js(-pure)/features/map/merge
core-js(-pure)/features/map/of
core-js(-pure)/features/map/reduce
core-js(-pure)/features/map/some
core-js(-pure)/features/map/update
core-js(-pure)/features/weak-set/add-all
core-js(-pure)/features/weak-set/delete-all
core-js(-pure)/features/weak-set/of
core-js(-pure)/features/weak-set/from
core-js(-pure)/features/weak-map/delete-all
core-js(-pure)/features/weak-map/of
core-js(-pure)/features/weak-map/from
```
`.of` / `.from` [*examples*](https://goo.gl/mSC7eU):
```js
Set.of(1, 2, 3, 2, 1); // => Set {1, 2, 3}
Map.from([[1, 2], [3, 4]], ([key, value]) => [key ** 2, value ** 2]); // => Map { 1: 4, 9: 16 }
```
##### [`compositeKey` and `compositeSymbol` methods](https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey)[⬆](#index)
Modules [`esnext.composite-key`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.composite-key.js) and [`esnext.composite-symbol`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.composite-symbol.js)
```js
function compositeKey(...args: Array): object;
function compositeSymbol(...args: Array): symbol;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/keys-composition
core-js(-pure)/features/composite-key
core-js(-pure)/features/composite-symbol
```
[*Examples*](https://goo.gl/2oPAH7):
```js
// returns a symbol
const symbol = compositeSymbol({});
console.log(typeof symbol); // => 'symbol'
// works the same, but returns a plain frozen object without a prototype
const key = compositeKey({});
console.log(typeof key); // => 'object'
console.log({}.toString.call(key)); // => '[object Object]'
console.log(Object.getPrototypeOf(key)); // => null
console.log(Object.isFrozen(key)); // => true
const a = ['a'];
const b = ['b'];
const c = ['c'];
console.log(compositeSymbol(a) === compositeSymbol(a)); // => true
console.log(compositeSymbol(a) !== compositeSymbol(['a'])); // => true
console.log(compositeSymbol(a, 1) === compositeSymbol(a, 1)); // => true
console.log(compositeSymbol(a, b) !== compositeSymbol(b, a)); // => true
console.log(compositeSymbol(a, b, c) === compositeSymbol(a, b, c)); // => true
console.log(compositeSymbol(1, a) === compositeSymbol(1, a)); // => true
console.log(compositeSymbol(1, a, 2, b) === compositeSymbol(1, a, 2, b)); // => true
console.log(compositeSymbol(a, a) === compositeSymbol(a, a)); // => true
```
##### [`Observable`](https://github.com/zenparsing/es-observable)[⬆](#index)
Modules [`esnext.observable`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.observable.js) and [`esnext.symbol.observable`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.symbol.observable.js)
```js
class Observable {
constructor(subscriber: Function): Observable;
subscribe(observer: Function | { next?: Function, error?: Function, complete?: Function }): Subscription;
@@observable(): this;
static of(...items: Aray): Observable;
static from(x: Observable | Iterable): Observable;
static readonly attribute @@species: this;
}
class Symbol {
static observable: @@observable;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/observable
core-js(-pure)/features/observable
core-js(-pure)/features/symbol/observable
```
[*Examples*](http://goo.gl/1LDywi):
```js
new Observable(observer => {
observer.next('hello');
observer.next('world');
observer.complete();
}).subscribe({
next(it) { console.log(it); },
complete() { console.log('!'); }
});
```
##### [`Math` extensions](https://github.com/rwaldron/proposal-math-extensions)[⬆](#index)
Modules [`esnext.math.clamp`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.clamp.js), [`esnext.math.deg-per-rad`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.deg-per-rad.js), [`esnext.math.degrees`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.degrees.js), [`esnext.math.fscale`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.fscale.js), [`esnext.math.rad-per-deg`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.rad-per-deg.js), [`esnext.math.radians`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.radians.js) and [`esnext.math.scale`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.scale.js)
```js
namespace Math {
DEG_PER_RAD: number;
RAD_PER_DEG: number;
clamp(x: number, lower: number, upper: number): number;
degrees(radians: number): number;
fscale(x: number, inLow: number, inHigh: number, outLow: number, outHigh: number): number;
radians(degrees: number): number;
scale(x: number, inLow: number, inHigh: number, outLow: number, outHigh: number): number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/math-extensions
core-js(-pure)/features/math/clamp
core-js(-pure)/features/math/deg-per-rad
core-js(-pure)/features/math/degrees
core-js(-pure)/features/math/fscale
core-js(-pure)/features/math/rad-per-deg
core-js(-pure)/features/math/radians
core-js(-pure)/features/math/scale
```
##### [`Math.signbit`](https://github.com/tc39/proposal-Math.signbit)[⬆](#index)
Module [`esnext.math.signbit`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.signbit.js)
```js
namespace Math {
signbit(x: number): boolean;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/math-signbit
core-js(-pure)/features/math/signbit
```
[*Examples*](https://goo.gl/rPWbzZ):
```js
Math.signbit(NaN); // => false
Math.signbit(1); // => false
Math.signbit(-1); // => true
Math.signbit(0); // => false
Math.signbit(-0); // => true
```
##### [`Number.fromString`](https://github.com/tc39/proposal-number-fromstring)[⬆](#index)
Module [`esnext.number.from-string`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.number.from-string.js)
```js
class Number {
fromString(string: string, radix: number): number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/number-from-string
core-js(-pure)/features/number/from-string
```
##### [`Number.range`](https://github.com/tc39/proposal-Number.range)[⬆](#index)
Module [`esnext.number.range`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.number.range.js) and [`esnext.bigint.range`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.bigint.range.js)
```js
class Number {
range(start: number, end: number, options: { step: number = 1, inclusive: boolean = false } | step: number = 1): RangeIterator;
}
class BigInt {
range(start: bigint, end: bigint | Infinity | -Infinity, options: { step: bigint = 1n, inclusive: boolean = false } | step: bigint = 1n): RangeIterator;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/number-range
core-js(-pure)/features/bigint/range
core-js(-pure)/features/number/range
```
[*Example*](http://es6.zloirock.ru/#for%20(const%20i%20of%20Number.range(1%2C%2010%2C%20%7B%20step%3A%203%2C%20inclusive%3A%20true%20%7D))%20%7B%0A%20%20log(i)%3B%20%2F%2F%20%3D%3E%201%2C%204%2C%207%2C%2010%0A%7D):
```js
for (const i of Number.range(1, 10)) {
console.log(i); // => 1, 2, 3, 4, 5, 6, 7, 8, 9
}
for (const i of Number.range(1, 10, { step: 3, inclusive: true })) {
console.log(i); // => 1, 4, 7, 10
}
```
##### [`String#codePoints`](https://github.com/tc39/proposal-string-prototype-codepoints)[⬆](#index)
Module [`esnext.string.code-points`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.string.code-points.js)
```js
class String {
codePoints(): Iterator<{ codePoint, position }>;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/string-code-points
core-js(-pure)/features/string/code-points
```
[*Example*](https://goo.gl/Jt7SsD):
```js
for (let { codePoint, position } of 'qwe'.codePoints()) {
console.log(codePoint); // => 113, 119, 101
console.log(position); // => 0, 1, 2
}
```
##### [Seeded pseudo-random numbers](https://github.com/tc39/proposal-seeded-random)[⬆](#index)
Module [`esnext.math.seeded-prng`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.seeded-prng.js)
```js
class Math {
seededPRNG({ seed: number }): Iterator;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/seeded-random
core-js(-pure)/features/math/seeded-prng
```
[*Example*](https://goo.gl/oj3WgQ):
```js
for (let x of Math.seededPRNG({ seed: 42 })) {
console.log(x); // => 0.16461519912315087, 0.2203933906000046, 0.8249682894209105
if (x > .8) break;
}
```
##### [`Symbol.patternMatch` for pattern matching](https://github.com/tc39/proposal-pattern-matching)[⬆](#index)
Module [`esnext.symbol.pattern-match`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.symbol.pattern-match.js).
```js
class Symbol {
static patternMatch: @@patternMatch;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/pattern-matching
core-js(-pure)/features/symbol/pattern-match
```
##### [Object iteration](https://github.com/tc39/proposal-object-iteration)[⬆](#index)
Modules [`esnext.object.iterate-keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.object.iterate-keys.js), [`esnext.object.iterate-values`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.object.iterate-values.js), [`esnext.object.iterate-entries`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.object.iterate-entries.js).
```js
class Object {
iterateKeys(object: any): Iterator;
iterateValues(object: any): Iterator;
iterateEntries(object: any): Iterator<[string, any]>;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/object-iteration
core-js(-pure)/features/object/iterate-keys
core-js(-pure)/features/object/iterate-values
core-js(-pure)/features/object/iterate-entries
```
[*Example*](http://es6.zloirock.ru/#const%20obj%20%3D%20%7B%20foo%3A%20'bar'%2C%20baz%3A%20'blah'%20%7D%3B%0A%0Afor%20(const%20%5Bkey%2C%20value%5D%20of%20Object.iterateEntries(obj))%20%7B%0A%20%20log(%60%24%7Bkey%7D%20-%3E%20%24%7Bvalue%7D%60)%3B%0A%7D%0A%0Afor%20(const%20key%20of%20Object.iterateKeys(obj))%20%7B%0A%20%20log(key)%3B%0A%7D%0A%0Afor%20(const%20value%20of%20Object.iterateValues(obj))%20%7B%0A%20%20log(value)%3B%0A%7D):
```js
const obj = { foo: 'bar', baz: 'blah' };
for (const [key, value] of Object.iterateEntries(obj)) {
console.log(`${key} -> ${value}`);
}
for (const key of Object.iterateKeys(obj)) {
console.log(key);
}
for (const value of Object.iterateValues(obj)) {
console.log(value);
}
```
##### [Array filtering](https://github.com/tc39/proposal-array-filtering)[⬆](#index)
Modules [`esnext.array.filter-out`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.filter-out.js) and [`esnext.typed-array.filter-out`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.typed-array.filter-out.js).
```js
class Array {
filterOut(callbackfn: (value: any, index: number, target: any) => boolean, thisArg?: any): Array;
}
class [
Int8Array,
Uint8Array,
Uint8ClampedArray,
Int16Array,
Uint16Array,
Int32Array,
Uint32Array,
Float32Array,
Float64Array,
] {
filterOut(callbackfn: (value: number, index: number, target: %TypedArray%) => boolean, thisArg?: any): %TypedArray%;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/proposals/array-filtering
core-js(-pure)/features/array/filter-out
core-js(-pure)/features/array/virtual/filter-out
core-js(-pure)/features/typed-array/filter-out
core-js(-pure)/features/typed-array/virtual/filter-out
```
[*Examples*](http://es6.zloirock.ru/#log(%5B1%2C%202%2C%203%2C%204%2C%205%5D.filterOut(it%20%3D%3E%20it%20%25%202))%3B%20%2F%2F%20%3D%3E%20%5B2%2C%204%5D):
```js
[1, 2, 3, 4, 5].filterOut(it => it % 2); // => [2, 4]
````
##### [Array deduplication](https://github.com/tc39/proposal-array-unique)[⬆](#index)
Module [`esnext.array.unique-by`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.array.unique-by.js)
```js
class Array {
uniqueBy(resolver?: (item: any) => any): Array;
}
```
[*CommonJS entry points:*](#commonjs-api)
```
core-js/proposals/array-unique
core-js(-pure)/features/array/unique-by
core-js(-pure)/features/array/virtual/unique-by
```
[*Examples*](http://es6.zloirock.ru/#log(%5B1%2C%202%2C%203%2C%202%2C%201%5D.uniqueBy())%3B%20%20%2F%2F%20%5B1%2C%202%2C%203%5D%0A%0Aconst%20data%20%3D%20%5B%0A%20%20%7B%20id%3A%201%2C%20uid%3A%2010000%20%7D%2C%0A%20%20%7B%20id%3A%202%2C%20uid%3A%2010000%20%7D%2C%0A%20%20%7B%20id%3A%203%2C%20uid%3A%2010001%20%7D%0A%5D%3B%0A%0Alog(data.uniqueBy('uid'))%3B%20%2F%2F%20%3D%3E%20%5B%7B%20id%3A%201%2C%20uid%3A%2010000%20%7D%2C%20%7B%20id%3A%203%2C%20uid%3A%2010001%20%7D%5D%0A%0Alog(data.uniqueBy((%7B%20id%2C%20uid%20%7D)%20%3D%3E%20%60%24%7Bid%7D-%24%7Buid%7D%60))%3B%20%2F%2F%20%3D%3E%20%5B%7B%20id%3A%201%2C%20uid%3A%2010000%20%7D%2C%20%7B%20id%3A%202%2C%20uid%3A%2010000%20%7D%2C%20%7B%20id%3A%203%2C%20uid%3A%2010001%20%7D%5D):
```js
[1, 2, 3, 2, 1].uniqueBy(); // [1, 2, 3]
[
{ id: 1, uid: 10000 },
{ id: 2, uid: 10000 },
{ id: 3, uid: 10001 }
].uniqueBy(it => it.id); // => [{ id: 1, uid: 10000 }, { id: 3, uid: 10001 }]
```
#### Stage 0 proposals[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/stage/0
```
##### [`URL`](https://github.com/jasnell/proposal-url)[⬆](#index)
See more info [in web standards namespace](#url-and-urlsearchparams)
##### [`String#at`](https://github.com/mathiasbynens/String.prototype.at)[⬆](#index)
Module [`esnext.string.at`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.string.at.js)
```js
class String {
at(index: number): string;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/string-at
core-js(-pure)/features/string/at
core-js(-pure)/features/string/virtual/at
```
[*Examples*](http://goo.gl/XluXI8):
```js
'a𠮷b'.at(1); // => '𠮷'
'a𠮷b'.at(1).length; // => 2
```
##### [Efficient 64 bit arithmetic](https://gist.github.com/BrendanEich/4294d5c212a6d2254703)[⬆](#index)
Modules [`esnext.math.iaddh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.iaddh.js), [`esnext.math.isubh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.isubh.js), [`esnext.math.imulh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.imulh.js) and [`esnext.math.umulh`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.math.umulh.js)
```js
namespace Math {
iaddh(lo0: number, hi0: number, lo1: number, hi1: number): number;
isubh(lo0: number, hi0: number, lo1: number, hi1: number): number;
imulh(a: number, b: number): number;
umulh(a: number, b: number): number;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/efficient-64-bit-arithmetic
core-js(-pure)/features/math/iaddh
core-js(-pure)/features/math/isubh
core-js(-pure)/features/math/imulh
core-js(-pure)/features/math/umulh
```
#### Pre-stage 0 proposals[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/stage/pre
```
##### [`Reflect` metadata](https://github.com/rbuckton/reflect-metadata)[⬆](#index)
Modules [`esnext.reflect.define-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.define-metadata.js), [`esnext.reflect.delete-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.delete-metadata.js), [`esnext.reflect.get-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.get-metadata.js), [`esnext.reflect.get-metadata-keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.get-metadata-keys.js), [`esnext.reflect.get-own-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.get-own-metadata.js), [`esnext.reflect.get-own-metadata-keys`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.get-own-metadata-keys.js), [`esnext.reflect.has-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.has-metadata.js), [`esnext.reflect.has-own-metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.has-own-metadata.js) and [`esnext.reflect.metadata`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/esnext.reflect.metadata.js).
```js
namespace Reflect {
defineMetadata(metadataKey: any, metadataValue: any, target: Object, propertyKey?: PropertyKey): void;
getMetadata(metadataKey: any, target: Object, propertyKey?: PropertyKey): any;
getOwnMetadata(metadataKey: any, target: Object, propertyKey?: PropertyKey): any;
hasMetadata(metadataKey: any, target: Object, propertyKey?: PropertyKey): boolean;
hasOwnMetadata(metadataKey: any, target: Object, propertyKey?: PropertyKey): boolean;
deleteMetadata(metadataKey: any, target: Object, propertyKey?: PropertyKey): boolean;
getMetadataKeys(target: Object, propertyKey?: PropertyKey): Array;
getOwnMetadataKeys(target: Object, propertyKey?: PropertyKey): Array;
metadata(metadataKey: any, metadataValue: any): decorator(target: Object, targetKey?: PropertyKey) => void;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/reflect-metadata
core-js(-pure)/features/reflect/define-metadata
core-js(-pure)/features/reflect/delete-metadata
core-js(-pure)/features/reflect/get-metadata
core-js(-pure)/features/reflect/get-metadata-keys
core-js(-pure)/features/reflect/get-own-metadata
core-js(-pure)/features/reflect/get-own-metadata-keys
core-js(-pure)/features/reflect/has-metadata
core-js(-pure)/features/reflect/has-own-metadata
core-js(-pure)/features/reflect/metadata
```
[*Examples*](http://goo.gl/KCo3PS):
```js
let object = {};
Reflect.defineMetadata('foo', 'bar', object);
Reflect.ownKeys(object); // => []
Reflect.getOwnMetadataKeys(object); // => ['foo']
Reflect.getOwnMetadata('foo', object); // => 'bar'
```
### Web standards[⬆](#index)
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/web
```
#### `setTimeout` and `setInterval`[⬆](#index)
Module [`web.timers`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.timers.js). Additional arguments fix for IE9-.
```js
function setTimeout(callback: any, time: any, ...args: Array): number;
function setInterval(callback: any, time: any, ...args: Array): number;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/web/timers
core-js(-pure)/stable|features/set-timeout
core-js(-pure)/stable|features/set-interval
```
```js
// Before:
setTimeout(log.bind(null, 42), 1000);
// After:
setTimeout(log, 1000, 42);
```
#### `setImmediate`[⬆](#index)
Module [`web.immediate`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.immediate.js). [`setImmediate`](http://w3c.github.io/setImmediate/) polyfill.
```js
function setImmediate(callback: any, ...args: Array): number;
function clearImmediate(id: number): void;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/web/immediate
core-js(-pure)/stable|features/set-immediate
core-js(-pure)/stable|features/clear-immediate
```
[*Examples*](http://goo.gl/6nXGrx):
```js
setImmediate((arg1, arg2) => {
console.log(arg1, arg2); // => Message will be displayed with minimum delay
}, 'Message will be displayed', 'with minimum delay');
clearImmediate(setImmediate(() => {
console.log('Message will not be displayed');
}));
```
#### `queueMicrotask`[⬆](#index)
[Spec](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask), module [`web.queue-microtask`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.queue-microtask.js)
```js
function queueMicrotask(fn: Function): void;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/web/queue-microtask
core-js(-pure)/stable|features/queue-microtask
```
[*Examples*](https://goo.gl/nsW8P9):
```js
queueMicrotask(() => console.log('called as microtask'));
```
#### `URL` and `URLSearchParams`[⬆](#index)
[`URL` standard](https://url.spec.whatwg.org/) implementation. Modules [`web.url`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.url.js), [`web.url.to-json`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.url.to-json.js), [`web.url-search-params`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.url-search-params.js).
```js
class URL {
constructor(url: string, base?: string);
attribute href: string;
readonly attribute origin: string;
attribute protocol: string;
attribute username: string;
attribute password: string;
attribute host: string;
attribute hostname: string;
attribute port: string;
attribute pathname: string;
attribute search: string;
readonly attribute searchParams: URLSearchParams;
attribute hash: string;
toJSON(): string;
toString(): string;
}
class URLSearchParams {
constructor(params?: string | Iterable<[key, value]> | Object);
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | void;
getAll(name: string): Array;
has(name: string): boolean;
set(name: string, value: string): void;
sort(): void;
toString(): string;
forEach(callbackfn: (value: any, index: number, target: any) => void, thisArg: any): void;
entries(): Iterator<[key, value]>;
keys(): Iterator;
values(): Iterator;
@@iterator(): Iterator<[key, value]>;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js/proposals/url
core-js(-pure)/web/url
core-js(-pure)/web/url-search-params
core-js(-pure)/stable|features/url
core-js/stable|features/url/to-json
core-js(-pure)/stable|features/url-search-params
core-js/stable|features/url-search-params/sort
```
[*Examples*](https://goo.gl/kksjwV):
```js
const url = new URL('http://login:password@example.com:8080/foo/bar?a=1&b=2&a=3#fragment');
console.log(url.href); // => 'http://login:password@example.com:8080/foo/bar?a=1&b=2#fragment'
console.log(url.origin); // => 'http://example.com:8080'
console.log(url.protocol); // => 'http:'
console.log(url.username); // => 'login'
console.log(url.password); // => 'password'
console.log(url.host); // => 'example.com:8080'
console.log(url.hostname); // => 'example.com'
console.log(url.port); // => '8080'
console.log(url.pathname); // => '/foo/bar'
console.log(url.search); // => '?a=1&b=2&a=3'
console.log(url.hash); // => '#fragment'
console.log(url.toJSON()); // => 'http://login:password@example.com:8080/foo/bar?a=1&b=2&a=3#fragment'
console.log(url.toString()); // => 'http://login:password@example.com:8080/foo/bar?a=1&b=2&a=3#fragment'
for (let [key, value] of url.searchParams) {
console.log(key); // => 'a', 'b'
console.log(value); // => '1', '2'
}
url.pathname = '';
url.searchParams.append('c', 3);
console.log(url.search); // => '?a=1&b=2&c=3'
console.log(url.href); // => 'http://login:password@example.com:8080/?a=1&a=3&b=2&c=4#fragment'
const params = new URLSearchParams('?a=1&b=2&a=3');
params.append('c', 4);
params.append('a', 2);
params.sort();
for (let [key, value] of params) {
console.log(key); // => 'a', 'a', 'a', 'b', 'c'
console.log(value); // => '1', '3', '2', '2', '4'
}
console.log(params.toString()); // => 'a=1&a=3&a=2&b=2&c=4'
```
##### Caveats when using `URL` and `URLSearchParams`:[⬆](#index)
- IE8 does not support setters, so they do not work on `URL` instances. However, `URL` constructor can be used for basic `URL` parsing.
- Legacy encodings in a search query are not supported. Also, `core-js` implementation has some other encoding-related issues.
- `URL` implementations from all of the popular browsers have much more problems than `core-js`, however, replacing all of them does not looks like a good idea. You can customize the aggressiveness of polyfill [by your requirements](#configurable-level-of-aggressiveness).
#### Iterable DOM collections[⬆](#index)
Some DOM collections should have [iterable interface](https://heycam.github.io/webidl/#idl-iterable) or should be [inherited from `Array`](https://heycam.github.io/webidl/#LegacyArrayClass). That means they should have `forEach`, `keys`, `values`, `entries` and `@@iterator` methods for iteration. So add them. Modules [`web.dom-collections.iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.dom-collections.iterator.js) and [`web.dom-collections.for-each`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/web.dom-collections.for-each.js).
```js
class [
CSSRuleList,
CSSStyleDeclaration,
CSSValueList,
ClientRectList,
DOMRectList,
DOMStringList,
DataTransferItemList,
FileList,
HTMLAllCollection,
HTMLCollection,
HTMLFormElement,
HTMLSelectElement,
MediaList,
MimeTypeArray,
NamedNodeMap,
PaintRequestList,
Plugin,
PluginArray,
SVGLengthList,
SVGNumberList,
SVGPathSegList,
SVGPointList,
SVGStringList,
SVGTransformList,
SourceBufferList,
StyleSheetList,
TextTrackCueList,
TextTrackList,
TouchList,
] {
@@iterator(): Iterator;
}
class [DOMTokenList, NodeList] {
forEach(callbackfn: (value: any, index: number, target: any) => void, thisArg: any): void;
entries(): Iterator<[key, value]>;
keys(): Iterator;
values(): Iterator;
@@iterator(): Iterator;
}
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js(-pure)/web/dom-collections
core-js(-pure)/stable|features/dom-collections/iterator
core-js/stable|features/dom-collections/for-each
```
[*Examples*](http://goo.gl/lfXVFl):
```js
for (let { id } of document.querySelectorAll('*')) {
if (id) console.log(id);
}
for (let [index, { id }] of document.querySelectorAll('*').entries()) {
if (id) console.log(index, id);
}
document.querySelectorAll('*').forEach(it => console.log(it.id));
```
### Iteration helpers[⬆](#index)
Modules [`core.is-iterable`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/core.is-iterable.js), [`core.get-iterator`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/core.get-iterator.js), [`core.get-iterator-method`](https://github.com/zloirock/core-js/blob/v3.8.2/packages/core-js/modules/core.get-iterator-method.js) - helpers for check iterability / get iterator in the `pure` version or, for example, for `arguments` object:
```js
function isIterable(value: any): boolean;
function getIterator(value: any): Object;
function getIteratorMethod(value: any): Function | void;
```
[*CommonJS entry points:*](#commonjs-api)
```js
core-js-pure/features/is-iterable
core-js-pure/features/get-iterator
core-js-pure/features/get-iterator-method
```
[*Examples*](http://goo.gl/SXsM6D):
```js
import isIterable from 'core-js-pure/features/is-iterable';
import getIterator from 'core-js-pure/features/get-iterator';
import getIteratorMethod from 'core-js-pure/features/get-iterator-method';
let list = (function () {
return arguments;
})(1, 2, 3);
console.log(isIterable(list)); // true;
let iterator = getIterator(list);
console.log(iterator.next().value); // 1
console.log(iterator.next().value); // 2
console.log(iterator.next().value); // 3
console.log(iterator.next().value); // undefined
getIterator({}); // TypeError: [object Object] is not iterable!
let method = getIteratorMethod(list);
console.log(typeof method); // 'function'
let iterator = method.call(list);
console.log(iterator.next().value); // 1
console.log(iterator.next().value); // 2
console.log(iterator.next().value); // 3
console.log(iterator.next().value); // undefined
console.log(getIteratorMethod({})); // undefined
```
## Missing polyfills[⬆](#index)
- ES `String#normalize` is not a very useful feature, but this polyfill will be very large. If you need it, you can use [unorm](https://github.com/walling/unorm/).
- ES `Proxy` can't be polyfilled, you can try [`proxy-polyfill`](https://github.com/GoogleChrome/proxy-polyfill) which provides a very little subset of features.
- `window.fetch` is not a cross-platform feature, in some environments, it makes no sense. For this reason, I don't think it should be in `core-js`. Looking at a large number of requests it *might be* added in the future. Now you can use, for example, [this polyfill](https://github.com/github/fetch).
- ECMA-402 `Intl` is missed because of the size. You can use [this polyfill](https://github.com/andyearnshaw/Intl.js/).
core-js-3.8.2/SECURITY.md 0000664 0000000 0000000 00000001003 13774351224 0014661 0 ustar 00root root 0000000 0000000 # Security Policy
## Supported Versions
This is the list of versions of `core-js` which are
currently being supported with security updates.
| Version | Supported |
| -------- | ------------------ |
| 3.x | :white_check_mark: |
| < 3.0 | :x: |
## Reporting a Vulnerability
To report a vulnerability please send an email with the details to zloirock@zloirock.ru.
This will help us to assess the risk and start the necessary steps.
Thanks for helping to keep `core-js` secure!
core-js-3.8.2/babel.config.js 0000664 0000000 0000000 00000002270 13774351224 0015746 0 ustar 00root root 0000000 0000000 'use strict';
module.exports = {
// use transforms which does not use ES5+ builtins
plugins: [
['@babel/proposal-logical-assignment-operators'],
['@babel/proposal-nullish-coalescing-operator'],
['@babel/proposal-numeric-separator'],
['@babel/proposal-optional-catch-binding'],
['@babel/proposal-optional-chaining'],
['@babel/transform-member-expression-literals'],
['@babel/transform-property-literals'],
['@babel/transform-arrow-functions'],
['@babel/transform-block-scoped-functions'],
['@babel/transform-block-scoping'],
['@babel/transform-classes', { loose: true }],
['@babel/transform-computed-properties', { loose: true }],
['@babel/transform-destructuring', { loose: true }],
['@babel/transform-literals'],
['@babel/transform-parameters'],
['@babel/transform-shorthand-properties'],
['@babel/transform-spread', { loose: true }],
['@babel/transform-template-literals', { loose: true, spec: true }],
['@babel/transform-exponentiation-operator'],
['transform-for-of-as-array'],
// use it instead of webpack es modules for support engines without descriptors
['transform-es2015-modules-simple-commonjs'],
],
};
core-js-3.8.2/docs/ 0000775 0000000 0000000 00000000000 13774351224 0014026 5 ustar 00root root 0000000 0000000 core-js-3.8.2/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md 0000664 0000000 0000000 00000113114 13774351224 0025133 0 ustar 00root root 0000000 0000000 # core-js@3, babel and a look into the future
After more than 1.5 years of development, dozens of pre-releases, many sleepless nights, **[`core-js@3`](https://github.com/zloirock/core-js)** is finally released. It's the largest set of changes in `core-js` and polyfilling-related **[`babel`](https://babeljs.io)** features of all time.
What is `core-js`?
- It is a polyfill of the JavaScript standard library, which supports:
- The latest ECMAScript standard.
- ECMAScript standard library proposals.
- Some WHATWG / W3C standards (cross-platform or closely related ECMAScript).
- It is maximally modular: you can easily choose to load only the features you will be using.
- It can be used without polluting the global namespace.
- It is [tightly integrated with `babel`](#Babel): this allows many optimizations of `core-js` import.
It's the most universal and [the most popular](https://www.npmtrends.com/core-js-vs-es5-shim-vs-es6-shim-vs-airbnb-js-shims-vs-polyfill-library-vs-polyfill-service-vs-js-polyfills) way to polyfill JavaScript standard library, but a big part of developers just don't know that they use `core-js` indirectly 🙂
## Contributing
`core-js` is my own hobby project and it does not bring me any profit. It takes too much time and it is really costly: to finish work on `core-js@3`, I had left my job some months ago. This project facilitates the life of many people and companies. For these reasons, it makes sense to start raising funds to support the maintenance of `core-js`.
If you interested in the `core-js` project or use it in your day-to-day work, you can become a sponsor on **[Open Collective](https://opencollective.com/core-js#sponsor)** or **[Patreon](https://www.patreon.com/zloirock)**.
You can propose [me](http://zloirock.ru/) a good job where I will be able to work on something related.
Or you can contribute in another way: you can help improving code, tests or documentation (currently, `core-js` documentation is terrible!).
## What changed in `core-js@3`?
### Changes in JavaScript standard library content
Because of the following two reasons, this release is rich with new JavaScript polyfills:
- `core-js` only has breaking changes in major releases, even if it is needed to reflect a change in a proposal.
- `core-js@2` entered feature freeze 1.5 years ago; all new features were added only to the `core-js@3` branch.
#### Stable ECMAScript features
Stable ECMAScript features had already been almost completely supported by `core-js` for a long time, however, `core-js@3` introduced some new features:
- Added support of [`@@isConcatSpreadable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable) and [`@@species`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species) well-known symbols, introduced in ECMAScript 2015, to all the methods which use them.
- Added [`Array.prototype.flat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) and [`Array.prototype.flatMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) methods from ECMAScript 2018 (`core-js@2` provided a polyfill for an old version of this proposal with `Array.prototype.flatten`).
- Added [`Object.fromEntries`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries) method, introduced in ECMAScript 2019.
- Added [`Symbol.prototype.description`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/description) accessor, introduced ECMAScript 2019.
Some features that have already been available for a long time as proposals have been accepted in ES2016-ES2019 and are now marked as stable:
- [`Array.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) and [`%TypedArray%.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) methods (ECMAScript 2016)
- [`Object.values`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) and [`Object.entries`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) methods (ECMAScript 2017)
- [`Object.getOwnPropertyDescriptors`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors) method (ECMAScript 2017)
- [`String.prototype.padStart`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart) and [`String.prototype.padEnd`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd) methods (ECMAScript 2017)
- [`Promise.prototype.finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) method (ECMAScript 2018)
- [`Symbol.asyncIterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator) well-known symbol (ECMAScript 2018)
- [`Object.prototype.__define(Getter|Setter)__`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) and [`Object.prototype.__lookup(Getter|Setter)__`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) methods (ECMAScript 2018)
- [`String.prototype.trim(Start|End|Left|Right)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) methods (ECMAScript 2019)
Added many fixes for browsers bugs/issues. For example, [Safari 12.0 `Array.prototype.reverse` bug](https://bugs.webkit.org/show_bug.cgi?id=188794) has been fixed.
#### ECMAScript proposals
In addition to supported before, `core-js@3` now supports the following ECMAScript proposals:
- [`globalThis`](https://github.com/tc39/proposal-global) stage 3 proposal - before, we had `global` and `System.global`
- [`Promise.allSettled`](https://github.com/tc39/proposal-promise-allSettled) stage 2 proposal
- [New `Set` methods](https://github.com/tc39/proposal-set-methods) stage 2 proposal:
- `Set.prototype.difference`
- `Set.prototype.intersection`
- `Set.prototype.isDisjointFrom`
- `Set.prototype.isSubsetOf`
- `Set.prototype.isSupersetOf`
- `Set.prototype.symmetricDifference`
- `Set.prototype.union`
- [New collections methods](https://github.com/tc39/proposal-collection-methods) stage 1 proposal, which includes many new useful methods:
- `Map.groupBy`
- `Map.keyBy`
- `Map.prototype.deleteAll`
- `Map.prototype.every`
- `Map.prototype.filter`
- `Map.prototype.find`
- `Map.prototype.findKey`
- `Map.prototype.includes`
- `Map.prototype.keyOf`
- `Map.prototype.mapKeys`
- `Map.prototype.mapValues`
- `Map.prototype.merge`
- `Map.prototype.reduce`
- `Map.prototype.some`
- `Map.prototype.update`
- `Set.prototype.addAll`
- `Set.prototype.deleteAll`
- `Set.prototype.every`
- `Set.prototype.filter`
- `Set.prototype.find`
- `Set.prototype.join`
- `Set.prototype.map`
- `Set.prototype.reduce`
- `Set.prototype.some`
- `WeakMap.prototype.deleteAll`
- `WeakSet.prototype.addAll`
- `WeakSet.prototype.deleteAll`
- [`String.prototype.replaceAll`](https://github.com/tc39/proposal-string-replace-all) stage 1 proposal
- [`String.prototype.codePoints`](https://github.com/tc39/proposal-string-prototype-codepoints) stage 1 proposal
- [`Array.prototype.last(Item|Index)`](https://github.com/keithamus/proposal-array-last) stage 1 proposal
- [`compositeKey` and `compositeSymbol` methods](https://github.com/bmeck/proposal-richer-keys/tree/master/compositeKey) stage 1 proposal
- [`Number.fromString`](https://github.com/tc39/proposal-number-fromstring) stage 1 proposal
- [`Math.seededPRNG`](https://github.com/tc39/proposal-seeded-random) stage 1 proposal
- [`Promise.any` (with `AggregateError`)](https://github.com/tc39/proposal-promise-any) stage 0 proposal
Some proposals have been largely changed, and `core-js` was updated accordingly:
- [`String.prototype.matchAll`](https://github.com/tc39/proposal-string-matchall) stage 3 proposal
- [`Observable`](https://github.com/tc39/proposal-observable) stage 1 proposal
#### Web standards
Many useful features have been added in this category.
The most important one is support for [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) and [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams). It was [one of the most popular feature requests](https://github.com/zloirock/core-js/issues/117). Adding `URL` and `URLSearchParams`, making maximally spec compliant, supporting any environment keeping their source code small compact was [one of the hardest tasks](https://github.com/zloirock/core-js/pull/454/files) in the `core-js@3` development.
`core-js@3` includes *a standard* method to create microtasks in JavaScript: [`queueMicrotask`](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing). `core-js@2` provided the `asap` function which did the same thing and was an old ECMAScript proposal. `queueMicrotask` is defined in the HTML standard and it is already available in modern engines like Chromium or NodeJS.
Another popular feature request was support for the [`.forEach` method on DOM collection](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach). Since `core-js` already polyfilled iterators of DOM collections, why not add also `.forEach` to `NodeList` and `DOMTokenList`?
#### Removed obsolete featues:
- `Reflect.enumerate` because it's removed from the spec
- `System.global` and `global` since now they are replaced by `globalThis`
- `Array.prototype.flatten` since it's replaced by `Array.prototype.flat`
- `asap` since it's replaced by `queueMicrotask`
- `Error.isError` has withdrawn a long time ago
- `RegExp.escape` rejected a long time ago
- `Map.prototype.toJSON` and `Set.prototype.toJSON` also rejected a long time ago
- Unnecessary `CSSRuleList`, `MediaList`, `StyleSheetList` iteration methods which were added mistakenly
#### No more non-standard non-proposed features
Many years ago, I started writing a library which I needed as the core of my JavaScript applications: this library contained polyfills and some utilities for common needs. After some time, it was published as `core-js`. I think that at this moment most `core-js` users do not use non-standard `core-js` features. Almost all of them were removed in previous releases, and it's time to remove all the remaining ones from `core-js`. Starting from this release, `core-js` can be finally called a polyfill.
### Packages, entry points and modules names
A popular issue was the big size (~2MB) of the `core-js` package and duplication of many of its files. For this reason, `core-js` was split into three packages:
- [`core-js`](https://www.npmjs.com/package/core-js), which defines global polyfills. (~500KB, [40KB minified and gzipped](https://bundlephobia.com/result?p=core-js@3.0.0-beta.20))
- [`core-js-pure`](https://www.npmjs.com/package/core-js-pure), which provides polyfills without pollution the global environment. It's the equivalent of `core-js/library` from `core-js@2`. (~440KB)
- [`core-js-bundle`](https://www.npmjs.com/package/core-js-bundle): a bundled version of `core-js` which defines global polyfills.
In previous versions of `core-js`, modules with polyfills for stable ECMAScript features and ECMAScript proposals were prefixed with `es6.` and `es7.` respectively. It was a decision taken in 2014 when all the features which could be after ES6 were considered as ES7. In `core-js@3` all stable ECMAScript features are prefixed with `es.`, while ECMAScript proposals with `esnext.`.
Almost all CommonJS entry points were changed. In `core-js@3` there are many more entry points than there were in `core-js@2`: they bring maximum flexibility, making it possible to include only the polyfills needed by your application.
Here are some examples of how the new entry points can be used:
```js
// polyfill all `core-js` features:
import "core-js";
// polyfill only stable `core-js` features - ES and web standards:
import "core-js/stable";
// polyfill only stable ES features:
import "core-js/es";
// if you want to polyfill `Set`:
// all `Set`-related features, with ES proposals:
import "core-js/features/set";
// stable required for `Set` ES features and features from web standards
// (DOM collections iterator in this case):
import "core-js/stable/set";
// only stable ES features required for `Set`:
import "core-js/es/set";
// the same without global namespace pollution:
import Set from "core-js-pure/features/set";
import Set from "core-js-pure/stable/set";
import Set from "core-js-pure/es/set";
// if you want to polyfill just required methods:
import "core-js/features/set/intersection";
import "core-js/stable/queue-microtask";
import "core-js/es/array/from";
// polyfill reflect metadata proposal:
import "core-js/proposals/reflect-metadata";
// polyfill all stage 2+ proposals:
import "core-js/stage/2";
```
### Some other important changes
It's now possible to [configure the aggressiveness](https://github.com/zloirock/core-js/blob/master/README.md#configurable-level-of-aggressiveness) of `core-js` polyfills. If you think that `core-js` feature detection is too aggressive in some cases and that the native implementation is correct enough for your usecase, or if an incorrect implementation isn't detected by `core-js` as such, you can change the `core-js` default behavior.
If a feature can't be implemented following the specification in every details, `core-js` adds a `.sham` property to the polyfill. For example, in IE11 `Symbol.sham` is `true`.
No more LiveScript! When I started the `core-js` project, I mainly used [LiveScript](http://livescript.net/); after some time, I rewrote all the polyfills in JavaScript. Tests and helper tools in `core-js@2` still used LiveScript: it is a very interesting CoffeeScript-like language with powerful syntax sugar which allows writing very compact code, but now it's almost dead. Other than that, it was an additional barrier for contributing to `core-js` because most `core-js` users do not know this language. `core-js@3` tests and tools use modern ES syntax: it could be a good moment to start contributing to `core-js` 🙂
For almost all users, for optimization of `core-js` import, I recommend using [`babel`](#Babel). However, for some cases still useful [`core-js-builder`](http://npmjs.com/package/core-js-builder). Now it supports the `targets` argument which takes a [`browserslist`](https://github.com/browserslist/browserslist) query with target engines - you can create a bundle which contains only required for target engines polyfills. For cases like this, I made the [`core-js-compat`](http://npmjs.com/package/core-js-compat) package, more info about it you could find in [`@babel/preset-env` part of this article](#babelpreset-env).
---
This is just the tip of the iceberg, much more changes were done internally. You can find more info about `core-js` changes in the [changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md#300).
## Babel
As mentioned above, `babel` and `core-js` are tightly integrated: `babel` gives the possibility of optimizing the `core-js` import as much as possible. A serious part of work on `core-js@3` was improving `core-js`-related `babel` features (see [this PR](https://github.com/babel/babel/pull/7646)). Those changes are published in [Babel 7.4.0](https://babeljs.io/blog/2019/03/19/7.4.0).
### `@babel/polyfill`
[`@babel/polyfill`](https://babeljs.io/docs/en/next/babel-polyfill.html) is a wrapper package which only includes imports of stable `core-js` features (in Babel 6 it also included proposals) and `regenerator-runtime/runtime`, needed by transpiled generators and async functions. This package doesn't make it possible to provide a smooth migration path from `core-js@2` to `core-js@3`: for this reason, it was decided to deprecate `@babel/polyfill` in favor of separate inclusion of required parts of `core-js` and `regenerator-runtime`.
Instead of
```js
import "@babel/polyfill";
```
you should use those 2 lines:
```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```
Don't forget install those dependencies directly!
```sh
npm i --save core-js regenerator-runtime
```
### `@babel/preset-env`
[`@babel/preset-env`](https://babeljs.io/docs/en/next/babel-preset-env#usebuiltins) has 2 different modes, which can be enabled with the `useBuiltIns` option: `entry` and `usage`, which optimize imports of `core-js` in different ways.
Babel 7.4.0 introduces both changes commons to the two modes and specific to each mode.
Since `@babel/preset-env` now supports `core-js@2` and `core-js@3`, `useBuiltIns` requires setting a new option, `corejs`, which specifies the used version (`corejs: 2` or `corejs: 3`). If it isn't directly set, `corejs: 2` will be used by default and it will show a warning.
To make it possible for Babel to support new `core-js` features introduced in future minor versions, you also can specify the minor `core-js` version used in your project. For example, if you want to use `core-js@3.1` and take advantage of new features added in that version, you can set the `corejs` option to `3.1`: `corejs: '3.1'` or `corejs: { version: '3.1' }`.
One of the most important parts of `@babel/preset-env` was the source providing data about the features supported by different target engines, to understand whether something needs to be polyfilled by `core-js` or not. [`caniuse`](https://caniuse.com/), [`mdn`](https://developer.mozilla.org/en-US/) and [`compat-table`](http://kangax.github.io/compat-table/es6/) are good educational resources but aren't really meant to be used as data sources for developer tools: only the `compat-table` contains a good set of ES-related data and it is used by `@babel/preset-env`, but it has some limitations:
- it contains data only about ECMAScript features and proposals, but not about web platform features like `setImmediate` or DOM collections iterators. So, up to now, `@babel/preset-env` added all web platform features from `core-js` even for targets where they are supported.
- it does not contain any information about (even serious) bugs in engines: for example, already mentioned `Array#reverse` broken in Safari 12 but it isn't marked as unsupported by `compat-table`. On the other hand, `core-js` correctly fixes broken implementations, but with `compat-table` this capability wasn't taken advantage of.
- it contains only some basic and naive tests, which do not check that features work as they should in real-word cases. For example, old Safari has broken iterators without `.next` method, but `compat-table` shows them as supported because it just check that `typeof` of methods which should return iterators is `"function"`. Some features like typed arrays are almost completely not covered.
- `compat-table` is not designed for providing data for tools. I'm one of the `compat-table` maintainers, but [some of the other maintainers are against maintaining this functionality](https://github.com/kangax/compat-table/pull/1312).
For this reason, I created the [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) package: it provides data about the necessity of `core-js` modules for different target engines. When using `core-js@3`, `@babel/preset-env` will use that new package instead of `compat-table`. [Please help us testing and providing data and mappings for missing engines! 😊](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data)
Until Babel 7.3, `@babel/preset-env` had some problems related to the order polyfills were injected. Starting from version 7.4.0, `@babel/preset-env` will add the polyfills only when it know which of them required and in the recommended order.
#### `useBuiltIns: entry` with `corejs: 3`
When using this option, `@babel/preset-env` replaces direct imports of `core-js` to imports of only the specific modules required for a target environment.
Before those changes, `@babel/preset-env` replaced only `import '@babel/polyfill'` and `import 'core-js'`, they were synonyms and used for polyfilling all stable JavaScript features.
Since `@babel/polyfill` is now deprecated, `@babel/preset-env` doesn't transpile it when `corejs` is set to `3`.
An equivalent replacement for `@babel/polyfill` with `core-js@3` is
```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```
When targeting `chrome 72`, it will be transformed by `@babel/preset-env` to
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modules/web.immediate";
```
when targeting `chrome 73` (which completely support ES2019 standard library), it will just become a single smaller import:
```js
import "core-js/modules/web.immediate";
```
Since now `@babel/polyfill` is deprecated in favor of separate `core-js` and `regenerator-runtime` inclusion, we can optimize `regenerator-runtime` import. For this reason, `regenerator-runtime` import will be removed from the source code when targeting browsers that supports generators natively.
Now, `@babel/preset-env` in `useBuiltIns: entry` mode transpile **all available** `core-js` entry points and their combinations. This means that you can customize it as much as you want, by using different `core-js` entry points, and it will be optimized for your target environment.
For example, when targeting `chrome 72`,
```js
import "core-js/es";
import "core-js/proposals/set-methods";
import "core-js/features/set/map";
```
will be replaced with
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modules/esnext.set.difference";
import "core-js/modules/esnext.set.intersection";
import "core-js/modules/esnext.set.is-disjoint-from";
import "core-js/modules/esnext.set.is-subset-of";
import "core-js/modules/esnext.set.is-superset-of";
import "core-js/modules/esnext.set.map";
import "core-js/modules/esnext.set.symmetric-difference";
import "core-js/modules/esnext.set.union";
```
#### `useBuiltIns: usage` with `corejs: 3`
When using this option, `@babel/preset-env` adds at the top of each file imports of polyfills only for features used in the current and not supported by target environments.
For example,
```js
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
when targeting an old browser like `ie 11`, will be transformed to
```js
import "core-js/modules/es.array.includes";
import "core-js/modules/es.array.iterator";
import "core-js/modules/es.object.to-string";
import "core-js/modules/es.set";
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
when targeting, for example, `chrome 72` no imports will be injected, since those polyfills not required for this target:
```js
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
Until Babel 7.3, `useBuiltIns: usage` was unstable and not fully reliable: many polyfills were not included, and many others were added without their required dependencies. In Babel 7.4, I tried to make it understand every possible usage pattern.
I improved the techniques used to determine which polyfills should be added on property accesses, object destructuring, `in` operator, global object property accesses.
`@babel/preset-env` now injections polyfills required for syntax features: iterators when using `for-of`, destructuring, spread and `yield` delegation; promises when using dynamic `import`, async functions and generators, etc.
Babel 7.4 supports injecting proposals polyfills. By default, `@babel/preset-env` does not inject them, but you can opt-in using the `proposals` flag: `corejs: { version: 3, proposals: true }`.
### `@babel/runtime`
When used with `core-js@3`, [`@babel/transform-runtime`](https://babeljs.io/docs/en/next/babel-plugin-transform-runtime#corejs) now injects polyfills from `core-js-pure`: a version of `core-js` which doesn't pollute the global namespace.
`core-js@3` and `@babel/runtime` have been integrated together by adding a `corejs: 3` option to `@babel/transform-runtime` and creating the `@babel/runtime-corejs3` package. But what advantages did this bring?
One of the most popular issue with `@babel/runtime` was that it did not support instance methods. Starting from `@babel/runtime-corejs3`, this problem has resolved. For example,
```js
array.includes(something);
```
will be transpiled to
```js
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
_includesInstanceProperty(array).call(array, something);
```
Another notable change is the support of ECMAScript proposals. By default, `@babel/plugin-transform-runtime` does not inject polyfills for proposals and use entry points which do not include them but, exactly as you can do in `@babel/preset-env`, you can set the `proposals` flag to enable them: `corejs: { version: 3, proposals: true }`.
Without `proposals` flag,
```js
new Set([1, 2, 3, 2, 1]);
string.matchAll(/something/g);
```
is transpiled to:
```js
import _Set from "@babel/runtime-corejs3/core-js-stable/set";
new _Set([1, 2, 3, 2, 1]);
string.matchAll(/something/g);
```
when proposals are enabled, it becomes:
```js
import _Set from "@babel/runtime-corejs3/core-js/set";
import _matchAllInstanceProperty from "@babel/runtime-corejs3/core-js/instance/match-all";
new _Set([1, 2, 3, 2, 1]);
_matchAllInstanceProperty(string).call(string, /something/g);
```
Some other old issues have been fixed. For example, this quite popular pattern didn't work when using `@babel/runtime-corejs2` but it is supported with `@babel/runtime-corejs3`.
```js
myArrayLikeObject[Symbol.iterator] = Array.prototype[Symbol.iterator];
```
Although previous versions of `@babel/runtime` did not work with instance methods, iterables (both `[Symbol.iterator]()` calls and its presence) were supported using some custom helper functions. Extracting the `[Symbol.iterator]` method was not supported, but now it works.
As a cheap bonus, `@babel/runtime` now supports IE8-, with some limitations. For example, since IE8- does not support accessors, modules transform should be used in loose mode and `regenerator-runtime` (which internally use some ES5+ built-ins) needs to be transpiled by this plugin.
## Look into the future
Much work has been done, but `core-js` is still far from perfect. How can the library and tools be improved in the future and how do language changes can affect it?
### Old engines support
At this moment, `core-js` tries to support all possible engines and platforms where we can test it: it even supports IE8- or, for example, early Firefox versions. While it is useful for some users, only for a small part of developers using `core-js` need it. For many other users, it can cause some problems like bigger bundle size or slower runtime execution.
The main problem comes from supporting ES3 engines (above all, IE8-): most modern ES features based on ES5 features, which aren't available in those very old browsers.
The biggest missing important feature are property descriptors: when they aren't available, some features can't be polyfilled because they either are accessors (like `RegExp.prototype.flags` or `URL` properties setters) or are accessors-based (like typed arrays polyfill). In order to workaround this lack, we need to use different workarounds (for example, to keep `Set.prototype.size` updated). Maintenance of those workarounds sometimes is too painful, and removing them would highly simplify many polyfills.
However, descriptors are just a part of this problem. The ES5 standard library contains many other features that can be considered as the basis of modern JavaScript: `Object.keys`, `Object.create`, `Object.getPrototypeOf`, `Array.prototype.forEach`, `Function.prototype.bind`, etc. Unlike the most modern features, `core-js` internally relies on them and [in order to implement even a simple modern function, `core-js` needs to load implementations of some of those "building blocks"](https://github.com/babel/babel/pull/7646#discussion_r179333093). It is a problem for users who want to create [a maximally minimalistic bundle](https://github.com/zloirock/core-js/issues/388) and only import just a few `core-js` polyfills.
In some countries IE8 still is quite popular, but browsers should disappear at some point to allow the web to move forward. IE8 was released 19-03-2009; today it is 19-03-2019: it's the 10th birthday of IE8. IE6 is about to turn 18: I stopped testing new `core-js` versions in IE6 some months ago.
We should drop IE8- and other engines without basic ES5 support in `core-js@4`.
### ECMAScript modules
`core-js` use `CommonJS` modules. It has the most popular JavaScript modules format for a long time, but now ECMAScript provides its own modules format. Many engines already support them; some bundlers (like `rollup`) are based on them, and some other bundlers provide them as an alternative to `CommonJS`. It would make sense to provide an alternative version of `core-js` which uses ECMAScript modules format.
### Extended web standards support?
`core-js` is currently focused on ECMAScript support, but it also supports a few web standards features which are available cross-platform and closely related to ECMAScript. Adding polyfills for web standards like `fetch` is a very popular feature request.
The main reason why `core-js` doesn’t include them was that it would have seriously increased bundles size and it would have forced `core-js` users to load features which might not have been needed. Now `core-js` is maximally modular, user can include only some choosen features, there are tools like `@babel/preset-env` and `@babel/runtime` which helps to get rid of unused or unnecessary polyfills.
Maybe it's time to revisit this old decision?
### `@babel/runtime` for target environment
Currently, we can't set the target environment as `@babel/runtime` like we can do for `@babel/preset-env`. That means that `@babel/runtime` injects all possible polyfills even when targeting modern engines: it unnecessarily increases the size of the final bundle.
Since `core-js-compat` contains all the necessary data, in the future, it will be possible to add support for compiling for a target environment to `@babel/runtime` and to add a `useBuiltIns: runtime` option to `@babel/preset-env`.
### Better optimization of polyfill loading
As explained above, Babel plugins give us different ways of optimizing `core-js` usage, but they are not perfect: we can improve them.
`@babel/preset-env` with `useBuiltIns: usage` now should work much better than before, but it could still fail in some uncommon cases: when the code can't be statically analyzed. For that case, we need to find a way for library developers to specify which polyfills are required by their library instead of directly loading them: some kind of metadata, which will be used to inject polyfills when creating the final bundle.
Another issue of `useBuiltIns: usage` is the duplication of polyfills import. `useBuiltIns: usage` can inject dozens of `core-js` imports in each file. But what if in our project has thousands of files or even tenths of thousands? In this case, we will have more lines of code with `import "core-js/..."` than lines of code in `core-js` itself: we need a way to collect all imports to one file so that they can be deduplicated.
Almost every `@babel/preset-env` user which targets old engines like IE11 uses a single bundle for every browser. That means that even modern engines with full ES2019 support will be loading the unnecessary polyfills only required by IE11. Sure, we can create different bundles for different targets and use, for example, the `type=module` / `nomodules` attributes: one bundle for modern engines with modules support, another for legacy engines. Unfortunately it’s not a complete solution to this problem: a service which bundles polyfills for the required target based on the user agent would be really useful. And we already have one - [`polyfill-service`](https://github.com/Financial-Times/polyfill-service). Although it is an interesting and popular service, polyfills quality leaves much to be desired. It’s not as bad as it was some years ago: the team of this project is actively working to improve it, but I wouldn't recommend using polyfills from this project if you want them to match native implementations. Some years ago was an attempt to use `core-js` as a polyfills source for this project, but it hadn't been possible because `polyfill-service` relies on files concatenation instead of modules (like `core-js` in the first few months after it was published 😊).
A service like this one integrated with a good polyfills source like `core-js`, which only loads the needed polyfills by statically analyzing the source like Babel's `useBuiltIns: usage` option does could cause a revolution in the way we think about polyfills.
### New features proposals from TC39 and possible problems for `core-js`
TC39 is working really hard to improve ECMAScript: you can see the progress by looking at all the new proposals implemented in `core-js`. However, I think that some features of some proposals could cause serious problems for polyfilling / transpiling. There would be enough to say about this topic to write a whole new post, but I'll try to summarize my thoughts here.
#### Standard library proposal, stage 1
At this moment, TC39 is considering adding to ECMAScript [built-in modules](https://github.com/tc39/proposal-javascript-standard-library): a modular standard library. It would be a great addition to JavaScript, and `core-js` is the best place where it could be polyfilled. With the techniques used in `@babel/preset-env` and `@babel/runtime`, we could theoretically inject polyfills for required built-in modules in a very simple way. However, the current version of this proposal causes some serious problems which don't make it as straightforward.
Polyfilling of built-in modules, [as stated by authors of the proposal](https://github.com/tc39/proposal-javascript-standard-library/issues/2), only means falling back to layered APIs or import maps. This means that if a native module will be missing, it will be possible to load a polyfill from a provided url. That's absolutely not what polyfills need, and it is incompatible with the architecture of `core-js` and every other popular polyfill projects. Import maps shouldn't be the only way to polyfill built-in modules.
We will be able to get a built-in module just by usage ES modules syntax with a special prefix. This syntax haven't any equal based on the previous version of the language - transpiled modules will not be able to interact with not transpiled in modern engines - it will cause problems for package distribution.
More other, it will work asynchronously. It's a critical problem for feature detection - scripts will not wait when you'll detect a feature and load a polyfill - feature detection should be done synchronously.
[The first implementation of built-in modules without a proper way of transpiling / polyfilling already available](https://developers.google.com/web/updates/2019/03/kv-storage). If it will not be revised, built-in modules will not be able to be polyfilled in the current `core-js` format. The proposed way of polyfilling will seriously complicate the lives of developers.
The issue with the standard library can be solved by adding a new global (maybe it will be the last one?): a registry of built-in modules which will allow getting and seting them synchronously, like
```js
StandardLibraryRegistry.get(moduleName);
StandardLibraryRegistry.set(moduleName, value);
```
Asynchronous fallbacks like layered APIs should be used only after this global registry.
As a bonus point, it would simplify transpiling native modules import to old syntax.
#### Decorators proposal, new iteration, stage 2
[In the new iteration](https://github.com/tc39/proposal-decorators) of this proposal, it has been seriously reworked. Decorator definitions aren't a syntax sugar anymore and, like with built-in modules, we will not be able to write a decorator in an old version of the language and use it as a native decorator. Other than that, decorators are not just usual identifiers - they live in a parallel lexical scope: this means that transpiled decorators can't interact with native decorators.
The proposal authors recommend distributing packages with untranspiled decorators and leave to the library consumers the choice to transpile their dependencies. However, it's not possible in different scenarios. This approach could prevent `core-js` from polyfilling new built-in decorators when they will be added to the JS standard library.
Decorators should be just an alternative way of applying functions on something, they should only be syntax sugar for wrappers. Why complicate things?
---
If a new language feature does not introduce to the language something fundamentally new, an alternative for what couldn't be implemented in a previous version of the language, we should be able to transpile and/or polyfill it, and transpiled/polyfilled code should be able to interact with native feature in engines which supports this feature natively.
I hope for the wisdom of the authors of those proposals and of the committee, that these proposals will be adapted so that it will be possible to properly transpile or polyfill them.
---
If you are interested in the `core-js` project or use it in your day-to-day work, you can become a sponsor on **[Open Collective](https://opencollective.com/core-js#sponsor)** or **[Patreon](https://www.patreon.com/zloirock)**. `core-js` isn't backed by a company: its future depends on you.
---
**Feel free to add comments to this article [here](https://github.com/zloirock/core-js/issues/496).**
**[Denis Pushkarev](https://github.com/zloirock)**, **19-03-2019**, *thanks [Nicolò Ribaudo](https://github.com/nicolo-ribaudo) for redaction*
core-js-3.8.2/docs/zh_CN/ 0000775 0000000 0000000 00000000000 13774351224 0015027 5 ustar 00root root 0000000 0000000 core-js-3.8.2/docs/zh_CN/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md 0000664 0000000 0000000 00000106044 13774351224 0026140 0 ustar 00root root 0000000 0000000 # core-js@3, Babel 展望未来
经过一年半的开发,数十个版本,许多不眠之夜,**[`core-js@3`](https://github.com/zloirock/core-js)** 终于发布了。这是 `core-js` 和 **[babel](https://babeljs.io/)** 补丁相关的功能的最大的一次变化。
什么是 `core-js`?
- 它是JavaScript标准库的 polyfill,它支持
- 最新的 [ECMAScript](https://en.wikipedia.org/wiki/ECMAScript) 标准
- ECMAScript 标准库提案
- 一些 [WHATWG](https://en.wikipedia.org/wiki/WHATWG) / [W3C](https://en.wikipedia.org/wiki/World_Wide_Web_Consortium) 标准(跨平台或者 ECMAScript 相关)
- 它最大限度的模块化:你能仅仅加载你想要使用的功能
- 它能够不污染全局命名空间
- 它[和babel紧密集成](https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#Babel):这能够优化`core-js`的导入
它是最普遍、[最流行](https://www.npmtrends.com/core-js-vs-es5-shim-vs-es6-shim-vs-airbnb-js-shims-vs-polyfill-library-vs-polyfill-service-vs-js-polyfills) 的给 JavaScript 标准库打补丁的方式,但是有很大一部分开发者并不知道他们间接的使用了`core-js`🙂
## 贡献
`core-js` 是我自己爱好的项目,没有给我带来任何利润。它花了我很长的时间,真的很昂贵:为了完成 `core-js@3`,我在几个月之前已经离开我的工作。这个项目对许多人和公司起到了促进作用。因为这些,筹集资金去支持 `core-js` 的维护是说得通的。
如果你对 `core-js` 感兴趣或者在你每天的工作中有使用到,你可以在 [Open Collective](https://opencollective.com/core-js#sponsor) 或者 [Patreon](https://www.patreon.com/zloirock) 成为赞助者。
你可以给[我](http://zloirock.ru/)提供一个好的工作,和我现在做的相关的。
或者你可以以另一种方式贡献,你可以帮助去改进代码、测试或者文档(现在,`core-js` 的文档还很糟糕!)。
## `core-js@3` 有哪些变化?
### JavaScript 标准库中变化的内容
由于以下两个原因,这个版本包含丰富的、新的 JavaScript 补丁:
- `core-js` 只在 major(主)版本更新时才有 break changes,即使需要和提案的内容对齐。
- `core-js@2` 在一年半前已经进入功能冻结阶段了;所有新的功能只能够添加到 `core-js@3` 这个分支。
#### 稳定的 ECMAScript 功能
稳定的 ECMAScript 功能在 `core-js` 中已经几乎完全支持有很长一段时间了,除此之外,`core-js@3` 引进了一些新功能:
- 增加支持 ECMAScript 2015 引入的两个知名标志 [`@@isConcatSpreadable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable) 和 [`@@species`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species),给所有使用他们的方法。
- 增加来自 ECMAScript 2018 的 [`Array.prototype.flat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) 和 [`Array.prototype.flatMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap)( `core-js@2` 针对 `Array.prototype.flatten` 这个老版本的提案提供了补丁)。
- 增加来自 ECMAScript 2019 的 [`Object.fromEntries`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries) 方法
- 增加来自 ECMAScript 2019 的 [`Symbol.prototype.description`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/description) 访问器
一些在 ES2016-ES2019 中作为提案被接受且已经使用很长时间的功能,现在被标记为稳定:
- [`Array.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) 和 [`TypedArray.prototype.includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes) 方法( ESMAScript 2016 )
- [`Object.values`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) 和 [`Object.entries`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) 方法( ECMAScript 2017 )
- [`Object.getOwnPropertyDescriptors`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors) 方法 ( ECMAScript 2017 )
- [`String.prototype.padStart`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart) 和 [`String.prototype.padEnd`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd) 方法( ECMAScript 2017 )
- [`Promise.prototype.finally`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/finally) 方法( ECMAScript 2018 )
- [`Symbol.asyncIterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator) 知名标志( ECMAScript 2018 )
- [`Object.prototype.__define(Getter|Setter)__`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) 和 [`Object.prototype.__lookup(Getter|Setter)__`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) 方法( ECMAScript 2018 )
- [`String.prototype.trim(Start|End|Left|Right)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart) 方法( ECMAScript 2019 )
修复了针对浏览器的许多问题,例如,[Safari 12.0 `Array.prototype.reverse` bug](https://bugs.webkit.org/show_bug.cgi?id=188794) 已经被修复了。
#### ECMAScript 提案
除了上文提到的支持内容,`core-js@3` 现在还支持下面的 ECMAScript 提案:
- [`globalThis`](https://github.com/tc39/proposal-global) stage 3( 现在是 stage 4 )的提案 - 之前,已经有了 `global` 和 `System.global`
- [`Promise.allSettled`](https://github.com/tc39/proposal-promise-allSettled) stage 2( 现在是 stage 4 )提案
- [新 `Set` 方法](https://github.com/tc39/proposal-set-methods) stage 2 提案:
- Set.prototype.difference
- Set.prototype.intersection
- Set.prototype.isDisjoinFrom
- Set.prototype.isSubsetOf
- Set.prototype.isSupersetOf
- Set.prototype.symmetricDifference
- Set.prototype.union
- [新 collections 方法](https://github.com/tc39/proposal-collection-methods) stage 1 提案,包函许多新的有用的方法:
- Map.groupBy
- Map.keyBy
- Map.prototype.deleteAll
- Map.prototype.every
- Map.prototype.filter
- Map.prototype.find
- Map.prototype.findKey
- Map.prototype.includes
- Map.prototype.keyOf
- Map.prototype.mapKeys
- Map.prototype.mapValues
- Map.prototype.merge
- Map.prototype.reduce
- Map.prototype.some
- Map.prototype.update
- Set.prototype.addAll
- Set.prototype.deleteAll
- Set.prototype.every
- Set.prototype.filter
- Set.prototype.find
- Set.prototype.join
- Set.prototype.map
- Set.prototype.reduce
- Set.prototype.some
- WeakMap.prototype.deleteAll
- WeakSet.prototype.addAll
- WeakSet.prototype.deleteAll
- [`String.prototype.replaceAll`](https://github.com/tc39/proposal-string-replace-all) stage 1( 现在是 stage 3 ) 提案
- [`String.prototype.codePoints`](https://github.com/tc39/proposal-string-prototype-codepoints) stage 1 提案
- [`Array.prototype.last(Item|Index)`](https://github.com/tc39-transfer/proposal-array-last) stage 1 提案
- [`compositeKey` 和 `compositeSymbol` 方法](https://github.com/bmeck/proposal-richer-keys/tree/master/compositeKey) stage 1 提案
- [`Number.fromString`](https://github.com/tc39/proposal-number-fromstring) stage 1 提案
- [`Math.seededPRNG`](https://github.com/tc39/proposal-seeded-random) stage 1 提案
- [`Promise.any` (合并的错误)](https://github.com/tc39/proposal-promise-any) stage 0( 现在是 stage 3 )提案
一些提案的变化很大,`core-js` 也将相应的更新:
- [`String.prototype.matchAll`](https://github.com/tc39/proposal-string-matchall) stage 3 提案
- [Observable](https://github.com/tc39/proposal-observable) stage 1 提案
#### web 标准
许多有用的功能被添加到这个类别中。
最重要的一个是 [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) 和 [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)。他是[最受欢迎的功能请求之一](https://github.com/zloirock/core-js/issues/117)。增加 `URL` 和 `URLSearchParams`,并保证他们最大限度的符合规范,保持源代码足够紧凑来支撑任何环境是 `core-js@3` 开发中[最困难的任务之一](https://github.com/zloirock/core-js/pull/454/files)。
`core-js@3` 包函在 JavaScript 中创建微任务( microtask )的标准方法:[`queueMicrotask`](https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing) 。`core-js@2` 提供了 `asap` 函数,提供了同样功能的老的提案。`queueMicrotask` 被定义在 HTML 标准中,它已经能够在现代浏览器比如 Chromium 或者 NodeJS 中使用。
另一个受欢迎的功能请求是支持 [DOM 集合的 `.forEach` 方法](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach)。由于 `core-js` 已经针对 DOM 集合迭代器做了 polyfill,为什么不给 `节点列表` 和 [`DOMTokenList`](https://developer.mozilla.org/zh-CN/docs/Web/API/DOMTokenList) 也增加 `.forEach` 呢?
#### 移除过时的功能:
- `Reflect.enumrate` 因为他已经从标准中移除了
- `System.global` 和 `global` 现在他们已经被 `globalThis` 代替
- `Array.prototype.flatten` 现在被 `Array.prototype.flat` 代替
- `asap` 被 `queueMicrotask` 代替
- `Error.isError` 被撤销很长时间了
- `RegExp.escape` 很久之前被拒绝了
- `Map.prototype.toJSON` 和 `Set.prototype.toJSON` 也是很久前被拒绝了
- 不必要并且被错误添加的迭代器方法:`CSSRuleList`,`MediaList`,`StyleSheetList`。
#### 不再有非标准、非提案的功能
许多年前,我开始写一个库,他是我的 JavaScript 程序的核心:这个库包函 polyfills 和一些我需要的工具函数。一段时间后,这个库以 `core-js` 命名发布。我认为现在大多数 `core-js` 用户不需要非标准的 `core-js` 功能,他们大多已经在早期版本移除了,现在是时候将剩余部分从 `core-js` 中移除。从这个版本开始,`core-js` 可以被称为 polyfill 了。
### 包、入口和模块名字
一个 issue 里提了 `core-js` 包的很大( ~2MB ),有很多重复文件。因为这个原因,`core-js` 分成了 3 个包:
- [`core-js`](https://www.npmjs.com/package/core-js) 定义全局的 polyfills。( ~500KB,[压缩并且 gzipped 处理后 40KB](https://bundlephobia.com/result?p=core-js@3.0.0-beta.20) )
- [`core-js-pure`](https://www.npmjs.com/package/core-js-pure),提供了不污染全局变量的 polyfills。它和 `core-js@2` 中的 `core-js/library` 相当。(~440KB)
- [`core-js-bundle`](https://www.npmjs.com/package/core-js-bundle):定义了全局填充的打包版本
`core-js` 的早期版本中,稳定的 ECMAScript 功能和 ECMAScript 提案的 polyfill 模块化需要分别加 `es6.` 和 `es7.` 前缀。这是在 2014 年做的决定,那时将 ES6 之后的所有功能都视为 ES7。在 `core-js@3` 中所有稳定的 ECMAScript 功能都增加 `es.` 前缀,ECMAScript 提案增加 `esnext.` 前缀。
几乎所有的 CommonJS 入口都改变了。`core-js@3` 相比于 `core-js@2` 有更多的入口:这带来的最大限度的灵活性,使你能够仅仅引入你的应用需要的依赖。
这里是一些例子关于如何使用新的入口:
```js
// 使用 `core-js` 全部功能打补丁:
import "core-js";
// 仅仅使用稳定的 `core-js` 功能 - ES 和 web 标准:
import "core-js/stable";
// 仅仅使用稳定的 ES 功能
import "core-js/es";
// 如果你想用 `Set` 的补丁
// 所有 `Set`- ES 提案中,相关的功能:
import "core-js/features/set";
// 稳定的 `Set` ES 功能和来自web标准的功能
// (DOM 集合迭代器)
import "core-js/stable/set";
// 只有 `Set` 所需的稳定的 ES 功能
import "core-js/es/set";
// 与上面一致,但不会污染全局命名空间
import Set from "core-js-pure/features/set";
import Set from "core-js-pure/stable/set";
import Set from "core-js-pure/es/set";
// 仅仅为需要的方法打补丁
import "core-js/feature/set/intersection";
import "core-js/stable/queque-microtask";
import "core-js/es/array/from";
// 为 reflect metadata 提案打补丁
import "core-js/proposals/reflect-metadata";
// 为所有 stage 2+ 的提案打补丁
import "core-js/stage/2";
```
### 其他重要的变化
`core-js` polyfill 能够 [配置侵入等级](https://github.com/zloirock/core-js/blob/master/README.md#configurable-level-of-aggressiveness)。如果你认为有些情境 `core-js` 功能检测侵入性太强,原生实现对你来说已经足够,或者一个错误的实现没有被 `core-js` 检测到,你可以修改 `core-js` 的默认行为。
如果无法安装规范的每个细节实现某个功能,`core-js` 增加了一个 `.sham` 属性,例如,IE11中 `Symbol.sham` 是 `true`。
不再有 LiveScript! 当我开始写 `core-js` 时,我主要使用的是 [LiveScript](http://livescript.net/) ;一段时间后,我用 JavaScript 重写了全部的 polyfills 。在 `core-js@2` 中测试和帮助的工具函数仍然使用 LiveScript :它是非常有趣的像 CoffeeScript 一样的语言,有强大的语法糖使你能够写非常紧凑的代码,但是它几乎已经死了。除此之外,它也是为 `core-js` 贡献的屏障,因为大多数 `core-js` 用户不知道这个语言。`core-js@3` 测试和工具函数使用现代 ES 语法:它将成为为 `core-js` 贡献的好时机🙂。
对于大多数用户,为了优化 `core-js` 导入,我建议使用 [babel](#Babel)。当然,有些情况下 [`core-js-builder`](http://npmjs.com/package/core-js-builder) 仍然有用。现在它支持 `target` 参数,使用带有目标引擎的[`browserslist`](https://github.com/browserslist/browserslist) 查询 - 你能够创建一个 bundle,仅仅包含目标引擎需要的 polyfills。对于这种情况,我做了 [`core-js-compat`](https://www.npmjs.com/package/core-js-compat),更多关于它的信息,你能够从 [这篇文章的 `@babel/preset-env` 部分](#babelpreset-env)了解到。
---
这仅仅是冰山一角,更多的变化在内部。更多关于 `core-js` 变化可以在 [changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md#300) 中找到。
## Babel
正如上文提到的,`babel` 和 `core-js` 是紧密集成的:`babel` 提供了优化 `core-js` 优化导入的可能性。`core-js@3` 开发中很重要的一部分是改进 `core-js` 相关的 `babel` 功能(看[这个PR](https://github.com/babel/babel/pull/7646))。这些变化在 [Babel 7.4.0](https://babeljs.io/blog/2019/03/19/7.4.0) 发布了。
### babel/polyfill
[`@babel/polyfill`](https://babeljs.io/docs/en/next/babel-polyfill.html) 是一个包裹的包,里面仅仅包含 `core-js` 稳定版的引入(在Babel 6 中也包含提案)和 `regenerator-runtime/runtime`,用来转译 generators 和 async 函数。这个包没有提供从 `core-js@2` 到 `core-js@3` 平滑升级路径:因为这个原因,决定弃用 `@babel/polyfill` 代之以分别引入需要的 `core-js` 和 `regenerator-runtime` 。
原来
```js
import "@babel/polyfill";
```
现在使用两行代替:
```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```
别忘记直接安装这两个依赖!
```js
npm i --save core-js regenerator-runtime
```
### @babe/preset-env
[`@babel/preset-env`](https://babeljs.io/docs/en/next/babel-preset-env#usebuiltins) 有两种不同的模式,通过 `useBuiltIns` 选项:`entry` 和 `usage` 优化 `core-js`的导入。
Babel 7.4.0 引入了两种模式的共同更改,以及每种模式的特定的修改。
由于现在 `@babel/preset-env` 支持 `core-js@2` 和 `core-js@3`,因此 `useBuiltIns` 需要新的选项 -- `corejs`,这个选项用来定义使用 `core-js` 的版本(`corejs: 2` 或者 `corejs: 3`)。如果没有设置,`corejs: 2` 是默认值并且会有警告提示。
为了使 babel 支持将来的次要版本中引入的 `core-js` 的新功能,你可以在项目中定义明确的次要版本号。例如,你想使用 `core-js@3.1` 使用这个版本的新特性,你可以设置 `corejs` 选项为 `3.1`:`corejs: '3.1'` 或者 `corejs: {version: '3.1'}`。
`@babel/preset-env` 最重要的一个功能就是提供不同浏览器支持特性的数据来源,用来确定是否需要 `core-js` 填充某些内容。 [`caniuse`](https://caniuse.com/),[`mdn`](https://developer.mozilla.org/en-US/) 和 [`compat-table`](http://kangax.github.io/compat-table/es6/) 是很好的教育资源,但是并不意味着他们能够作为数据源被开发者使用:只有 `compat-table` 包函好的 ES 相关数据集,它被 `@babel/preset-env` 使用,但是仍有些限制:
- 它包含的数据仅仅关于 ECMAScript 特性和提案,和 web 平台特性例如 `setImmediate` 或者 DOM 集合迭代器没有关系。所以直到现在,`@babel/preset-env` 仍然通过 `core-js` 添加全部的 web 平台特性即使他们已经支持了。
- 它他不包含任何浏览器(甚至是严重的)bug 信息:例如,上文提到的在 Safari 12 中 `Array#reverse`,但是 `compat-table` 并没有将它标记为不支持。另一方面,`core-js` 已经修复了这个错误实现,但是因为 `compat-table` 关系,并不能使用它。
- 它仅包函一些基础的、幼稚的测试,没有检查功能在真实环境下是否可以正常工作。例如,老版本 Safari 的破坏的迭代器没有 `.next` 方法,但是 `compat-table` 表明 Safari 支持,因为它用 `typeof` 方法检测迭代器方法返回了 `"function"`。一些像 typed arrays 的功能几乎没有覆盖。
- `compat-table` 不是为了向工具提供数据而设计的。我是 `compat-table` 的维护者之一,但是[其他的维护者反对为维护这个功能](https://github.com/kangax/compat-table/pull/1312)。
因为这个原因,我创建了 [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat):它提供了对于不同浏览器 `core-js` 模块的必要性数据。当使用 `core-js@3` 时,`@babel/preset-env` 将使用新的包取代 `compat-table`。[请帮助我们测试并提供缺少的引擎的数据的映射关系!](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data)😊。
在 Babel 7.3 之前,`@babel/preset-env` 有一些与 polyfills 注入顺序有关的问题。从 7.4.0开始,`@babel/preset-env` 只按推荐顺序增加需要的 polyfills 。
#### `useBuiltIns: entry` with `corejs: 3`
当使用这个选项时,`@babel/preset-env` 代替直接引用 `core-js` 而是引入目标环境特定需要的模块。
在这个变化前,`@babel/preset` 仅替换 `import '@babel/polyfill'` 和 `import 'core-js'`,他们是同义词用来 polyfill 所有稳定的 JavaScript 特性。
现在 `@babel/polyfill` 弃用了,当 `corejs` 设置为 3 时 `@babel/preset-env` 不会转译他。
`core-js@3` 中等价替换 `@babel/polyfill` 是
```js
import "core-js/stable";
import "regenerator-runtime/runtime";
```
当目标浏览器是 `chrome 72` 时,上面的内容将被 `@babel/preset-env` 转换为
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopaables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modlues/web.immediate";
```
当目标浏览器是 `chrome 73`(它完全支持 ES2019 标准库),他将变为很少的引入:
```js
import "core-js/modules/web.immediate";
```
自从 `@babel/polyfill` 被弃用,转而使用分开的 `core-js` 和 `regenerator-runtime`,我们能够优化 `regenerator-runtime` 的导入。因为这个原因,如果目标浏览器原生支持 generators ,那么 `regenerator-runtime` 的导入将从源代码中移除。
现在,设置 `useBuiltIns: entry` 模式的 `@babel/preset-env` 编译所有能够获得的 `core-js` 入口和他们的组合。这意味着你能够自定义,通过使用不同的 `core-js` 入口,它将根据的目标环境优化。
例如,目标环境是 `chrome 72`,
```js
import "core-js/es";
import "core-js/proposals/set-methods";
import "core-js/features/set/map";
```
将被替换为
```js
import "core-js/modules/es.array.unscopables.flat";
import "core-js/modules/es.array.unscopables.flat-map";
import "core-js/modules/es.object.from-entries";
import "core-js/modules/esnext.set.difference";
import "core-js/modules/esnext.set.intersection";
import "core-js/modules/esnext.set.is-disjoint-from";
import "core-js/modules/esnext.set.is-subset-of";
import "core-js/modules/esnext.set.is-superset-of";
import "core-js/modules/esnext.set.map";
import "core-js/modules/esnext.set.symmetric-difference";
import "core-js/modules/esnext.set.union";
```
#### `useBuiltIns: usage` with `corejs: 3`
当使用这个选项时,`@babel/preset-env` 在每个文件的开头引入目标环境不支持、仅在当前文件中使用的 polyfills。
例如,
```js
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
当目标环境是老的浏览器例如 `ie 11`,将转换为
```js
import "core-js/modules/es.array.includes";
import "core-js/modules/es.array.iterator";
import "core-js/modules/es.object.to-string";
import "core-js/modules/es.set";
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
当目标是 `chrome 72` 时不需要导入,因为这个环境需要 polyfills:
```js
const set = new Set([1, 2, 3]);
[1, 2, 3].includes(2);
```
Babel 7.3 之前,`useBuiltIns: usage` 不稳定且不是足够可靠:许多 polyfills 不包函,并且添加了许多不是必须依赖的 polyfills。在 Babel 7.4 中,我尝试使它理解每种可能的使用模式。
在属性访问器、对象解构、`in` 操作符、全局对象属性访问方面,我改进了确定使用哪个 polyfills 的技术。
`@babel/preset-env` 现在注入语法特性所需的 polyfills:使用 `for-of` 时的迭代器,解构、扩展运算符和 `yield` 委托;使用动态 `import` 时的 promises,异步函数和 generators,等。
Babel 7.4 支持注入提案 polyfills。默认,`@babel/preset-env` 不会注入他们,但是你能够通过 `proposals` 标志设置:`corejs: { version: 3, proposals: true }`。
### @babel/runtime
当使用 `core-js@3` 时, [`@babel/transform-runtime`](https://babeljs.io/docs/en/next/babel-plugin-transform-runtime#corejs) 现在通过 `core-js-pure`(`core-js`的一个版本,不会污染全局变量) 注入 polyfills。
通过将 `@babel/transform-runtime` 设置 `corejs: 3` 选项和创建 `@babel/runtime-corejs3` 包,已经将 `core-js@3` 和 `@babel/runtime` 集成在一起。但是这将带来什么好处呢?
`@babel/runtime` 的一个受欢迎的 issue 是:不支持实例方法。从 `@babel/runtime-corejs3` 开始,这个问题已经解决。例如,
```js
array.includes(something);
```
将被编译为
```js
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
_includesInstanceProperty(array).call(array, something);
```
另一个值得关注的变化是支持 ECMAScript 提案。默认情况下的,`@babel/plugin-transform-runtime` 不会为提案注入 polyfills 并使用不包含提案的入口。但是正如你在 `@babel/preset-env` 中做的那样,你可以设置 `proposals` 标志去开启:`corejs: { version: 3, proposals: true }`。
没有 `proposals` 标志,
```js
new Set([1, 2, 3, 2, 1]);
string.matchAll(/something/g);
```
将被编译为:
```js
import _Set from "@babel/runtime-corejs/core-js-stable/set";
new _set([1, 2, 3, 2, 1]);
string.matchAll(/something/g);
```
当设置 `proposals` 后,将变为:
```js
import _Set from "@babel/runtime-corejs3/core-js/set";
import _matchAllInstanceProperty from "@babel/runtime-corejs/core-js/instance/match-all";
new _Set([1, 2, 3, 2, 1]);
_matchAllInstanceProperty(string).call(string, /something/g);
```
有些老的问题已经被修复了。例如,下面这种流行的模式在 `@babel/runtime-corejs2` 不工作,但是在 `@babel/runtime-corejs3` 被支持。
```js
myArrayLikeObject[Symbol.tierator] = Array.prototype[Symbol.iterator];
```
尽管 `@babel/runtime` 早期版本不支持实例方法,但是使用一些自定义的帮助函数能够支持迭代(`[Symbol.iterator]()` 和他的presence)。之前不支持提取 `[Symbol.iterator]` 方法,但是现在支持了。
作为意外收获,`@babel/runtime` 现在支持IE8-,但是有些限制,例如,IE8- 不支持访问器、模块转换应该用松散的方式,`regenerator-runtime`(内部使用 ES5+ 实现)需要通过这个插件转译。
## 畅享未来
做了许多工作,但是 `core-js` 距离完美还很远。这个库和工具将来应该如何改进?语言的变化将会如何影响它?
### 老的引擎支持
现在,`core-js` 试图去支持所有可能的引擎或者我们能够测试到的平台:甚至是IE8-,或者例如,早期版本的 Firefox。虽然它对某些用户有用,但是仅有一小部分使用 `core-js` 的开发者需要它。对于大多数用户,它将引起像包体积过大或者执行缓慢的问题。
主要的问题源自于支持 ES3 引擎(首先是 IE8- ):多数现代 ES 特性是基于 ES5,这些功能在老版本浏览器中均不可用。
最大的缺失特性是属性描述符:当它缺失时,一些功能不能 polyfill,因为他们要么是访问器(像 `RegExp.prototype.flags` 或 `URL` 属性的 setters )要么就是基于访问器(像 typed array polyfill)。为了解决这个不足,我们需要使用不同的解决方法(例如,保持 `Set.prototype.size` 更新)。维护这些解决方法有时很痛苦,移除他们将极大的简化许多 polyfills。
然而,描述符仅仅是问题的一部分。ES5 标准库包含了很多其他特性,他们被认为是现代 JavaScript 的基础:`Object.create`,`Object.getPrototypeOf`,`Array.prototype.forEach`,`Function.prototype.bind`,等等。和多数现代特性不同,`core-js` 内部依赖他们并且[为了实现一个简单的现代函数,`core-js` 需要加载其中一些"建筑模块"的实现](https://github.com/babel/babel/pull/7646#discussion_r179333093)。对于想要创建一个足够小的构建包和仅仅想要引入部分 `core-js` 的用户来说,这是个问题。
在一些国家 IE8 仍很流行,但是为了让 web 向前发展,浏览器到了某些时候就应该消失了。 `IE8` 在 2009 年 3 月 19 日发布,到今天已经 10 年了。IE6 已经 18 岁了:几个月前新版的 `core-js` 已经不再测试 IE6 了。
在 `core-js@4` 我们应该舍弃 IE8- 和其他不知道 ES5 的引擎。
### ECMAScript 模块
`core-js` 使用 `CommonJS` 模块规范。长期以来,他是最受欢迎的 JavaScript 模块规范,但是现在 ECMAScript 提供了他自己的模块规范。许多引擎已经支持它了。一些构建工具(像 rollup )基于它,其他的构建工具提供它作为 `CommonJS` 的替代。这意味提供了一个可选择的使用 ESMAScript 模块规范版本的 `core-js` 行得通。
### 支持 web 标准扩展?
`core-js` 当前专注在 ECMAScript 支持,但是也支持少量的跨平台以及和 ECMAScript 紧密联系的 web 标准功能。为 web 标准添加像 `fetch` 的这种的 polyfill 是受欢迎的功能请求。
`core-js` 没有增加他们的主要原因是,他们将严重的增加构建包大小并且将强制 `core-js` 用户载入他们可能用不到的功能。现在 `core-js` 是最大限度的模块化,用户能够仅选择他们需要的功能,这就像 `@babel/preset-env` 和 `@babel/runtime` 能够帮助用户去减少没用到和不必要的 polyfills。
现在是时候重新审视这个决定了?
### 针对目标环境的 `@babel/runtime`
目前,我们不能像对 `@babel/preset-env` 那样为 `@babel/runtimne` 设置目标加环境。这意味即使目标是现代浏览器, `@babel/runtime` 也将注所有可能的 polyfills:这不必要的增加了最终构建包的大小。
现在 `core-js-compat` 包函全部必要数据,将来,可以在 `@babel/runtime` 中添加对目标环境的编译支持,并且在 `@babel/preset-env` 中添加 `useBuiltIns: runtime` 选项。
### 更好的优化 polyfill 加载
正如上面解释的,Babel 插件给了我们不同的方式去优化 `core-js` 的使用,但是他并不完美:我们可以改进他们。
通过 `useBuiltIns: usage` 选项,`@babe/preset-env` 能够做的比之前更好,但是针对一些不寻常的例子他们仍然会失败:当代码不能被静态分析。针对这个问题,我们需要为库开发者寻找一个方式去确定哪种 polyfill 是他们的库需要的,而不是直接载入他们:某种元数据 -- 将在创建最终构建包时注入 polyfill。
另一个针对 `useBuiltIns: usage` 的问题是重复的 polyfills 导入。`useBuiltIns: usage` 能够在每个文件中注入许多 `core-js` 的导入。但如果我们的项目有数千个文件或者即使十分之一会怎么样呢?这种情况下,与导入 `core-js` 自身相比,导入 `core-js/...` 将有更多代码行:我们需要一种方式去收集所有的导入到一个文件中,这样才能够删除重复的。
几乎每一个需要支持像 `IE11` 浏览器的 `@babel/preset-env` 用户都为每个浏览器使用同一个构建包。这意味着完全支持 ES2019 的现代浏览器将加载不必要的、仅仅是 IE11 需要的 polyfills。当然,我们可以为不同的浏览器创建不同的构建包来使用,例如,`type=module` /
`nomodules` 属性:一个构建包给支持模块化的现代浏览器,另一个给传统浏览器。不幸的是,这不是针对这个问题的完整的解决方案:基于用户代理打包目标浏览器需要的 polyfill 的服务非常有用。我们已经有了一个 - [`polyfill-service`](https://github.com/Financial-Times/polyfill-service)。尽管很有趣也很流行,但是 polyfill 的质量还有很多不足。它不像几年前那么差:项目团队积极工作去改变它,但是如果你想用他们匹配原生实现,我不建议你通过这个项目使用 polyfill。许多年前我尝试通过这个项目将 `core-js` 作为 polyfill 的源,但是这不可能。因为 `polyfill-service` 依赖文件嵌套而不是模块化(就像 `core-js` 发布后的前几个月 😊)。
像这样一个集成了一个很棒的 polyfill 源 -- `core-js` 的服务,通过像 Babel 的 `useBuiltIns: usage` 选项,静态分析源代码真的能够引起我们对于 polyfill 思考方式的革命。
### 来自 TC39 的新功能预案和 `core-js` 可能的问题
TC39 一直在努力工作去改进 ECMAScript:你可以通过查看 `core-js` 中实现所有新提案查看进度。然而,我认为有些新的提案功能在 polyfill 或者转译时可能引起严重的问题。关于这个足够可以写一篇新的文章,但是我将尝试在这总结一下我的想法。
#### 标准库提案,stage 1
现在,TC39 考虑给 ECMAScript 增加[内置模块](https://github.com/tc39/proposal-javascript-standard-library):一个模块化的标准库。它将成为 JavaScript 的最佳补充,而 `core-js` 是它可以被 polyfill 的最佳位置。根据 `@babel/preset-env` 和 `@babel/runtime` 用到的技术,理论上我们可以通过一种简单的方式注入内置模块需要的 polyfill。然而,这个提案的当前版本会导致一些严重问题,这些问题并没有使其简单明了。
内置模块的 polyfill,[根据作者的提案](https://github.com/tc39/proposal-javascript-standard-library/issues/2),仅仅意味着退回到分层 API 或者 导入 maps。这表明如果原生模块缺失,它将能够通过提供的 url 载入一个polyfill。这绝对不是 polyfill 需要的,并且它与 `core-js` 的架构以及其他流行的 polyfill 都不兼容。导入 maps 不应该是 polyfill 内置模块的唯一方式。
我们通过一个特定前缀使用 ES 模块语法就能够得到内置模块。这个语法在语言的早期版本并没有对等的 - 转译模块不可能在现在浏览器中与未转译的交互 - 这会导致包分发的问题。
更进一步讲,他将异步工作。对于功能检测这是个严重的问题 - 当你要检测一个功能并且加载 polyfill 时脚本不会等待 - 功能检测应该同步的做。
[在没有转译和 polyfill 的情况下第一次实现内置模块](https://developers.google.com/web/updates/2019/03/kv-storage)。如果没有修改,在当前的 `core-js` 格式下内置模块将不可能 polyfill。建议的 polyfill 方式将使开发变得严重复杂。
这个标准库的问题能够通过添加一个新的全局变量解决(这将是最后一个吗?):一个内置模块的注册表将允许异步的设置和获取,例如:
```js
StandardLibraryRegistry.get(moduleName);
StandardLibraryRegistry.set(moduleName, value);
```
异步回调,比如分层API应该全局注册表之后使用。
值得一提的是,它将简化将本地模块导入到老的语法的转换。
#### 装饰器提案,新的迭代器语法,stage 2
这个提案中的 [新迭代器](https://github.com/tc39/proposal-decorators),他被很认真的重做了。装饰器定义不再是语法糖,就像内置模块,我们不能在老版本的语言中编写装饰器并将其用作原生装饰器。除此之外,装饰器不仅仅是普通的标识符 - 他们生活在平行的词汇范围内:这意味着已经编译的装饰器不能喝原生装饰器交互。
提案作者建议使用未编译的装饰器发布包,让包的使用者选择去编译他们的依赖。然而,在不同的情况下是不可能的。当他们被添加到 JS 标准库时,这个方法将阻止 `core-js` polyfill 新的内置装饰器。
装饰器应该是在某些东西上应用功能的一种方法,他们应该仅仅是包裹的语法糖。为什么要复杂化呢?
---
如果引入的一个语言功能不是从根本上是新的,在语言的早期版本什么不应该实现是可以选择的,我们能够转译或者 polyfill 它,被转译或者 polyfill 的代码应该能够和支持这个功能的浏览器原生交互。
我希望根据提案作者和委员会的智慧,这些提案能够被采纳,这样才能够合理的转译或者 polyfill 他们。
---
如果你对 `core-js` 项目感兴趣,或者你在你日常工作中使用它,你可以成为 [OpenCollective](https://opencollective.com/core-js#sponsor) 或者 [Patreon](https://www.patreon.com/zloirock) 捐赠者。`core-js` 的背后不是一个公司:他的将来要靠你。
---
[这里](https://github.com/zloirock/core-js/issues/496) 可以评论这篇文章。
[Denis Pushkarev](https://github.com/zloirock),2019年3月19日,感谢 [Nicolò Ribaudo](https://github.com/nicolo-ribaudo) 编辑。 core-js-3.8.2/lerna.json 0000664 0000000 0000000 00000000105 13774351224 0015066 0 ustar 00root root 0000000 0000000 {
"packages": [
"packages/*"
],
"version": "independent"
}
core-js-3.8.2/package.json 0000664 0000000 0000000 00000011175 13774351224 0015371 0 ustar 00root root 0000000 0000000 {
"version": "3.8.2",
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-logical-assignment-operators": "^7.12.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
"@babel/plugin-proposal-numeric-separator": "^7.12.7",
"@babel/plugin-proposal-optional-catch-binding": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"@babel/plugin-transform-arrow-functions": "^7.12.1",
"@babel/plugin-transform-block-scoped-functions": "^7.12.1",
"@babel/plugin-transform-block-scoping": "^7.12.12",
"@babel/plugin-transform-classes": "^7.12.1",
"@babel/plugin-transform-computed-properties": "^7.12.1",
"@babel/plugin-transform-destructuring": "^7.12.1",
"@babel/plugin-transform-exponentiation-operator": "^7.12.1",
"@babel/plugin-transform-literals": "^7.12.1",
"@babel/plugin-transform-member-expression-literals": "^7.12.1",
"@babel/plugin-transform-parameters": "^7.12.1",
"@babel/plugin-transform-property-literals": "^7.12.1",
"@babel/plugin-transform-shorthand-properties": "^7.12.1",
"@babel/plugin-transform-spread": "^7.12.1",
"@babel/plugin-transform-template-literals": "^7.12.1",
"babel-loader": "^8.2.2",
"babel-plugin-transform-es2015-modules-simple-commonjs": "~0.3.0",
"babel-plugin-transform-for-of-as-array": "^1.1.1",
"david": "^12.0.0",
"es-observable": "git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319",
"eslint": "^7.17.0",
"eslint-import-resolver-webpack": "~0.13.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-optimize-regex": "^1.2.0",
"eslint-plugin-qunit": "^5.2.0",
"eslint-plugin-sonarjs": "~0.5.0",
"eslint-plugin-unicorn": "^25.0.1",
"grunt": "^1.3.0",
"grunt-cli": "^1.3.2",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-uglify": "^5.0.0",
"grunt-karma": "^4.0.0",
"grunt-webpack": "^4.0.2",
"karma": "^5.2.3",
"karma-chrome-launcher": "^3.1.0",
"karma-phantomjs-launcher": "~1.0.4",
"karma-qunit": "^4.1.1",
"lerna": "^3.22.1",
"moon-unit": "0.2.2",
"phantomjs-prebuilt": "~2.1.16",
"promises-aplus-tests": "^2.1.2",
"puppeteer": "^5.5.0",
"semver": "^7.3.4",
"qunit": "^2.13.0",
"webpack": ">=4.44.2 <5"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"scripts": {
"bootstrap": "lerna bootstrap --no-ci",
"build": "grunt clean copy && npm run bootstrap && npm run build-compat && grunt bundle uglify",
"build-compat": "npm run build-compat-data && npm run build-compat-entries && npm run build-compat-modules-by-versions",
"build-compat-data": "node packages/core-js-compat/src/build-data",
"build-compat-entries": "node packages/core-js-compat/src/build-entries",
"build-compat-modules-by-versions": "node packages/core-js-compat/src/build-modules-by-versions",
"lint": "grunt clean copy && npm run bootstrap && npm run build-compat && eslint ./",
"outdated": "node scripts/check-dependencies",
"update-version": "node scripts/update-version",
"unit-tests": "grunt clean copy && npm run bootstrap && npm run build-compat && grunt bundle webpack:helpers webpack:tests karma:tests",
"unit-tests-pure": "grunt clean copy && npm run build-compat && grunt webpack:helpers webpack:pure karma:pure",
"bundle-promises-tests": "grunt webpack:promises-aplus-tests",
"promises-tests": "promises-aplus-tests tests/promises-aplus/adapter --timeout 1000",
"observables-tests": "babel node_modules/es-observable/test/ -d tests/bundles/observables-tests/ && node tests/observables/adapter && node tests/observables/adapter-pure",
"commonjs-tests": "node tests/commonjs",
"commonjs-entries-content": "node tests/commonjs-entries-content",
"targets-parser-tests": "node tests/targets-parser",
"test": "grunt clean copy && npm run bootstrap && npm run build-compat && eslint ./ && grunt webpack:helpers webpack:tests bundle uglify karma:tests webpack:helpers webpack:pure karma:pure && npm run promises-tests && npm run observables-tests && npm run commonjs-tests && npm run commonjs-entries-content && npm run targets-parser-tests",
"ci": "grunt clean copy && npm run bootstrap && npm run build-compat && grunt webpack:helpers webpack:tests bundle uglify karma:tests webpack:helpers webpack:pure karma:pure && npm run promises-tests && npm run observables-tests && npm run commonjs-tests && npm run commonjs-entries-content && npm run targets-parser-tests"
}
}
core-js-3.8.2/packages/ 0000775 0000000 0000000 00000000000 13774351224 0014654 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-builder/ 0000775 0000000 0000000 00000000000 13774351224 0017642 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-builder/.npmignore 0000664 0000000 0000000 00000000027 13774351224 0021640 0 ustar 00root root 0000000 0000000 node_modules/
*.log
.*
core-js-3.8.2/packages/core-js-builder/.npmrc 0000664 0000000 0000000 00000000023 13774351224 0020755 0 ustar 00root root 0000000 0000000 package-lock=false
core-js-3.8.2/packages/core-js-builder/README.md 0000664 0000000 0000000 00000001670 13774351224 0021125 0 ustar 00root root 0000000 0000000 For some cases could be useful to exclude some `core-js` features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of [`core-js`](https://github.com/zloirock/core-js), use `browserslist` queries from [`core-js-compat`](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) package.
```js
require('core-js-builder')({
modules: ['es', 'esnext.reflect', 'web'], // modules / namespaces, by default - all `core-js` modules
exclude: ['es.math', 'es.number.constructor'], // a blacklist of modules / namespaces, by default - empty list
targets: '> 0.5%', // optional browserslist query
filename: './my-core-js-bundle.js', // optional target filename, if it's missed a file will not be created
}).then(code => { // code of result polyfill
// ...
}).catch(error => {
// ...
});
```
core-js-3.8.2/packages/core-js-builder/config.js 0000664 0000000 0000000 00000000660 13774351224 0021447 0 ustar 00root root 0000000 0000000 'use strict';
const { version } = require('./package');
module.exports = {
/* eslint-disable prefer-template */
banner: '/**\n' +
' * core-js ' + version + '\n' +
' * https://github.com/zloirock/core-js\n' +
' * License: http://rock.mit-license.org\n' +
' * © ' + new Date().getFullYear() + ' Denis Pushkarev (zloirock.ru)\n' +
' */',
/* eslint-enable prefer-template */
};
core-js-3.8.2/packages/core-js-builder/index.js 0000664 0000000 0000000 00000004011 13774351224 0021303 0 ustar 00root root 0000000 0000000 'use strict';
const { promisify } = require('util');
const fs = require('fs');
// TODO: replace by `fs.promises` after dropping NodeJS < 10 support
const readFile = promisify(fs.readFile);
const unlink = promisify(fs.unlink);
const writeFile = promisify(fs.writeFile);
const { dirname, join } = require('path');
const tmpdir = require('os').tmpdir();
// TODO: replace by `mkdir` with `recursive: true` after dropping NodeJS < 10.12 support
const mkdirp = promisify(require('mkdirp'));
const webpack = promisify(require('webpack'));
const compat = require('core-js-compat/compat');
const modulesList = require('core-js-compat/modules');
const { banner } = require('./config');
module.exports = async function ({
blacklist, // TODO: Remove from `core-js@4`
exclude = [],
modules = modulesList.slice(),
targets,
filename,
} = {}) {
const set = new Set();
function filter(method, list) {
for (const ns of list) {
for (const name of modulesList) {
if (name === ns || name.startsWith(`${ ns }.`)) {
set[method](name);
}
}
}
}
filter('add', modules);
filter('delete', blacklist || exclude);
modules = modulesList.filter(it => set.has(it));
if (targets) modules = compat({ targets, filter: modules }).list;
let script = banner;
if (modules.length) {
const tempFileName = `core-js-${ Math.random().toString(36).slice(2) }.js`;
const tempFile = join(tmpdir, tempFileName);
await webpack({
mode: 'none',
node: {
global: false,
process: false,
setImmediate: false,
},
entry: modules.map(it => require.resolve(`core-js/modules/${ it }`)),
output: {
path: tmpdir,
filename: tempFileName,
},
});
const file = await readFile(tempFile);
await unlink(tempFile);
script += `\n!function (undefined) { 'use strict'; ${ file } }();`;
}
if (typeof filename != 'undefined') {
await mkdirp(dirname(filename));
await writeFile(filename, script);
}
return script;
};
core-js-3.8.2/packages/core-js-builder/package.json 0000664 0000000 0000000 00000000770 13774351224 0022134 0 ustar 00root root 0000000 0000000 {
"name": "core-js-builder",
"description": "core-js builder",
"version": "3.8.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"main": "index.js",
"dependencies": {
"core-js": "3.8.2",
"core-js-compat": "3.8.2",
"mkdirp": ">=0.5.5 <1",
"webpack": ">=4.44.2 <5"
},
"engines": {
"node": ">=8.9.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
},
"license": "MIT"
}
core-js-3.8.2/packages/core-js-bundle/ 0000775 0000000 0000000 00000000000 13774351224 0017465 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-bundle/.npmignore 0000664 0000000 0000000 00000000011 13774351224 0021454 0 ustar 00root root 0000000 0000000 *.log
.*
core-js-3.8.2/packages/core-js-bundle/README.md 0000664 0000000 0000000 00000012625 13774351224 0020752 0 ustar 00root root 0000000 0000000 # core-js-bundle
[](#sponsors) [](#backers) [](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.npmjs.com/package/core-js-pure) [](http://npm-stat.com/charts.html?package=core-js-pure&author=&from=2019-03-18) [](https://github.com/zloirock/core-js/actions)
[](https://github.com/zloirock/core-js/actions)
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
## As advertising: the author is looking for a good job -)
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## Raising funds
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer [**on Open Collective**](https://opencollective.com/core-js) or [**on Patreon**](https://www.patreon.com/zloirock) if you are interested in `core-js`.
---
---
---
[*Example*](http://goo.gl/a2xexl):
```js
import 'core-js'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*You can load only required features*:
```js
import 'core-js/features/array/from'; // <- at the top of your entry point
import 'core-js/features/array/flat'; // <- at the top of your entry point
import 'core-js/features/set'; // <- at the top of your entry point
import 'core-js/features/promise'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*Or use it without global namespace pollution*:
```js
import from from 'core-js-pure/features/array/from';
import flat from 'core-js-pure/features/array/flat';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
flat([1, [2, 3], [4, [5]]], 2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
**It's a bundled global version, for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
core-js-3.8.2/packages/core-js-bundle/package.json 0000664 0000000 0000000 00000002034 13774351224 0021752 0 ustar 00root root 0000000 0000000 {
"name": "core-js-bundle",
"description": "Standard library",
"version": "3.8.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"main": "index.js",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
},
"license": "MIT",
"keywords": [
"ES3",
"ES5",
"ES6",
"ES7",
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020",
"ECMAScript 3",
"ECMAScript 5",
"ECMAScript 6",
"ECMAScript 7",
"ECMAScript 2015",
"ECMAScript 2016",
"ECMAScript 2017",
"ECMAScript 2018",
"ECMAScript 2019",
"ECMAScript 2020",
"Harmony",
"Strawman",
"Map",
"Set",
"WeakMap",
"WeakSet",
"Promise",
"Observable",
"Symbol",
"TypedArray",
"URL",
"URLSearchParams",
"queueMicrotask",
"setImmediate",
"polyfill",
"ponyfill",
"shim"
],
"scripts": {
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
}
}
core-js-3.8.2/packages/core-js-compat/ 0000775 0000000 0000000 00000000000 13774351224 0017477 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-compat/.npmignore 0000664 0000000 0000000 00000000035 13774351224 0021474 0 ustar 00root root 0000000 0000000 node_modules/
/src/
*.log
.*
core-js-3.8.2/packages/core-js-compat/.npmrc 0000664 0000000 0000000 00000000023 13774351224 0020612 0 ustar 00root root 0000000 0000000 package-lock=false
core-js-3.8.2/packages/core-js-compat/README.md 0000664 0000000 0000000 00000006576 13774351224 0020774 0 ustar 00root root 0000000 0000000 [`core-js-compat` package](https://github.com/zloirock/core-js/tree/master/packages/core-js-compat) contains data about the necessity of [`core-js`](https://github.com/zloirock/core-js) modules and API for getting a list of required core-js modules by browserslist query.
```js
const {
list, // array of required modules
targets, // object with targets for each module
} = require('core-js-compat')({
targets: '> 2.5%', // browserslist query or object of minimum environment versions to support
filter: /^(es|web)\./, // optional filter - string-prefix, regexp or list of modules
version: '3.4', // used `core-js` version, by default - the latest
});
console.log(targets);
/* =>
{
'es.symbol.match-all': { ios: '12.2-12.4' },
'es.array.unscopables.flat': { ios: '12.2-12.4' },
'es.array.unscopables.flat-map': { ios: '12.2-12.4' },
'es.math.hypot': { chrome: '77' },
'es.promise.all-settled': { firefox: '69', ios: '12.2-12.4' },
'es.promise.finally': { ios: '12.2-12.4' },
'es.string.match-all': { chrome: '77', firefox: '69', ios: '12.2-12.4' },
'es.string.replace': { firefox: '69', ios: '12.2-12.4' },
'es.typed-array.float32-array': { ios: '12.2-12.4' },
'es.typed-array.float64-array': { ios: '12.2-12.4' },
'es.typed-array.int8-array': { ios: '12.2-12.4' },
'es.typed-array.int16-array': { ios: '12.2-12.4' },
'es.typed-array.int32-array': { ios: '12.2-12.4' },
'es.typed-array.uint8-array': { ios: '12.2-12.4' },
'es.typed-array.uint8-clamped-array': { ios: '12.2-12.4' },
'es.typed-array.uint16-array': { ios: '12.2-12.4' },
'es.typed-array.uint32-array': { ios: '12.2-12.4' },
'es.typed-array.from': { ios: '12.2-12.4' },
'es.typed-array.of': { ios: '12.2-12.4' },
'web.dom-collections.iterator': { ios: '12.2-12.4' },
'web.immediate': { chrome: '77', firefox: '69', ios: '12.2-12.4' },
'web.url': { ios: '12.2-12.4' },
'web.url.to-json': { ios: '12.2-12.4' },
'web.url-search-params': { ios: '12.2-12.4' }
}
*/
```
Additional API:
```js
// equals of of the method from the example above
require('core-js-compat/compat')({ targets, filter, version }); // => { list: Array, targets: { [ModuleName]: { [EngineName]: EngineVersion } } }
// or
require('core-js-compat').compat({ targets, filter, version }); // => { list: Array, targets: { [ModuleName]: { [EngineName]: EngineVersion } } }
// full compat data:
require('core-js-compat/data'); // => { [ModuleName]: { [EngineName]: EngineVersion } }
// or
require('core-js-compat').data; // => { [ModuleName]: { [EngineName]: EngineVersion } }
// map of modules by `core-js` entry points:
require('core-js-compat/entries'); // => { [EntryPoint]: Array }
// or
require('core-js-compat').entries; // => { [EntryPoint]: Array }
// full list of modules:
require('core-js-compat/modules'); // => Array
// or
require('core-js-compat').modules; // => Array
// the subset of modules which available in the passed `core-js` version:
require('core-js-compat/get-modules-list-for-target-version')('3.3'); // => Array
// or
require('core-js-compat').getModulesListForTargetVersion('3.3'); // => Array
```
If you want to add new / update data about modules required for target engines, [follow this instruction](https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md#updating-core-js-compat-data).
core-js-3.8.2/packages/core-js-compat/compat.js 0000664 0000000 0000000 00000002671 13774351224 0021326 0 ustar 00root root 0000000 0000000 'use strict';
const { compare, has, intersection } = require('./helpers');
const data = require('./data');
const getModulesListForTargetVersion = require('./get-modules-list-for-target-version');
const modules = require('./modules');
const targetsParser = require('./targets-parser');
function checkModule(name, targets) {
if (!has(data, name)) throw new TypeError(`Incorrect module: ${ name }`);
const requirements = data[name];
const result = {
required: false,
targets: {},
};
for (const [engine, version] of targets) {
if (!has(requirements, engine) || compare(version, '<', requirements[engine])) {
result.required = true;
result.targets[engine] = version;
}
}
return result;
}
module.exports = function ({ targets, filter, version }) {
const parsedTargets = targetsParser(targets);
const result = {
list: [],
targets: {},
};
let $modules = Array.isArray(filter) ? filter : modules;
if (filter instanceof RegExp) {
$modules = $modules.filter(it => filter.test(it));
} else if (typeof filter == 'string') {
$modules = $modules.filter(it => it.startsWith(filter));
}
if (version) {
$modules = intersection($modules, getModulesListForTargetVersion(version));
}
for (const key of $modules) {
const check = checkModule(key, parsedTargets);
if (check.required) {
result.list.push(key);
result.targets[key] = check.targets;
}
}
return result;
};
core-js-3.8.2/packages/core-js-compat/get-modules-list-for-target-version.js 0000664 0000000 0000000 00000001110 13774351224 0026757 0 ustar 00root root 0000000 0000000 'use strict';
const { compare, intersection, semver } = require('./helpers');
const modulesByVersions = require('./modules-by-versions');
const modules = require('./modules');
module.exports = function (raw) {
const corejs = semver(raw);
if (corejs.major !== 3) {
throw RangeError('This version of `core-js-compat` works only with `core-js@3`.');
}
const result = [];
for (const version of Object.keys(modulesByVersions)) {
if (compare(version, '<=', corejs)) {
result.push(...modulesByVersions[version]);
}
}
return intersection(result, modules);
};
core-js-3.8.2/packages/core-js-compat/helpers.js 0000664 0000000 0000000 00000001174 13774351224 0021502 0 ustar 00root root 0000000 0000000 'use strict';
const cmp = require('semver/functions/cmp');
const semver = require('semver/functions/coerce');
const has = Function.call.bind({}.hasOwnProperty);
function compare(a, operator, b) {
return cmp(semver(a), operator, semver(b));
}
function intersection(list, order) {
const set = list instanceof Set ? list : new Set(list);
return order.filter(name => set.has(name));
}
function sortObjectByKey(object, fn) {
return Object.keys(object).sort(fn).reduce((memo, key) => {
memo[key] = object[key];
return memo;
}, {});
}
module.exports = {
compare,
has,
intersection,
semver,
sortObjectByKey,
};
core-js-3.8.2/packages/core-js-compat/index.js 0000664 0000000 0000000 00000000557 13774351224 0021153 0 ustar 00root root 0000000 0000000 'use strict';
const compat = require('./compat');
const data = require('./data');
const entries = require('./entries');
const getModulesListForTargetVersion = require('./get-modules-list-for-target-version');
const modules = require('./modules');
module.exports = Object.assign(compat, {
compat,
data,
entries,
getModulesListForTargetVersion,
modules,
});
core-js-3.8.2/packages/core-js-compat/package.json 0000664 0000000 0000000 00000001005 13774351224 0021761 0 ustar 00root root 0000000 0000000 {
"name": "core-js-compat",
"description": "core-js compat",
"version": "3.8.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"main": "index.js",
"dependencies": {
"browserslist": "^4.16.0",
"semver": "7.0.0"
},
"devDependencies": {
"detective": "^5.2.0",
"electron-to-chromium": "^1.3.633",
"glob": "^7.1.6"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
},
"license": "MIT"
}
core-js-3.8.2/packages/core-js-compat/src/ 0000775 0000000 0000000 00000000000 13774351224 0020266 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-compat/src/build-data.js 0000664 0000000 0000000 00000004335 13774351224 0022637 0 ustar 00root root 0000000 0000000 'use strict';
const { writeFileSync } = require('fs');
const { resolve } = require('path');
const { compare, sortObjectByKey, semver } = require('../helpers');
const data = require('./data');
const external = require('./external');
const {
ChromeToNode,
ChromeToSamsung,
ChromeToOperaMobile,
ChromeToAndroid,
ChromeToElectron,
SafariToIOS,
SafariToPhantomJS,
} = require('./mapping');
for (const scope of [data, external]) {
for (const [key, module] of Object.entries(scope)) {
const { chrome, ie, safari } = module;
const map = function (mapping, version, targetKey) {
if (module[targetKey]) return;
const source = semver(version);
for (const [from, to] of mapping) {
if (compare(source, '<=', from)) {
module[targetKey] = String(to);
return;
}
}
};
if (!module.edge && ie && key !== 'web.immediate') {
module.edge = '12';
}
if (chrome) {
if (!module.edge) {
module.edge = String(Math.max(chrome, 74));
}
if (!module.opera) {
module.opera = String(chrome <= 23 ? 15 : chrome <= 29 ? 16 : chrome <= 82 ? chrome - 13 : chrome - 14);
}
if (!module.opera_mobile && module.opera && module.opera <= 42) {
module.opera_mobile = module.opera;
} else {
map(ChromeToOperaMobile, chrome, 'opera_mobile');
}
if (key.startsWith('es')) {
map(ChromeToNode, chrome, 'node');
}
map(ChromeToSamsung, chrome, 'samsung');
map(ChromeToAndroid, chrome, 'android');
if (!module.android) {
module.android = String(Math.max(chrome, 37));
}
if (/^(es|esnext|web)\./.test(key)) {
map(ChromeToElectron, chrome, 'electron');
}
}
if (safari) {
map(SafariToIOS, safari, 'ios');
map(SafariToPhantomJS, safari, 'phantom');
}
scope[key] = sortObjectByKey(module);
}
}
function writeJSON(filename, content) {
writeFileSync(resolve(__dirname, filename), JSON.stringify(content, null, ' '));
}
writeJSON('../data.json', data);
writeJSON('../modules.json', Object.keys(data));
writeJSON('../external.json', external);
// eslint-disable-next-line no-console
console.log('\u001B[32mcompat data rebuilt\u001B[0m');
core-js-3.8.2/packages/core-js-compat/src/build-entries.js 0000664 0000000 0000000 00000003167 13774351224 0023401 0 ustar 00root root 0000000 0000000 'use strict';
const { readFileSync, writeFileSync } = require('fs');
const { dirname, resolve } = require('path');
const detective = require('detective');
const { sync: glob } = require('glob');
const { intersection, sortObjectByKey } = require('../helpers');
const modules = require('../modules');
function getModulesForEntryPoint(entry) {
const match = entry.match(/[/\\]modules[/\\]([^/\\]+)$/);
if (match) return [match[1]];
const name = require.resolve(entry);
const result = [];
const dir = dirname(name);
const file = readFileSync(name);
const dependencies = detective(file);
for (const dependency of dependencies) {
const relative = resolve(dir, dependency);
result.push(...getModulesForEntryPoint(relative));
}
return intersection(result, modules);
}
const entries = [
'packages/core-js/index.js',
...glob('packages/core-js/es/**/*.js'),
...glob('packages/core-js/features/**/*.js'),
...glob('packages/core-js/modules/*.js'),
...glob('packages/core-js/proposals/**/*.js'),
...glob('packages/core-js/stable/**/*.js'),
...glob('packages/core-js/stage/**/*.js'),
...glob('packages/core-js/web/**/*.js'),
].reduce((memo, file) => {
// TODO: store entries without the package name in `core-js@4`
const entry = file.replace(/^packages\/(core-js.+)\.js$/, '$1').replace(/^(.+)\/index$/, '$1');
memo[entry] = getModulesForEntryPoint(resolve(__dirname, `../../${ entry }`));
return memo;
}, {});
writeFileSync(resolve(__dirname, '../entries.json'), JSON.stringify(sortObjectByKey(entries), null, ' '));
// eslint-disable-next-line no-console
console.log('\u001B[32mentries data rebuilt\u001B[0m');
core-js-3.8.2/packages/core-js-compat/src/build-modules-by-versions.js 0000664 0000000 0000000 00000001131 13774351224 0025643 0 ustar 00root root 0000000 0000000 'use strict';
const { writeFileSync } = require('fs');
const { resolve } = require('path');
const modules = require('../modules');
const modulesByVersions = require('./modules-by-versions');
const defaults = new Set(modules);
for (const version of Object.values(modulesByVersions)) {
for (const module of version) defaults.delete(module);
}
writeFileSync(resolve(__dirname, '../modules-by-versions.json'), JSON.stringify({
'3.0': [...defaults],
...modulesByVersions,
}, null, ' '));
// eslint-disable-next-line no-console
console.log('\u001B[32mmodules-by-versions data rebuilt\u001B[0m');
core-js-3.8.2/packages/core-js-compat/src/data.js 0000664 0000000 0000000 00000070023 13774351224 0021537 0 ustar 00root root 0000000 0000000 'use strict';
const data = {
'es.symbol': {
chrome: '49',
edge: '15',
firefox: '51',
safari: '10.0',
},
'es.symbol.description': {
chrome: '70',
firefox: '63',
safari: '12.1',
},
'es.symbol.async-iterator': {
chrome: '63',
firefox: '55',
safari: '12.0',
},
'es.symbol.has-instance': {
chrome: '50',
edge: '15',
firefox: '49',
safari: '10.0',
},
'es.symbol.is-concat-spreadable': {
chrome: '48',
edge: '15',
firefox: '48',
safari: '10.0',
},
'es.symbol.iterator': {
chrome: '39',
edge: '13',
firefox: '36',
safari: '9.0',
},
'es.symbol.match': {
chrome: '50',
firefox: '40',
safari: '10.0',
},
'es.symbol.match-all': {
chrome: '73',
firefox: '67',
safari: '13',
},
'es.symbol.replace': {
chrome: '50',
firefox: '49',
safari: '10.0',
},
'es.symbol.search': {
chrome: '50',
firefox: '49',
safari: '10.0',
},
'es.symbol.species': {
chrome: '51',
edge: '13',
firefox: '41',
safari: '10.0',
},
'es.symbol.split': {
chrome: '50',
firefox: '49',
safari: '10.0',
},
'es.symbol.to-primitive': {
chrome: '47',
edge: '15',
firefox: '44',
safari: '10.0',
},
'es.symbol.to-string-tag': {
chrome: '49',
edge: '15',
firefox: '51',
safari: '10.0',
},
'es.symbol.unscopables': {
chrome: '39',
edge: '13',
firefox: '48',
safari: '9.0',
},
'es.aggregate-error': {
chrome: '85',
firefox: '79',
safari: '14.0',
},
'es.array.concat': {
chrome: '51',
edge: '15',
firefox: '48',
safari: '10.0',
},
'es.array.copy-within': {
chrome: '45',
edge: '12',
firefox: '48',
safari: '9.0',
},
'es.array.every': {
chrome: '48',
edge: '15',
firefox: '50',
safari: '9.0',
},
'es.array.fill': {
chrome: '45',
edge: '12',
firefox: '48',
safari: '9.0',
},
'es.array.filter': {
chrome: '51',
edge: '15',
firefox: '48',
safari: '10.0',
},
'es.array.find': {
chrome: '45',
edge: '13',
firefox: '48',
safari: '9.0',
},
'es.array.find-index': {
chrome: '45',
edge: '13',
firefox: '48',
safari: '9.0',
},
'es.array.flat': {
chrome: '69',
firefox: '62',
safari: '12.0',
},
'es.array.flat-map': {
chrome: '69',
firefox: '62',
safari: '12.0',
},
'es.array.for-each': {
chrome: '48',
edge: '15',
firefox: '50',
safari: '9.0',
},
'es.array.from': {
chrome: '51',
edge: '15',
firefox: '53',
safari: '9.0',
},
'es.array.includes': {
chrome: '53',
edge: '15',
firefox: '48',
safari: '10.0',
},
'es.array.index-of': {
chrome: '51',
edge: '15',
firefox: '50',
safari: '11.0',
},
'es.array.is-array': {
chrome: '5',
firefox: '4',
ie: '9',
opera: '10.50',
safari: '4.0',
},
'es.array.iterator': {
chrome: '66',
edge: '15',
firefox: '60',
safari: '10.0',
},
'es.array.join': {
chrome: '26',
edge: '13',
firefox: '4',
safari: '7.1',
},
'es.array.last-index-of': {
chrome: '51',
edge: '13',
firefox: '50',
safari: '11.0',
},
'es.array.map': {
chrome: '51',
edge: '13',
firefox: '50',
safari: '10.0',
},
'es.array.of': {
chrome: '45',
edge: '13',
firefox: '25',
safari: '9.0',
},
'es.array.reduce': {
chrome: '83', // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
edge: '15',
firefox: '50',
node: '6.0', // ^^^
safari: '9.0',
},
'es.array.reduce-right': {
chrome: '83', // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
edge: '15',
firefox: '50',
node: '6.0', // ^^^
safari: '9.0',
},
'es.array.reverse': {
chrome: '1',
firefox: '1',
ie: '5.5',
opera: '10.50',
// safari 12.0 has a serious bug
safari: '12.0.2',
},
'es.array.slice': {
chrome: '51',
edge: '15',
firefox: '48',
safari: '11.0',
},
'es.array.some': {
chrome: '48',
edge: '15',
firefox: '50',
safari: '9.0',
},
'es.array.sort': {
chrome: '63',
firefox: '4',
ie: '9',
safari: '12.0',
},
'es.array.species': {
chrome: '51',
edge: '13',
firefox: '48',
safari: '10.0',
},
'es.array.splice': {
chrome: '51',
edge: '15',
firefox: '49',
safari: '11.0',
},
'es.array.unscopables.flat': {
chrome: '73',
firefox: '67',
safari: '13',
},
'es.array.unscopables.flat-map': {
chrome: '73',
firefox: '67',
safari: '13',
},
'es.array-buffer.constructor': {
chrome: '26',
edge: '14',
firefox: '44',
safari: '12.0',
},
'es.array-buffer.is-view': {
chrome: '32',
firefox: '29',
ie: '11',
safari: '7.1',
},
'es.array-buffer.slice': {
chrome: '31',
firefox: '46',
ie: '11',
safari: '12.1',
},
'es.data-view': {
chrome: '26',
firefox: '15',
ie: '10',
safari: '7.1',
},
'es.date.now': {
chrome: '5',
firefox: '2',
ie: '9',
opera: '10.50',
safari: '4.0',
},
'es.date.to-iso-string': {
chrome: '26',
firefox: '7',
ie: '9',
safari: '7.1',
},
'es.date.to-json': {
chrome: '26',
firefox: '4',
ie: '9',
safari: '10.0',
},
'es.date.to-primitive': {
chrome: '47',
edge: '15',
firefox: '44',
safari: '10.0',
},
'es.date.to-string': {
chrome: '5',
firefox: '2',
ie: '9',
opera: '10.50',
safari: '3.1',
},
'es.function.bind': {
chrome: '7',
firefox: '4',
ie: '9',
opera: '12',
safari: '5.1',
},
'es.function.has-instance': {
chrome: '51',
edge: '15',
firefox: '50',
safari: '10.0',
},
'es.function.name': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '4.0',
},
'es.global-this': {
chrome: '71',
firefox: '65',
safari: '12.1',
},
'es.json.stringify': {
chrome: '72',
firefox: '64',
safari: '12.1',
},
'es.json.to-string-tag': {
chrome: '50',
edge: '15',
firefox: '51',
safari: '10.0',
},
'es.map': {
chrome: '51',
edge: '15',
firefox: '53',
safari: '10.0',
},
'es.math.acosh': {
chrome: '54',
edge: '13',
firefox: '25',
safari: '7.1',
},
'es.math.asinh': {
chrome: '38',
edge: '13',
firefox: '25',
safari: '7.1',
},
'es.math.atanh': {
chrome: '38',
edge: '13',
firefox: '25',
safari: '7.1',
},
'es.math.cbrt': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.math.clz32': {
chrome: '38',
edge: '12',
firefox: '31',
safari: '9.0',
},
'es.math.cosh': {
chrome: '39',
edge: '13',
firefox: '25',
safari: '7.1',
},
'es.math.expm1': {
chrome: '39',
edge: '13',
firefox: '46',
safari: '7.1',
},
'es.math.fround': {
chrome: '38',
edge: '12',
firefox: '26',
safari: '7.1',
},
'es.math.hypot': {
// https://bugs.chromium.org/p/v8/issues/detail?id=9546
chrome: '78', // '38',
edge: '12',
firefox: '27',
safari: '7.1',
},
'es.math.imul': {
chrome: '28',
edge: '13',
firefox: '20',
safari: '9.0',
},
'es.math.log10': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.math.log1p': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.math.log2': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.math.sign': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '9.0',
},
'es.math.sinh': {
chrome: '39',
edge: '13',
firefox: '25',
safari: '7.1',
},
'es.math.tanh': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.math.to-string-tag': {
chrome: '50',
edge: '15',
firefox: '51',
safari: '10.0',
},
'es.math.trunc': {
chrome: '38',
edge: '12',
firefox: '25',
safari: '7.1',
},
'es.number.constructor': {
chrome: '41',
edge: '13',
firefox: '46',
safari: '9.0',
},
'es.number.epsilon': {
chrome: '34',
edge: '12',
firefox: '25',
safari: '9.0',
},
'es.number.is-finite': {
android: '4.1',
chrome: '19',
edge: '12',
firefox: '16',
safari: '9.0',
},
'es.number.is-integer': {
chrome: '34',
edge: '12',
firefox: '16',
safari: '9.0',
},
'es.number.is-nan': {
android: '4.1',
chrome: '19',
edge: '12',
firefox: '15',
safari: '9.0',
},
'es.number.is-safe-integer': {
chrome: '34',
edge: '12',
firefox: '32',
safari: '9.0',
},
'es.number.max-safe-integer': {
chrome: '34',
edge: '12',
firefox: '31',
safari: '9.0',
},
'es.number.min-safe-integer': {
chrome: '34',
edge: '12',
firefox: '31',
safari: '9.0',
},
'es.number.parse-float': {
chrome: '35',
edge: '13',
firefox: '39',
safari: '11.0',
},
'es.number.parse-int': {
chrome: '35',
edge: '13',
firefox: '39',
safari: '9.0',
},
'es.number.to-fixed': {
chrome: '26',
firefox: '4',
safari: '7.1',
},
'es.number.to-precision': {
chrome: '26',
firefox: '4',
ie: '8',
safari: '7.1',
},
'es.object.assign': {
chrome: '49',
// order of operations bug
// edge: '13',
firefox: '36',
safari: '9.0',
},
'es.object.create': {
chrome: '5',
firefox: '4',
ie: '9',
opera: '12',
safari: '4.0',
},
'es.object.define-getter': {
chrome: '62',
edge: '16',
firefox: '48',
safari: '7.1',
},
'es.object.define-properties': {
chrome: '5',
firefox: '4',
ie: '9',
opera: '12',
safari: '5.1',
},
'es.object.define-property': {
chrome: '5',
firefox: '4',
ie: '9',
opera: '12',
safari: '5.1',
},
'es.object.define-setter': {
chrome: '62',
edge: '16',
firefox: '48',
safari: '7.1',
},
'es.object.entries': {
chrome: '54',
edge: '14',
firefox: '47',
safari: '10.1',
},
'es.object.freeze': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.from-entries': {
chrome: '73',
firefox: '63',
safari: '12.1',
},
'es.object.get-own-property-descriptor': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.get-own-property-descriptors': {
chrome: '54',
edge: '15',
firefox: '50',
safari: '10.0',
},
'es.object.get-own-property-names': {
chrome: '40',
edge: '13',
firefox: '34',
safari: '9.0',
},
'es.object.get-prototype-of': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.is': {
android: '4.1',
chrome: '19',
edge: '12',
firefox: '22',
safari: '9.0',
},
'es.object.is-extensible': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.is-frozen': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.is-sealed': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.keys': {
chrome: '40',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.lookup-getter': {
chrome: '62',
edge: '16',
firefox: '48',
safari: '7.1',
},
'es.object.lookup-setter': {
chrome: '62',
edge: '16',
firefox: '48',
safari: '7.1',
},
'es.object.prevent-extensions': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.seal': {
chrome: '44',
edge: '13',
firefox: '35',
safari: '9.0',
},
'es.object.set-prototype-of': {
chrome: '34',
firefox: '31',
ie: '11',
safari: '9.0',
},
'es.object.to-string': {
chrome: '49',
edge: '15',
firefox: '51',
safari: '10.0',
},
'es.object.values': {
chrome: '54',
edge: '14',
firefox: '47',
safari: '10.1',
},
'es.parse-float': {
chrome: '35',
firefox: '8',
ie: '8',
safari: '7.1',
},
'es.parse-int': {
chrome: '35',
firefox: '21',
ie: '9',
safari: '7.1',
},
'es.promise': {
// V8 6.6 has a serious bug
chrome: '67', // '51',
firefox: '69',
safari: '11.0',
},
'es.promise.all-settled': {
chrome: '76',
firefox: '71',
safari: '13',
},
'es.promise.any': {
chrome: '85',
firefox: '79',
safari: '14.0',
},
'es.promise.finally': {
// V8 6.6 has a serious bug
chrome: '67', // '63',
firefox: '69',
// Previous versions are non-generic
// https://bugs.webkit.org/show_bug.cgi?id=200788
ios: '13.2.3', // need to clarify the patch release, >13.0.0 && <= 13.2.3
safari: '13.0.3', // need to clarify the patch release, >13.0.0 && <= 13.0.3
},
'es.reflect.apply': {
chrome: '49',
edge: '15',
firefox: '42',
safari: '10.0',
},
'es.reflect.construct': {
chrome: '49',
edge: '15',
firefox: '44',
safari: '10.0',
},
'es.reflect.define-property': {
chrome: '49',
edge: '13',
firefox: '42',
safari: '10.0',
},
'es.reflect.delete-property': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.get': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.get-own-property-descriptor': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.get-prototype-of': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.has': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.is-extensible': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.own-keys': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.prevent-extensions': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.set': {
// MS Edge 17-18 Reflect.set allows setting the property to object
// with non-writable property on the prototype
// edge: '12',
chrome: '49',
firefox: '42',
safari: '10.0',
},
'es.reflect.set-prototype-of': {
chrome: '49',
edge: '12',
firefox: '42',
safari: '10.0',
},
'es.reflect.to-string-tag': {
chrome: '86',
firefox: '82',
safari: '14.0',
},
'es.regexp.constructor': {
chrome: '51',
firefox: '49',
safari: '10.0',
},
'es.regexp.exec': {
chrome: '26',
edge: '13',
firefox: '44',
safari: '10.0',
},
'es.regexp.flags': {
chrome: '49',
firefox: '37',
safari: '9.0',
},
'es.regexp.sticky': {
chrome: '49',
edge: '13',
firefox: '3',
safari: '10.0',
},
'es.regexp.test': {
chrome: '51',
firefox: '46',
safari: '10.0',
},
'es.regexp.to-string': {
chrome: '50',
firefox: '46',
safari: '10.0',
},
'es.set': {
chrome: '51',
edge: '15',
firefox: '53',
safari: '10.0',
},
'es.string.code-point-at': {
chrome: '41',
edge: '13',
firefox: '29',
safari: '9.0',
},
'es.string.ends-with': {
chrome: '51',
firefox: '40',
safari: '10.0',
},
'es.string.from-code-point': {
chrome: '41',
edge: '13',
firefox: '29',
safari: '9.0',
},
'es.string.includes': {
chrome: '51',
firefox: '40',
safari: '10.0',
},
'es.string.iterator': {
chrome: '39',
edge: '13',
firefox: '36',
safari: '9.0',
},
'es.string.match': {
chrome: '51',
firefox: '49',
safari: '10.0',
},
'es.string.match-all': {
// Early implementations does not throw an error on non-global regex
chrome: '80', // 73
firefox: '73', // 67
safari: '13.1', // 13
},
'es.string.pad-end': {
chrome: '57',
edge: '15',
firefox: '48',
safari: '11.0',
},
'es.string.pad-start': {
chrome: '57',
edge: '15',
firefox: '48',
safari: '11.0',
},
'es.string.raw': {
chrome: '41',
edge: '13',
firefox: '34',
safari: '9.0',
},
'es.string.repeat': {
chrome: '41',
edge: '13',
firefox: '24',
safari: '9.0',
},
'es.string.replace': {
chrome: '64',
firefox: '78',
safari: '14.0',
},
'es.string.replace-all': {
chrome: '85',
firefox: '77',
safari: '13.1',
},
'es.string.search': {
chrome: '51',
firefox: '49',
safari: '10.0',
},
'es.string.split': {
chrome: '54',
firefox: '49',
safari: '10.0',
},
'es.string.starts-with': {
chrome: '51',
firefox: '40',
safari: '10.0',
},
'es.string.trim': {
chrome: '59',
edge: '15',
firefox: '52',
safari: '12.1',
},
'es.string.trim-end': {
chrome: '66',
firefox: '61',
safari: '12.1',
},
'es.string.trim-start': {
chrome: '66',
firefox: '61',
safari: '12.0',
},
'es.string.anchor': {
chrome: '5',
edge: '12',
firefox: '17',
safari: '6.0',
},
'es.string.big': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.blink': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.bold': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.fixed': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.fontcolor': {
chrome: '5',
edge: '12',
firefox: '17',
safari: '6.0',
},
'es.string.fontsize': {
chrome: '5',
edge: '12',
firefox: '17',
safari: '6.0',
},
'es.string.italics': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.link': {
chrome: '5',
edge: '12',
firefox: '17',
safari: '6.0',
},
'es.string.small': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.strike': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.sub': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.string.sup': {
chrome: '5',
edge: '12',
firefox: '2',
opera: '10.50',
safari: '3.1',
},
'es.typed-array.float32-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.float64-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.int8-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.int16-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.int32-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.uint8-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.uint8-clamped-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.uint16-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.uint32-array': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.copy-within': {
chrome: '45',
edge: '13',
firefox: '34',
safari: '10.0',
},
'es.typed-array.every': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.fill': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.filter': {
chrome: '45',
edge: '13',
firefox: '38',
safari: '10.0',
},
'es.typed-array.find': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.find-index': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.for-each': {
chrome: '45',
edge: '13',
firefox: '38',
safari: '10.0',
},
'es.typed-array.from': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.includes': {
chrome: '49',
edge: '14',
firefox: '43',
safari: '10.0',
},
'es.typed-array.index-of': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.iterator': {
chrome: '47',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.join': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.last-index-of': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.map': {
chrome: '45',
edge: '13',
firefox: '38',
safari: '10.0',
},
'es.typed-array.of': {
chrome: '54',
edge: '15',
firefox: '55',
},
'es.typed-array.reduce': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.reduce-right': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.reverse': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.set': {
chrome: '26',
edge: '13',
firefox: '15',
safari: '7.1',
},
'es.typed-array.slice': {
chrome: '45',
edge: '13',
firefox: '38',
safari: '10.0',
},
'es.typed-array.some': {
chrome: '45',
edge: '13',
firefox: '37',
safari: '10.0',
},
'es.typed-array.sort': {
chrome: '45',
edge: '13',
firefox: '46',
safari: '10.0',
},
'es.typed-array.subarray': {
chrome: '26',
edge: '13',
firefox: '15',
safari: '7.1',
},
'es.typed-array.to-locale-string': {
chrome: '45',
firefox: '51',
safari: '10.0',
},
'es.typed-array.to-string': {
chrome: '51',
edge: '13',
firefox: '51',
safari: '10.0',
},
'es.weak-map': {
chrome: '51',
edge: '15',
firefox: '53',
safari: '10.0',
},
'es.weak-set': {
chrome: '51',
edge: '15',
firefox: '53',
safari: '10.0',
},
// TODO: Remove from `core-js@4`
'esnext.aggregate-error': null,
'esnext.array.at': {
},
'esnext.array.filter-out': {
},
'esnext.array.is-template-object': {
},
'esnext.array.last-index': {
},
'esnext.array.last-item': {
},
'esnext.array.unique-by': {
},
'esnext.async-iterator.constructor': {
},
'esnext.async-iterator.as-indexed-pairs': {
},
'esnext.async-iterator.drop': {
},
'esnext.async-iterator.every': {
},
'esnext.async-iterator.filter': {
},
'esnext.async-iterator.find': {
},
'esnext.async-iterator.flat-map': {
},
'esnext.async-iterator.for-each': {
},
'esnext.async-iterator.from': {
},
'esnext.async-iterator.map': {
},
'esnext.async-iterator.reduce': {
},
'esnext.async-iterator.some': {
},
'esnext.async-iterator.take': {
},
'esnext.async-iterator.to-array': {
},
'esnext.bigint.range': {
},
'esnext.composite-key': {
},
'esnext.composite-symbol': {
},
// TODO: Remove from `core-js@4`
'esnext.global-this': null,
'esnext.iterator.constructor': {
},
'esnext.iterator.as-indexed-pairs': {
},
'esnext.iterator.drop': {
},
'esnext.iterator.every': {
},
'esnext.iterator.filter': {
},
'esnext.iterator.find': {
},
'esnext.iterator.flat-map': {
},
'esnext.iterator.for-each': {
},
'esnext.iterator.from': {
},
'esnext.iterator.map': {
},
'esnext.iterator.reduce': {
},
'esnext.iterator.some': {
},
'esnext.iterator.take': {
},
'esnext.iterator.to-array': {
},
'esnext.map.delete-all': {
},
'esnext.map.emplace': {
},
'esnext.map.every': {
},
'esnext.map.filter': {
},
'esnext.map.find': {
},
'esnext.map.find-key': {
},
'esnext.map.from': {
},
'esnext.map.group-by': {
},
'esnext.map.includes': {
},
'esnext.map.key-by': {
},
'esnext.map.key-of': {
},
'esnext.map.map-keys': {
},
'esnext.map.map-values': {
},
'esnext.map.merge': {
},
'esnext.map.of': {
},
'esnext.map.reduce': {
},
'esnext.map.some': {
},
'esnext.map.update': {
},
// TODO: Remove from `core-js@4`
'esnext.map.update-or-insert': {
},
'esnext.map.upsert': {
},
'esnext.math.clamp': {
},
'esnext.math.deg-per-rad': {
},
'esnext.math.degrees': {
},
'esnext.math.fscale': {
},
// TODO: Remove from `core-js@4`
'esnext.math.iaddh': {
},
// TODO: Remove from `core-js@4`
'esnext.math.imulh': {
},
// TODO: Remove from `core-js@4`
'esnext.math.isubh': {
},
'esnext.math.rad-per-deg': {
},
'esnext.math.radians': {
},
'esnext.math.scale': {
},
'esnext.math.seeded-prng': {
},
'esnext.math.signbit': {
},
// TODO: Remove from `core-js@4`
'esnext.math.umulh': {
},
'esnext.number.from-string': {
},
'esnext.number.range': {
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-entries': {
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-keys': {
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-values': {
},
'esnext.observable': {
},
// TODO: Remove from `core-js@4`
'esnext.promise.all-settled': null,
// TODO: Remove from `core-js@4`
'esnext.promise.any': null,
'esnext.promise.try': {
},
'esnext.reflect.define-metadata': {
},
'esnext.reflect.delete-metadata': {
},
'esnext.reflect.get-metadata': {
},
'esnext.reflect.get-metadata-keys': {
},
'esnext.reflect.get-own-metadata': {
},
'esnext.reflect.get-own-metadata-keys': {
},
'esnext.reflect.has-metadata': {
},
'esnext.reflect.has-own-metadata': {
},
'esnext.reflect.metadata': {
},
'esnext.set.add-all': {
},
'esnext.set.delete-all': {
},
'esnext.set.difference': {
},
'esnext.set.every': {
},
'esnext.set.filter': {
},
'esnext.set.find': {
},
'esnext.set.from': {
},
'esnext.set.intersection': {
},
'esnext.set.is-disjoint-from': {
},
'esnext.set.is-subset-of': {
},
'esnext.set.is-superset-of': {
},
'esnext.set.join': {
},
'esnext.set.map': {
},
'esnext.set.of': {
},
'esnext.set.reduce': {
},
'esnext.set.some': {
},
'esnext.set.symmetric-difference': {
},
'esnext.set.union': {
},
'esnext.string.at': {
},
'esnext.string.code-points': {
},
// TODO: Remove from `core-js@4`
'esnext.string.match-all': null,
'esnext.string.replace-all': null,
'esnext.symbol.async-dispose': {
},
'esnext.symbol.dispose': {
},
'esnext.symbol.observable': {
},
'esnext.symbol.pattern-match': {
},
// TODO: Remove from `core-js@4`
'esnext.symbol.replace-all': {
},
'esnext.typed-array.at': {
},
'esnext.typed-array.filter-out': {
},
'esnext.weak-map.delete-all': {
},
'esnext.weak-map.from': {
},
'esnext.weak-map.of': {
},
'esnext.weak-map.emplace': {
},
'esnext.weak-map.upsert': {
},
'esnext.weak-set.add-all': {
},
'esnext.weak-set.delete-all': {
},
'esnext.weak-set.from': {
},
'esnext.weak-set.of': {
},
'web.dom-collections.for-each': {
chrome: '58',
edge: '16',
firefox: '50',
node: '0.0.1',
safari: '10.0',
},
'web.dom-collections.iterator': {
chrome: '66',
firefox: '60',
node: '0.0.1',
safari: '13.1',
},
'web.immediate': {
ie: '10',
node: '0.9.1',
},
'web.queue-microtask': {
chrome: '71',
firefox: '69',
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
node: '12.0', // '11.0',
safari: '12.1',
},
'web.timers': {
android: '1.5',
chrome: '1',
firefox: '1',
ie: '10',
node: '0.0.1',
opera: '7',
safari: '1.0',
},
'web.url': {
chrome: '67',
firefox: '57',
node: '10.0',
},
'web.url.to-json': {
chrome: '71',
firefox: '57',
node: '10.0',
},
'web.url-search-params': {
chrome: '67',
firefox: '57',
node: '10.0',
},
};
// TODO: Remove from `core-js@4`
data['esnext.aggregate-error'] = data['es.aggregate-error'];
data['esnext.global-this'] = data['es.global-this'];
data['esnext.promise.all-settled'] = data['es.promise.all-settled'];
data['esnext.promise.any'] = data['es.promise.any'];
data['esnext.string.match-all'] = data['es.string.match-all'];
data['esnext.string.replace-all'] = data['es.string.replace-all'];
module.exports = data;
core-js-3.8.2/packages/core-js-compat/src/external.js 0000664 0000000 0000000 00000000177 13774351224 0022453 0 ustar 00root root 0000000 0000000 'use strict';
module.exports = {
modules: {
chrome: '61',
edge: '16',
firefox: '60',
safari: '10.1',
},
};
core-js-3.8.2/packages/core-js-compat/src/mapping.js 0000664 0000000 0000000 00000005211 13774351224 0022256 0 ustar 00root root 0000000 0000000 'use strict';
const ChromeToElectronModule = require('electron-to-chromium/chromium-versions');
const ChromeToElectron = Object.entries(ChromeToElectronModule);
module.exports = {
// https://nodejs.org/dist/index.json
ChromeToNode: [
[3, '0.0.3'],
[4, '0.1.19'],
[5, '0.1.27'],
[6, '0.1.90'],
[7, '0.1.101'],
[9, '0.3.0'],
[10, '0.3.2'],
[11, '0.3.8'],
[14, '0.5.1'],
[15, '0.5.4'],
[16, '0.5.6'],
[18, '0.7.0'],
[19, '0.7.3'],
[21, '0.7.11'],
[23, '0.9.3'],
[24, '0.9.6'],
[27, '0.11.0'],
[28, '0.11.1'],
[29, '0.11.2'],
[30, '0.11.4'],
[31, '0.11.8'],
[32, '0.11.9'],
[35, '0.11.13'],
[36, '0.11.14'],
[38, '0.11.15'],
[41, '1.0'], // io.js
[42, '2.0'], // io.js
[44, '3.0'], // io.js
[45, '4.0'],
[46, '5.0'],
[50, '6.0'],
[51, '6.5'],
[54, '7.0'],
[55, '7.6'],
[58, '8.0'],
[60, '8.3'],
[61, '8.7'],
[62, '8.10'],
[66, '10.0'],
[67, '10.4'],
[68, '10.9'],
[70, '11.0'],
[74, '12.0'],
[75, '12.5'],
[76, '12.9'],
[77, '12.11'],
[78, '13.0'],
[79, '13.2'],
[81, '14.0'],
[83, '14.5'],
[84, '14.6'],
[86, '15.0'],
],
// https://github.com/mdn/browser-compat-data/blob/master/browsers/samsunginternet_android.json
ChromeToSamsung: [
[18, '1.0'],
[28, '1.5'],
[34, '2.0'],
[38, '3.0'],
[42, '3.4'],
[44, '4.0'],
[51, '5.0'],
[56, '6.0'],
[59, '7.0'],
[63, '8.0'],
[67, '9.0'],
[71, '10.0'],
[75, '11.0'],
[79, '12.0'],
[83, '13.0'],
],
// https://github.com/mdn/browser-compat-data/blob/master/browsers/opera_android.json
ChromeToOperaMobile: [
[59, 43],
[60, 44],
[61, 45],
[63, 46],
[66, 47],
[69, 48],
[70, 49],
[71, 50],
[72, 51],
[73, 52],
[74, 53],
[76, 54],
[77, 55],
[78, 56],
[80, 57],
[81, 58],
[83, 59],
[85, 60],
],
ChromeToAndroid: [
[9, '3.0'],
[12, '4.0'],
[30, '4.4'],
[33, '4.4.3'],
],
ChromeToElectron,
// https://github.com/mdn/browser-compat-data/blob/master/browsers/safari_ios.json
SafariToIOS: [
['3.0', '1.0'],
['3.1', '2.0'],
['3.2', '3.0'],
['4.0', '3.2'],
['4.1', '4.2'],
['5.1', '5.1'],
['6.0', '6.0'],
['6.1', '7.0'],
['7.1', '8.0'],
['9.0', '9.0'],
['9.1', '9.3'],
['10.0', '10.0'],
['10.1', '10.3'],
['11.0', '11.0'],
['11.1', '11.3'],
['12.0', '12.0'],
['12.1', '12.2'],
['13.0', '13.0'],
['13.1', '13.4'],
['14.0', '14.0'],
],
SafariToPhantomJS: [
['4.1', '1.9'],
['6.0', '2.0'],
],
};
core-js-3.8.2/packages/core-js-compat/src/modules-by-versions.js 0000664 0000000 0000000 00000003621 13774351224 0024554 0 ustar 00root root 0000000 0000000 'use strict';
module.exports = {
3.1: [
'es.string.match-all',
'es.symbol.match-all',
'esnext.symbol.replace-all',
],
3.2: [
'es.promise.all-settled',
'esnext.array.is-template-object',
'esnext.map.update-or-insert',
'esnext.symbol.async-dispose',
],
3.3: [
'es.global-this',
'esnext.async-iterator.constructor',
'esnext.async-iterator.as-indexed-pairs',
'esnext.async-iterator.drop',
'esnext.async-iterator.every',
'esnext.async-iterator.filter',
'esnext.async-iterator.find',
'esnext.async-iterator.flat-map',
'esnext.async-iterator.for-each',
'esnext.async-iterator.from',
'esnext.async-iterator.map',
'esnext.async-iterator.reduce',
'esnext.async-iterator.some',
'esnext.async-iterator.take',
'esnext.async-iterator.to-array',
'esnext.iterator.constructor',
'esnext.iterator.as-indexed-pairs',
'esnext.iterator.drop',
'esnext.iterator.every',
'esnext.iterator.filter',
'esnext.iterator.find',
'esnext.iterator.flat-map',
'esnext.iterator.for-each',
'esnext.iterator.from',
'esnext.iterator.map',
'esnext.iterator.reduce',
'esnext.iterator.some',
'esnext.iterator.take',
'esnext.iterator.to-array',
'esnext.map.upsert',
'esnext.weak-map.upsert',
],
3.4: [
'es.json.stringify',
],
3.5: [
'esnext.object.iterate-entries',
'esnext.object.iterate-keys',
'esnext.object.iterate-values',
],
3.6: [
'es.regexp.sticky',
'es.regexp.test',
],
3.7: [
'es.aggregate-error',
'es.promise.any',
'es.reflect.to-string-tag',
'es.string.replace-all',
'esnext.map.emplace',
'esnext.weak-map.emplace',
],
3.8: [
'esnext.array.at',
'esnext.array.filter-out',
'esnext.array.unique-by',
'esnext.bigint.range',
'esnext.number.range',
'esnext.typed-array.at',
'esnext.typed-array.filter-out',
],
};
core-js-3.8.2/packages/core-js-compat/targets-parser.js 0000664 0000000 0000000 00000003212 13774351224 0022776 0 ustar 00root root 0000000 0000000 'use strict';
const browserslist = require('browserslist');
const { compare, has } = require('./helpers');
const external = require('./external');
const aliases = new Map([
['and_chr', 'chrome'],
['and_ff', 'firefox'],
['ie_mob', 'ie'],
['ios_saf', 'ios'],
['op_mob', 'opera_mobile'],
]);
const validTargets = new Set([
'android',
'chrome',
'edge',
'electron',
'firefox',
'ie',
'ios',
'node',
'opera',
'opera_mobile',
'phantom',
'safari',
'samsung',
]);
module.exports = function (targets) {
if (typeof targets !== 'object' || Array.isArray(targets)) {
targets = { browsers: targets };
}
const { browsers, esmodules, node, ...rest } = targets;
const list = Object.entries(rest);
if (browsers) {
list.push(...browserslist(browsers).map(it => it.split(' ')));
}
if (esmodules) {
list.push(...Object.entries(external.modules));
}
if (node) {
list.push(['node', node === 'current' ? process.versions.node : node]);
}
const normalized = list.map(([engine, version]) => {
if (has(browserslist.aliases, engine)) {
engine = browserslist.aliases[engine];
}
if (aliases.has(engine)) {
engine = aliases.get(engine);
}
return [engine, String(version)];
}).filter(([engine]) => {
return validTargets.has(engine);
}).sort(([a], [b]) => {
return a < b ? -1 : a > b ? 1 : 0;
});
const reducedByMinVersion = new Map();
for (const [engine, version] of normalized) {
if (!reducedByMinVersion.has(engine) || compare(version, '<=', reducedByMinVersion.get(engine))) {
reducedByMinVersion.set(engine, version);
}
}
return reducedByMinVersion;
};
core-js-3.8.2/packages/core-js-pure/ 0000775 0000000 0000000 00000000000 13774351224 0017167 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-pure/.npmignore 0000664 0000000 0000000 00000000043 13774351224 0021163 0 ustar 00root root 0000000 0000000 node_modules/
*.log
.*
/override/
core-js-3.8.2/packages/core-js-pure/README.md 0000664 0000000 0000000 00000012673 13774351224 0020457 0 ustar 00root root 0000000 0000000 # core-js-pure
[](#sponsors) [](#backers) [](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.npmjs.com/package/core-js-pure) [](http://npm-stat.com/charts.html?package=core-js-pure&author=&from=2019-03-18) [](https://github.com/zloirock/core-js/actions)
[](https://github.com/zloirock/core-js/actions)
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
## As advertising: the author is looking for a good job -)
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## Raising funds
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer [**on Open Collective**](https://opencollective.com/core-js) or [**on Patreon**](https://www.patreon.com/zloirock) if you are interested in `core-js`.
---
---
---
[*Example*](http://goo.gl/a2xexl):
```js
import 'core-js'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*You can load only required features*:
```js
import 'core-js/features/array/from'; // <- at the top of your entry point
import 'core-js/features/array/flat'; // <- at the top of your entry point
import 'core-js/features/set'; // <- at the top of your entry point
import 'core-js/features/promise'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*Or use it without global namespace pollution*:
```js
import from from 'core-js-pure/features/array/from';
import flat from 'core-js-pure/features/array/flat';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
flat([1, [2, 3], [4, [5]]], 2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
**It's a version without global namespace pollution (the third example), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md)**.
core-js-3.8.2/packages/core-js-pure/override/ 0000775 0000000 0000000 00000000000 13774351224 0021006 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-pure/override/internals/ 0000775 0000000 0000000 00000000000 13774351224 0023005 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-pure/override/internals/add-to-unscopables.js 0000664 0000000 0000000 00000000056 13774351224 0027030 0 ustar 00root root 0000000 0000000 module.exports = function () { /* empty */ };
core-js-3.8.2/packages/core-js-pure/override/internals/array-buffer-view-core.js 0000664 0000000 0000000 00000000011 13774351224 0027616 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/array-buffer.js 0000664 0000000 0000000 00000000011 13774351224 0025720 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/collection.js 0000664 0000000 0000000 00000005766 13774351224 0025514 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('./export');
var global = require('../internals/global');
var InternalMetadataModule = require('../internals/internal-metadata');
var fails = require('../internals/fails');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var iterate = require('../internals/iterate');
var anInstance = require('../internals/an-instance');
var isObject = require('../internals/is-object');
var setToStringTag = require('../internals/set-to-string-tag');
var defineProperty = require('../internals/object-define-property').f;
var forEach = require('../internals/array-iteration').forEach;
var DESCRIPTORS = require('../internals/descriptors');
var InternalStateModule = require('../internals/internal-state');
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
var ADDER = IS_MAP ? 'set' : 'add';
var NativeConstructor = global[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var exported = {};
var Constructor;
if (!DESCRIPTORS || typeof NativeConstructor != 'function'
|| !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))
) {
// create collection constructor
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.REQUIRED = true;
} else {
Constructor = wrapper(function (target, iterable) {
setInternalState(anInstance(target, Constructor, CONSTRUCTOR_NAME), {
type: CONSTRUCTOR_NAME,
collection: new NativeConstructor()
});
if (iterable != undefined) iterate(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
});
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {
var IS_ADDER = KEY == 'add' || KEY == 'set';
if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {
createNonEnumerableProperty(Constructor.prototype, KEY, function (a, b) {
var collection = getInternalState(this).collection;
if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
var result = collection[KEY](a === 0 ? 0 : a, b);
return IS_ADDER ? this : result;
});
}
});
IS_WEAK || defineProperty(Constructor.prototype, 'size', {
configurable: true,
get: function () {
return getInternalState(this).collection.size;
}
});
}
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
exported[CONSTRUCTOR_NAME] = Constructor;
$({ global: true, forced: true }, exported);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
core-js-3.8.2/packages/core-js-pure/override/internals/entry-unbind.js 0000664 0000000 0000000 00000000125 13774351224 0025757 0 ustar 00root root 0000000 0000000 var getBuiltIn = require('../internals/get-built-in');
module.exports = getBuiltIn;
core-js-3.8.2/packages/core-js-pure/override/internals/entry-virtual.js 0000664 0000000 0000000 00000000201 13774351224 0026161 0 ustar 00root root 0000000 0000000 var path = require('../internals/path');
module.exports = function (CONSTRUCTOR) {
return path[CONSTRUCTOR + 'Prototype'];
};
core-js-3.8.2/packages/core-js-pure/override/internals/export.js 0000664 0000000 0000000 00000010171 13774351224 0024664 0 ustar 00root root 0000000 0000000 'use strict';
var global = require('../internals/global');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var isForced = require('../internals/is-forced');
var path = require('../internals/path');
var bind = require('../internals/function-bind-context');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var has = require('../internals/has');
var wrapConstructor = function (NativeConstructor) {
var Wrapper = function (a, b, c) {
if (this instanceof NativeConstructor) {
switch (arguments.length) {
case 0: return new NativeConstructor();
case 1: return new NativeConstructor(a);
case 2: return new NativeConstructor(a, b);
} return new NativeConstructor(a, b, c);
} return NativeConstructor.apply(this, arguments);
};
Wrapper.prototype = NativeConstructor.prototype;
return Wrapper;
};
/*
options.target - name of the target object
options.global - target is the global object
options.stat - export as static methods of target
options.proto - export as prototype methods of target
options.real - real prototype method for the `pure` version
options.forced - export even if the native feature is available
options.bind - bind methods to the target, required for the `pure` version
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
options.unsafe - use the simple assignment of property instead of delete + defineProperty
options.sham - add a flag to not completely full polyfills
options.enumerable - export as enumerable property
options.noTargetGet - prevent calling a getter on target
*/
module.exports = function (options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var PROTO = options.proto;
var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;
var target = GLOBAL ? path : path[TARGET] || (path[TARGET] = {});
var targetPrototype = target.prototype;
var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
for (key in source) {
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contains in native
USE_NATIVE = !FORCED && nativeSource && has(nativeSource, key);
targetProperty = target[key];
if (USE_NATIVE) if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor(nativeSource, key);
nativeProperty = descriptor && descriptor.value;
} else nativeProperty = nativeSource[key];
// export native or implementation
sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];
if (USE_NATIVE && typeof targetProperty === typeof sourceProperty) continue;
// bind timers to global for call from export context
if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
// wrap global constructors for prevent changs in this version
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
// make static versions for prototype methods
else if (PROTO && typeof sourceProperty == 'function') resultProperty = bind(Function.call, sourceProperty);
// default case
else resultProperty = sourceProperty;
// add a flag to not completely full polyfills
if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {
createNonEnumerableProperty(resultProperty, 'sham', true);
}
target[key] = resultProperty;
if (PROTO) {
VIRTUAL_PROTOTYPE = TARGET + 'Prototype';
if (!has(path, VIRTUAL_PROTOTYPE)) {
createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});
}
// export virtual prototype methods
path[VIRTUAL_PROTOTYPE][key] = sourceProperty;
// export real prototype methods
if (options.real && targetPrototype && !targetPrototype[key]) {
createNonEnumerableProperty(targetPrototype, key, sourceProperty);
}
}
}
};
core-js-3.8.2/packages/core-js-pure/override/internals/fix-regexp-well-known-symbol-logic.js 0000664 0000000 0000000 00000000011 13774351224 0032102 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/is-pure.js 0000664 0000000 0000000 00000000027 13774351224 0024726 0 ustar 00root root 0000000 0000000 module.exports = true;
core-js-3.8.2/packages/core-js-pure/override/internals/path.js 0000664 0000000 0000000 00000000025 13774351224 0024274 0 ustar 00root root 0000000 0000000 module.exports = {};
core-js-3.8.2/packages/core-js-pure/override/internals/redefine-all.js 0000664 0000000 0000000 00000000421 13774351224 0025667 0 ustar 00root root 0000000 0000000 var redefine = require('../internals/redefine');
module.exports = function (target, src, options) {
for (var key in src) {
if (options && options.unsafe && target[key]) target[key] = src[key];
else redefine(target, key, src[key], options);
} return target;
};
core-js-3.8.2/packages/core-js-pure/override/internals/redefine.js 0000664 0000000 0000000 00000000412 13774351224 0025121 0 ustar 00root root 0000000 0000000 var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
module.exports = function (target, key, value, options) {
if (options && options.enumerable) target[key] = value;
else createNonEnumerableProperty(target, key, value);
};
core-js-3.8.2/packages/core-js-pure/override/internals/regexp-exec-abstract.js 0000664 0000000 0000000 00000000011 13774351224 0027350 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/regexp-exec.js 0000664 0000000 0000000 00000000011 13774351224 0025547 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/regexp-sticky-helpers.js 0000664 0000000 0000000 00000000011 13774351224 0027571 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/set-to-string-tag.js 0000664 0000000 0000000 00000001462 13774351224 0026636 0 ustar 00root root 0000000 0000000 var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
var defineProperty = require('../internals/object-define-property').f;
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var has = require('../internals/has');
var toString = require('../internals/object-to-string');
var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
module.exports = function (it, TAG, STATIC, SET_METHOD) {
if (it) {
var target = STATIC ? it : it.prototype;
if (!has(target, TO_STRING_TAG)) {
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
}
if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {
createNonEnumerableProperty(target, 'toString', toString);
}
}
};
core-js-3.8.2/packages/core-js-pure/override/internals/to-offset.js 0000664 0000000 0000000 00000000011 13774351224 0025241 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/typed-array-constructor.js 0000664 0000000 0000000 00000000011 13774351224 0030157 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/internals/typed-array-from.js 0000664 0000000 0000000 00000000011 13774351224 0026535 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/ 0000775 0000000 0000000 00000000000 13774351224 0022456 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js-pure/override/modules/es.array-buffer.constructor.js 0000664 0000000 0000000 00000000011 13774351224 0030363 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.array-buffer.is-view.js 0000664 0000000 0000000 00000000011 13774351224 0027361 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.array-buffer.slice.js 0000664 0000000 0000000 00000000011 13774351224 0027075 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.data-view.js 0000664 0000000 0000000 00000000011 13774351224 0025273 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.date.to-json.js 0000664 0000000 0000000 00000001627 13774351224 0025735 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toObject = require('../internals/to-object');
var toPrimitive = require('../internals/to-primitive');
var toISOString = require('../internals/date-to-iso-string');
var classof = require('../internals/classof-raw');
var fails = require('../internals/fails');
var FORCED = fails(function () {
return new Date(NaN).toJSON() !== null
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
});
// `Date.prototype.toJSON` method
// https://tc39.es/ecma262/#sec-date.prototype.tojson
$({ target: 'Date', proto: true, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars
toJSON: function toJSON(key) {
var O = toObject(this);
var pv = toPrimitive(O);
return typeof pv == 'number' && !isFinite(pv) ? null :
(!('toISOString' in O) && classof(O) == 'Date') ? toISOString.call(O) : O.toISOString();
}
});
core-js-3.8.2/packages/core-js-pure/override/modules/es.date.to-primitive.js 0000664 0000000 0000000 00000000011 13774351224 0026756 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.date.to-string.js 0000664 0000000 0000000 00000000011 13774351224 0026254 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.function.name.js 0000664 0000000 0000000 00000000011 13774351224 0026156 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.math.to-string-tag.js 0000664 0000000 0000000 00000000011 13774351224 0027041 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.number.constructor.js 0000664 0000000 0000000 00000000011 13774351224 0027266 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.object.to-string.js 0000664 0000000 0000000 00000000011 13774351224 0026605 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.reflect.to-string-tag.js 0000664 0000000 0000000 00000000011 13774351224 0027534 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.constructor.js 0000664 0000000 0000000 00000000115 13774351224 0027275 0 ustar 00root root 0000000 0000000 var setSpecies = require('../internals/set-species');
setSpecies('RegExp');
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.exec.js 0000664 0000000 0000000 00000000011 13774351224 0025627 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.flags.js 0000664 0000000 0000000 00000000011 13774351224 0025777 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.sticky.js 0000664 0000000 0000000 00000000011 13774351224 0026211 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.test.js 0000664 0000000 0000000 00000000011 13774351224 0025662 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.regexp.to-string.js 0000664 0000000 0000000 00000000011 13774351224 0026631 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.string.match.js 0000664 0000000 0000000 00000000011 13774351224 0026013 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.string.replace.js 0000664 0000000 0000000 00000000011 13774351224 0026332 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.string.search.js 0000664 0000000 0000000 00000000011 13774351224 0026164 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.string.split.js 0000664 0000000 0000000 00000000011 13774351224 0026052 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.symbol.description.js 0000664 0000000 0000000 00000000011 13774351224 0027241 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.copy-within.js 0000664 0000000 0000000 00000000011 13774351224 0030124 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.every.js 0000664 0000000 0000000 00000000011 13774351224 0027004 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.fill.js 0000664 0000000 0000000 00000000011 13774351224 0026600 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.filter.js 0000664 0000000 0000000 00000000011 13774351224 0027137 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.find-index.js 0000664 0000000 0000000 00000000011 13774351224 0027677 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.find.js 0000664 0000000 0000000 00000000011 13774351224 0026572 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.float32-array.js 0000664 0000000 0000000 00000000011 13774351224 0030240 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.float64-array.js 0000664 0000000 0000000 00000000011 13774351224 0030245 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.for-each.js 0000664 0000000 0000000 00000000011 13774351224 0027336 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.from.js 0000664 0000000 0000000 00000000011 13774351224 0026615 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.includes.js 0000664 0000000 0000000 00000000011 13774351224 0027460 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.index-of.js 0000664 0000000 0000000 00000000011 13774351224 0027363 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.int16-array.js 0000664 0000000 0000000 00000000011 13774351224 0027727 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.int32-array.js 0000664 0000000 0000000 00000000011 13774351224 0027725 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.int8-array.js 0000664 0000000 0000000 00000000011 13774351224 0027650 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.iterator.js 0000664 0000000 0000000 00000000011 13774351224 0027503 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.join.js 0000664 0000000 0000000 00000000011 13774351224 0026611 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.last-index-of.js 0000664 0000000 0000000 00000000011 13774351224 0030324 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.map.js 0000664 0000000 0000000 00000000011 13774351224 0026427 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.of.js 0000664 0000000 0000000 00000000011 13774351224 0026256 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.reduce-right.js 0000664 0000000 0000000 00000000011 13774351224 0030234 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.reduce.js 0000664 0000000 0000000 00000000011 13774351224 0027121 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.reverse.js 0000664 0000000 0000000 00000000011 13774351224 0027325 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.set.js 0000664 0000000 0000000 00000000011 13774351224 0026445 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.slice.js 0000664 0000000 0000000 00000000011 13774351224 0026751 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.some.js 0000664 0000000 0000000 00000000011 13774351224 0026615 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.sort.js 0000664 0000000 0000000 00000000011 13774351224 0026641 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.subarray.js 0000664 0000000 0000000 00000000011 13774351224 0027502 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.to-locale-string.js 0000664 0000000 0000000 00000000011 13774351224 0031035 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.to-string.js 0000664 0000000 0000000 00000000011 13774351224 0027600 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.uint16-array.js 0000664 0000000 0000000 00000000011 13774351224 0030114 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.uint32-array.js 0000664 0000000 0000000 00000000011 13774351224 0030112 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.uint8-array.js 0000664 0000000 0000000 00000000011 13774351224 0030035 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/es.typed-array.uint8-clamped-array.js 0000664 0000000 0000000 00000000011 13774351224 0031440 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/esnext.array.last-index.js 0000664 0000000 0000000 00000000011 13774351224 0027476 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/esnext.array.last-item.js 0000664 0000000 0000000 00000000011 13774351224 0027325 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/esnext.typed-array.at.js 0000664 0000000 0000000 00000000011 13774351224 0027155 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/esnext.typed-array.filter-out.js 0000664 0000000 0000000 00000000011 13774351224 0030643 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/web.dom-collections.for-each.js 0000664 0000000 0000000 00000000011 13774351224 0030336 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/override/modules/web.dom-collections.iterator.js 0000664 0000000 0000000 00000001455 13774351224 0030520 0 ustar 00root root 0000000 0000000 require('./es.array.iterator');
var DOMIterables = require('../internals/dom-iterables');
var global = require('../internals/global');
var classof = require('../internals/classof');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var Iterators = require('../internals/iterators');
var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
for (var COLLECTION_NAME in DOMIterables) {
var Collection = global[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
}
Iterators[COLLECTION_NAME] = Iterators.Array;
}
core-js-3.8.2/packages/core-js-pure/override/modules/web.url.to-json.js 0000664 0000000 0000000 00000000011 13774351224 0025752 0 ustar 00root root 0000000 0000000 // empty
core-js-3.8.2/packages/core-js-pure/package.json 0000664 0000000 0000000 00000002032 13774351224 0021452 0 ustar 00root root 0000000 0000000 {
"name": "core-js-pure",
"description": "Standard library",
"version": "3.8.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"main": "index.js",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
},
"license": "MIT",
"keywords": [
"ES3",
"ES5",
"ES6",
"ES7",
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020",
"ECMAScript 3",
"ECMAScript 5",
"ECMAScript 6",
"ECMAScript 7",
"ECMAScript 2015",
"ECMAScript 2016",
"ECMAScript 2017",
"ECMAScript 2018",
"ECMAScript 2019",
"ECMAScript 2020",
"Harmony",
"Strawman",
"Map",
"Set",
"WeakMap",
"WeakSet",
"Promise",
"Observable",
"Symbol",
"TypedArray",
"URL",
"URLSearchParams",
"queueMicrotask",
"setImmediate",
"polyfill",
"ponyfill",
"shim"
],
"scripts": {
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
}
}
core-js-3.8.2/packages/core-js/ 0000775 0000000 0000000 00000000000 13774351224 0016216 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/.npmignore 0000664 0000000 0000000 00000000027 13774351224 0020214 0 ustar 00root root 0000000 0000000 node_modules/
*.log
.*
core-js-3.8.2/packages/core-js/README.md 0000664 0000000 0000000 00000012605 13774351224 0017501 0 ustar 00root root 0000000 0000000 # core-js
[](#sponsors) [](#backers) [](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.npmjs.com/package/core-js) [](http://npm-stat.com/charts.html?package=core-js&author=&from=2014-11-18) [](https://github.com/zloirock/core-js/actions)
[](https://github.com/zloirock/core-js/actions)
> Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2021](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
## As advertising: the author is looking for a good job -)
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## Raising funds
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer [**on Open Collective**](https://opencollective.com/core-js) or [**on Patreon**](https://www.patreon.com/zloirock) if you are interested in `core-js`.
---
---
---
[*Example*](http://goo.gl/a2xexl):
```js
import 'core-js'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*You can load only required features*:
```js
import 'core-js/features/array/from'; // <- at the top of your entry point
import 'core-js/features/array/flat'; // <- at the top of your entry point
import 'core-js/features/set'; // <- at the top of your entry point
import 'core-js/features/promise'; // <- at the top of your entry point
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, [2, 3], [4, [5]]].flat(2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
*Or use it without global namespace pollution*:
```js
import from from 'core-js-pure/features/array/from';
import flat from 'core-js-pure/features/array/flat';
import Set from 'core-js-pure/features/set';
import Promise from 'core-js-pure/features/promise';
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
flat([1, [2, 3], [4, [5]]], 2); // => [1, 2, 3, 4, 5]
Promise.resolve(32).then(x => console.log(x)); // => 32
```
**It's a global version (first 2 examples), for more info see [`core-js` documentation](https://github.com/zloirock/core-js/blob/master/README.md).**
core-js-3.8.2/packages/core-js/configurator.js 0000664 0000000 0000000 00000002023 13774351224 0021253 0 ustar 00root root 0000000 0000000 var has = require('./internals/has');
var isArray = require('./internals/is-array');
var isForced = require('./internals/is-forced');
var shared = require('./internals/shared-store');
var data = isForced.data;
var normalize = isForced.normalize;
var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR';
var ASYNC_ITERATOR_PROTOTYPE = 'AsyncIteratorPrototype';
var setAggressivenessLevel = function (object, constant) {
if (isArray(object)) for (var i = 0; i < object.length; i++) data[normalize(object[i])] = constant;
};
module.exports = function (options) {
if (typeof options == 'object') {
setAggressivenessLevel(options.useNative, isForced.NATIVE);
setAggressivenessLevel(options.usePolyfill, isForced.POLYFILL);
setAggressivenessLevel(options.useFeatureDetection, null);
if (has(options, USE_FUNCTION_CONSTRUCTOR)) shared[USE_FUNCTION_CONSTRUCTOR] = !!options[USE_FUNCTION_CONSTRUCTOR];
if (has(options, ASYNC_ITERATOR_PROTOTYPE)) shared[USE_FUNCTION_CONSTRUCTOR] = options[ASYNC_ITERATOR_PROTOTYPE];
}
};
core-js-3.8.2/packages/core-js/es/ 0000775 0000000 0000000 00000000000 13774351224 0016625 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/README.md 0000664 0000000 0000000 00000000216 13774351224 0020103 0 ustar 00root root 0000000 0000000 This folder contains entry points for [stable ECMAScript features](https://github.com/zloirock/core-js/tree/v3#ecmascript) with dependencies.
core-js-3.8.2/packages/core-js/es/aggregate-error.js 0000664 0000000 0000000 00000000330 13774351224 0022234 0 ustar 00root root 0000000 0000000 require('../modules/es.aggregate-error');
require('../modules/es.string.iterator');
require('../modules/web.dom-collections.iterator');
var path = require('../internals/path');
module.exports = path.AggregateError;
core-js-3.8.2/packages/core-js/es/array-buffer/ 0000775 0000000 0000000 00000000000 13774351224 0021212 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/array-buffer/constructor.js 0000664 0000000 0000000 00000000264 13774351224 0024137 0 ustar 00root root 0000000 0000000 require('../../modules/es.array-buffer.constructor');
require('../../modules/es.object.to-string');
var path = require('../../internals/path');
module.exports = path.ArrayBuffer;
core-js-3.8.2/packages/core-js/es/array-buffer/index.js 0000664 0000000 0000000 00000000426 13774351224 0022661 0 ustar 00root root 0000000 0000000 require('../../modules/es.array-buffer.constructor');
require('../../modules/es.array-buffer.is-view');
require('../../modules/es.array-buffer.slice');
require('../../modules/es.object.to-string');
var path = require('../../internals/path');
module.exports = path.ArrayBuffer;
core-js-3.8.2/packages/core-js/es/array-buffer/is-view.js 0000664 0000000 0000000 00000000211 13774351224 0023125 0 ustar 00root root 0000000 0000000 require('../../modules/es.array-buffer.is-view');
var path = require('../../internals/path');
module.exports = path.ArrayBuffer.isView;
core-js-3.8.2/packages/core-js/es/array-buffer/slice.js 0000664 0000000 0000000 00000000060 13774351224 0022643 0 ustar 00root root 0000000 0000000 require('../../modules/es.array-buffer.slice');
core-js-3.8.2/packages/core-js/es/array/ 0000775 0000000 0000000 00000000000 13774351224 0017743 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/array/concat.js 0000664 0000000 0000000 00000000227 13774351224 0021551 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.concat');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'concat');
core-js-3.8.2/packages/core-js/es/array/copy-within.js 0000664 0000000 0000000 00000000240 13774351224 0022547 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.copy-within');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'copyWithin');
core-js-3.8.2/packages/core-js/es/array/entries.js 0000664 0000000 0000000 00000000232 13774351224 0021747 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'entries');
core-js-3.8.2/packages/core-js/es/array/every.js 0000664 0000000 0000000 00000000225 13774351224 0021432 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.every');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'every');
core-js-3.8.2/packages/core-js/es/array/fill.js 0000664 0000000 0000000 00000000223 13774351224 0021224 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.fill');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'fill');
core-js-3.8.2/packages/core-js/es/array/filter.js 0000664 0000000 0000000 00000000227 13774351224 0021567 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.filter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'filter');
core-js-3.8.2/packages/core-js/es/array/find-index.js 0000664 0000000 0000000 00000000236 13774351224 0022327 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.find-index');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'findIndex');
core-js-3.8.2/packages/core-js/es/array/find.js 0000664 0000000 0000000 00000000223 13774351224 0021216 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.find');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'find');
core-js-3.8.2/packages/core-js/es/array/flat-map.js 0000664 0000000 0000000 00000000322 13774351224 0021777 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.flat-map');
require('../../modules/es.array.unscopables.flat-map');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'flatMap');
core-js-3.8.2/packages/core-js/es/array/flat.js 0000664 0000000 0000000 00000000307 13774351224 0021227 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.flat');
require('../../modules/es.array.unscopables.flat');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'flat');
core-js-3.8.2/packages/core-js/es/array/for-each.js 0000664 0000000 0000000 00000000232 13774351224 0021762 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.for-each');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'forEach');
core-js-3.8.2/packages/core-js/es/array/from.js 0000664 0000000 0000000 00000000244 13774351224 0021244 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.iterator');
require('../../modules/es.array.from');
var path = require('../../internals/path');
module.exports = path.Array.from;
core-js-3.8.2/packages/core-js/es/array/includes.js 0000664 0000000 0000000 00000000233 13774351224 0022105 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.includes');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'includes');
core-js-3.8.2/packages/core-js/es/array/index-of.js 0000664 0000000 0000000 00000000232 13774351224 0022007 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.index-of');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'indexOf');
core-js-3.8.2/packages/core-js/es/array/index.js 0000664 0000000 0000000 00000002536 13774351224 0021416 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.iterator');
require('../../modules/es.array.from');
require('../../modules/es.array.is-array');
require('../../modules/es.array.of');
require('../../modules/es.array.concat');
require('../../modules/es.array.copy-within');
require('../../modules/es.array.every');
require('../../modules/es.array.fill');
require('../../modules/es.array.filter');
require('../../modules/es.array.find');
require('../../modules/es.array.find-index');
require('../../modules/es.array.flat');
require('../../modules/es.array.flat-map');
require('../../modules/es.array.for-each');
require('../../modules/es.array.includes');
require('../../modules/es.array.index-of');
require('../../modules/es.array.iterator');
require('../../modules/es.array.join');
require('../../modules/es.array.last-index-of');
require('../../modules/es.array.map');
require('../../modules/es.array.reduce');
require('../../modules/es.array.reduce-right');
require('../../modules/es.array.reverse');
require('../../modules/es.array.slice');
require('../../modules/es.array.some');
require('../../modules/es.array.sort');
require('../../modules/es.array.species');
require('../../modules/es.array.splice');
require('../../modules/es.array.unscopables.flat');
require('../../modules/es.array.unscopables.flat-map');
var path = require('../../internals/path');
module.exports = path.Array;
core-js-3.8.2/packages/core-js/es/array/is-array.js 0000664 0000000 0000000 00000000176 13774351224 0022034 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.is-array');
var path = require('../../internals/path');
module.exports = path.Array.isArray;
core-js-3.8.2/packages/core-js/es/array/iterator.js 0000664 0000000 0000000 00000000231 13774351224 0022126 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'values');
core-js-3.8.2/packages/core-js/es/array/join.js 0000664 0000000 0000000 00000000223 13774351224 0021235 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.join');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'join');
core-js-3.8.2/packages/core-js/es/array/keys.js 0000664 0000000 0000000 00000000227 13774351224 0021255 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'keys');
core-js-3.8.2/packages/core-js/es/array/last-index-of.js 0000664 0000000 0000000 00000000243 13774351224 0022752 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.last-index-of');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'lastIndexOf');
core-js-3.8.2/packages/core-js/es/array/map.js 0000664 0000000 0000000 00000000221 13774351224 0021051 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.map');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'map');
core-js-3.8.2/packages/core-js/es/array/of.js 0000664 0000000 0000000 00000000163 13774351224 0020705 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.of');
var path = require('../../internals/path');
module.exports = path.Array.of;
core-js-3.8.2/packages/core-js/es/array/reduce-right.js 0000664 0000000 0000000 00000000242 13774351224 0022661 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.reduce-right');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'reduceRight');
core-js-3.8.2/packages/core-js/es/array/reduce.js 0000664 0000000 0000000 00000000227 13774351224 0021551 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.reduce');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'reduce');
core-js-3.8.2/packages/core-js/es/array/reverse.js 0000664 0000000 0000000 00000000231 13774351224 0021750 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.reverse');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'reverse');
core-js-3.8.2/packages/core-js/es/array/slice.js 0000664 0000000 0000000 00000000225 13774351224 0021377 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.slice');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'slice');
core-js-3.8.2/packages/core-js/es/array/some.js 0000664 0000000 0000000 00000000223 13774351224 0021241 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.some');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'some');
core-js-3.8.2/packages/core-js/es/array/sort.js 0000664 0000000 0000000 00000000223 13774351224 0021265 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.sort');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'sort');
core-js-3.8.2/packages/core-js/es/array/splice.js 0000664 0000000 0000000 00000000227 13774351224 0021561 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.splice');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'splice');
core-js-3.8.2/packages/core-js/es/array/values.js 0000664 0000000 0000000 00000000231 13774351224 0021574 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'values');
core-js-3.8.2/packages/core-js/es/array/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0021431 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/array/virtual/concat.js 0000664 0000000 0000000 00000000235 13774351224 0023236 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.concat');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').concat;
core-js-3.8.2/packages/core-js/es/array/virtual/copy-within.js 0000664 0000000 0000000 00000000246 13774351224 0024243 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.copy-within');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').copyWithin;
core-js-3.8.2/packages/core-js/es/array/virtual/entries.js 0000664 0000000 0000000 00000000240 13774351224 0023434 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.iterator');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').entries;
core-js-3.8.2/packages/core-js/es/array/virtual/every.js 0000664 0000000 0000000 00000000233 13774351224 0023117 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.every');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').every;
core-js-3.8.2/packages/core-js/es/array/virtual/fill.js 0000664 0000000 0000000 00000000231 13774351224 0022711 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.fill');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').fill;
core-js-3.8.2/packages/core-js/es/array/virtual/filter-out.js 0000664 0000000 0000000 00000000250 13774351224 0024056 0 ustar 00root root 0000000 0000000 require('../../../modules/esnext.array.filter-out');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').filterOut;
core-js-3.8.2/packages/core-js/es/array/virtual/filter.js 0000664 0000000 0000000 00000000235 13774351224 0023254 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.filter');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').filter;
core-js-3.8.2/packages/core-js/es/array/virtual/find-index.js 0000664 0000000 0000000 00000000244 13774351224 0024014 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.find-index');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').findIndex;
core-js-3.8.2/packages/core-js/es/array/virtual/find.js 0000664 0000000 0000000 00000000231 13774351224 0022703 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.find');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').find;
core-js-3.8.2/packages/core-js/es/array/virtual/flat-map.js 0000664 0000000 0000000 00000000333 13774351224 0023467 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.flat-map');
require('../../../modules/es.array.unscopables.flat-map');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').flatMap;
core-js-3.8.2/packages/core-js/es/array/virtual/flat.js 0000664 0000000 0000000 00000000320 13774351224 0022710 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.flat');
require('../../../modules/es.array.unscopables.flat');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').flat;
core-js-3.8.2/packages/core-js/es/array/virtual/for-each.js 0000664 0000000 0000000 00000000240 13774351224 0023447 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.for-each');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').forEach;
core-js-3.8.2/packages/core-js/es/array/virtual/includes.js 0000664 0000000 0000000 00000000241 13774351224 0023572 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.includes');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').includes;
core-js-3.8.2/packages/core-js/es/array/virtual/index-of.js 0000664 0000000 0000000 00000000240 13774351224 0023474 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.index-of');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').indexOf;
core-js-3.8.2/packages/core-js/es/array/virtual/index.js 0000664 0000000 0000000 00000002444 13774351224 0023102 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.concat');
require('../../../modules/es.array.copy-within');
require('../../../modules/es.array.every');
require('../../../modules/es.array.fill');
require('../../../modules/es.array.filter');
require('../../../modules/es.array.find');
require('../../../modules/es.array.find-index');
require('../../../modules/es.array.flat');
require('../../../modules/es.array.flat-map');
require('../../../modules/es.array.for-each');
require('../../../modules/es.array.includes');
require('../../../modules/es.array.index-of');
require('../../../modules/es.array.iterator');
require('../../../modules/es.array.join');
require('../../../modules/es.array.last-index-of');
require('../../../modules/es.array.map');
require('../../../modules/es.array.reduce');
require('../../../modules/es.array.reduce-right');
require('../../../modules/es.array.reverse');
require('../../../modules/es.array.slice');
require('../../../modules/es.array.some');
require('../../../modules/es.array.sort');
require('../../../modules/es.array.species');
require('../../../modules/es.array.splice');
require('../../../modules/es.array.unscopables.flat');
require('../../../modules/es.array.unscopables.flat-map');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array');
core-js-3.8.2/packages/core-js/es/array/virtual/iterator.js 0000664 0000000 0000000 00000000237 13774351224 0023622 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.iterator');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').values;
core-js-3.8.2/packages/core-js/es/array/virtual/join.js 0000664 0000000 0000000 00000000231 13774351224 0022722 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.join');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').join;
core-js-3.8.2/packages/core-js/es/array/virtual/keys.js 0000664 0000000 0000000 00000000235 13774351224 0022742 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.iterator');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').keys;
core-js-3.8.2/packages/core-js/es/array/virtual/last-index-of.js 0000664 0000000 0000000 00000000251 13774351224 0024437 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.last-index-of');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').lastIndexOf;
core-js-3.8.2/packages/core-js/es/array/virtual/map.js 0000664 0000000 0000000 00000000227 13774351224 0022545 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.map');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').map;
core-js-3.8.2/packages/core-js/es/array/virtual/reduce-right.js 0000664 0000000 0000000 00000000250 13774351224 0024346 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.reduce-right');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').reduceRight;
core-js-3.8.2/packages/core-js/es/array/virtual/reduce.js 0000664 0000000 0000000 00000000235 13774351224 0023236 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.reduce');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').reduce;
core-js-3.8.2/packages/core-js/es/array/virtual/reverse.js 0000664 0000000 0000000 00000000237 13774351224 0023444 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.reverse');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').reverse;
core-js-3.8.2/packages/core-js/es/array/virtual/slice.js 0000664 0000000 0000000 00000000233 13774351224 0023064 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.slice');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').slice;
core-js-3.8.2/packages/core-js/es/array/virtual/some.js 0000664 0000000 0000000 00000000231 13774351224 0022726 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.some');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').some;
core-js-3.8.2/packages/core-js/es/array/virtual/sort.js 0000664 0000000 0000000 00000000231 13774351224 0022752 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.sort');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').sort;
core-js-3.8.2/packages/core-js/es/array/virtual/splice.js 0000664 0000000 0000000 00000000235 13774351224 0023246 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.splice');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').splice;
core-js-3.8.2/packages/core-js/es/array/virtual/values.js 0000664 0000000 0000000 00000000237 13774351224 0023270 0 ustar 00root root 0000000 0000000 require('../../../modules/es.array.iterator');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').values;
core-js-3.8.2/packages/core-js/es/data-view/ 0000775 0000000 0000000 00000000000 13774351224 0020506 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/data-view/index.js 0000664 0000000 0000000 00000000242 13774351224 0022151 0 ustar 00root root 0000000 0000000 require('../../modules/es.data-view');
require('../../modules/es.object.to-string');
var path = require('../../internals/path');
module.exports = path.DataView;
core-js-3.8.2/packages/core-js/es/date/ 0000775 0000000 0000000 00000000000 13774351224 0017542 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/date/index.js 0000664 0000000 0000000 00000000444 13774351224 0021211 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.now');
require('../../modules/es.date.to-json');
require('../../modules/es.date.to-iso-string');
require('../../modules/es.date.to-string');
require('../../modules/es.date.to-primitive');
var path = require('../../internals/path');
module.exports = path.Date;
core-js-3.8.2/packages/core-js/es/date/now.js 0000664 0000000 0000000 00000000163 13774351224 0020703 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.now');
var path = require('../../internals/path');
module.exports = path.Date.now;
core-js-3.8.2/packages/core-js/es/date/to-iso-string.js 0000664 0000000 0000000 00000000313 13774351224 0022613 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.to-iso-string');
require('../../modules/es.date.to-json');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Date', 'toISOString');
core-js-3.8.2/packages/core-js/es/date/to-json.js 0000664 0000000 0000000 00000000226 13774351224 0021471 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.to-json');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Date', 'toJSON');
core-js-3.8.2/packages/core-js/es/date/to-primitive.js 0000664 0000000 0000000 00000000277 13774351224 0022536 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.to-primitive');
var toPrimitive = require('../../internals/date-to-primitive');
module.exports = function (it, hint) {
return toPrimitive.call(it, hint);
};
core-js-3.8.2/packages/core-js/es/date/to-string.js 0000664 0000000 0000000 00000000245 13774351224 0022027 0 ustar 00root root 0000000 0000000 require('../../modules/es.date.to-string');
var dateToString = Date.prototype.toString;
module.exports = function toString(it) {
return dateToString.call(it);
};
core-js-3.8.2/packages/core-js/es/function/ 0000775 0000000 0000000 00000000000 13774351224 0020452 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/function/bind.js 0000664 0000000 0000000 00000000231 13774351224 0021720 0 ustar 00root root 0000000 0000000 require('../../modules/es.function.bind');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Function', 'bind');
core-js-3.8.2/packages/core-js/es/function/has-instance.js 0000664 0000000 0000000 00000000263 13774351224 0023366 0 ustar 00root root 0000000 0000000 require('../../modules/es.function.has-instance');
var wellKnownSymbol = require('../../internals/well-known-symbol');
module.exports = Function[wellKnownSymbol('hasInstance')];
core-js-3.8.2/packages/core-js/es/function/index.js 0000664 0000000 0000000 00000000326 13774351224 0022120 0 ustar 00root root 0000000 0000000 require('../../modules/es.function.bind');
require('../../modules/es.function.name');
require('../../modules/es.function.has-instance');
var path = require('../../internals/path');
module.exports = path.Function;
core-js-3.8.2/packages/core-js/es/function/name.js 0000664 0000000 0000000 00000000053 13774351224 0021726 0 ustar 00root root 0000000 0000000 require('../../modules/es.function.name');
core-js-3.8.2/packages/core-js/es/function/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0022140 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/function/virtual/bind.js 0000664 0000000 0000000 00000000237 13774351224 0023414 0 ustar 00root root 0000000 0000000 require('../../../modules/es.function.bind');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Function').bind;
core-js-3.8.2/packages/core-js/es/function/virtual/index.js 0000664 0000000 0000000 00000000232 13774351224 0023602 0 ustar 00root root 0000000 0000000 require('../../../modules/es.function.bind');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Function');
core-js-3.8.2/packages/core-js/es/global-this.js 0000664 0000000 0000000 00000000130 13774351224 0021362 0 ustar 00root root 0000000 0000000 require('../modules/es.global-this');
module.exports = require('../internals/global');
core-js-3.8.2/packages/core-js/es/index.js 0000664 0000000 0000000 00000021614 13774351224 0020276 0 ustar 00root root 0000000 0000000 require('../modules/es.symbol');
require('../modules/es.symbol.async-iterator');
require('../modules/es.symbol.description');
require('../modules/es.symbol.has-instance');
require('../modules/es.symbol.is-concat-spreadable');
require('../modules/es.symbol.iterator');
require('../modules/es.symbol.match');
require('../modules/es.symbol.match-all');
require('../modules/es.symbol.replace');
require('../modules/es.symbol.search');
require('../modules/es.symbol.species');
require('../modules/es.symbol.split');
require('../modules/es.symbol.to-primitive');
require('../modules/es.symbol.to-string-tag');
require('../modules/es.symbol.unscopables');
require('../modules/es.aggregate-error');
require('../modules/es.array.from');
require('../modules/es.array.is-array');
require('../modules/es.array.of');
require('../modules/es.array.concat');
require('../modules/es.array.copy-within');
require('../modules/es.array.every');
require('../modules/es.array.fill');
require('../modules/es.array.filter');
require('../modules/es.array.find');
require('../modules/es.array.find-index');
require('../modules/es.array.flat');
require('../modules/es.array.flat-map');
require('../modules/es.array.for-each');
require('../modules/es.array.includes');
require('../modules/es.array.index-of');
require('../modules/es.array.join');
require('../modules/es.array.last-index-of');
require('../modules/es.array.map');
require('../modules/es.array.reduce');
require('../modules/es.array.reduce-right');
require('../modules/es.array.reverse');
require('../modules/es.array.slice');
require('../modules/es.array.some');
require('../modules/es.array.sort');
require('../modules/es.array.splice');
require('../modules/es.array.species');
require('../modules/es.array.unscopables.flat');
require('../modules/es.array.unscopables.flat-map');
require('../modules/es.array.iterator');
require('../modules/es.function.bind');
require('../modules/es.function.name');
require('../modules/es.function.has-instance');
require('../modules/es.global-this');
require('../modules/es.object.assign');
require('../modules/es.object.create');
require('../modules/es.object.define-property');
require('../modules/es.object.define-properties');
require('../modules/es.object.entries');
require('../modules/es.object.freeze');
require('../modules/es.object.from-entries');
require('../modules/es.object.get-own-property-descriptor');
require('../modules/es.object.get-own-property-descriptors');
require('../modules/es.object.get-own-property-names');
require('../modules/es.object.get-prototype-of');
require('../modules/es.object.is');
require('../modules/es.object.is-extensible');
require('../modules/es.object.is-frozen');
require('../modules/es.object.is-sealed');
require('../modules/es.object.keys');
require('../modules/es.object.prevent-extensions');
require('../modules/es.object.seal');
require('../modules/es.object.set-prototype-of');
require('../modules/es.object.values');
require('../modules/es.object.to-string');
require('../modules/es.object.define-getter');
require('../modules/es.object.define-setter');
require('../modules/es.object.lookup-getter');
require('../modules/es.object.lookup-setter');
require('../modules/es.string.from-code-point');
require('../modules/es.string.raw');
require('../modules/es.string.code-point-at');
require('../modules/es.string.ends-with');
require('../modules/es.string.includes');
require('../modules/es.string.match');
require('../modules/es.string.match-all');
require('../modules/es.string.pad-end');
require('../modules/es.string.pad-start');
require('../modules/es.string.repeat');
require('../modules/es.string.replace');
require('../modules/es.string.search');
require('../modules/es.string.split');
require('../modules/es.string.starts-with');
require('../modules/es.string.trim');
require('../modules/es.string.trim-start');
require('../modules/es.string.trim-end');
require('../modules/es.string.iterator');
require('../modules/es.string.anchor');
require('../modules/es.string.big');
require('../modules/es.string.blink');
require('../modules/es.string.bold');
require('../modules/es.string.fixed');
require('../modules/es.string.fontcolor');
require('../modules/es.string.fontsize');
require('../modules/es.string.italics');
require('../modules/es.string.link');
require('../modules/es.string.small');
require('../modules/es.string.strike');
require('../modules/es.string.sub');
require('../modules/es.string.sup');
require('../modules/es.string.replace-all');
require('../modules/es.regexp.constructor');
require('../modules/es.regexp.exec');
require('../modules/es.regexp.flags');
require('../modules/es.regexp.sticky');
require('../modules/es.regexp.test');
require('../modules/es.regexp.to-string');
require('../modules/es.parse-int');
require('../modules/es.parse-float');
require('../modules/es.number.constructor');
require('../modules/es.number.epsilon');
require('../modules/es.number.is-finite');
require('../modules/es.number.is-integer');
require('../modules/es.number.is-nan');
require('../modules/es.number.is-safe-integer');
require('../modules/es.number.max-safe-integer');
require('../modules/es.number.min-safe-integer');
require('../modules/es.number.parse-float');
require('../modules/es.number.parse-int');
require('../modules/es.number.to-fixed');
require('../modules/es.number.to-precision');
require('../modules/es.math.acosh');
require('../modules/es.math.asinh');
require('../modules/es.math.atanh');
require('../modules/es.math.cbrt');
require('../modules/es.math.clz32');
require('../modules/es.math.cosh');
require('../modules/es.math.expm1');
require('../modules/es.math.fround');
require('../modules/es.math.hypot');
require('../modules/es.math.imul');
require('../modules/es.math.log10');
require('../modules/es.math.log1p');
require('../modules/es.math.log2');
require('../modules/es.math.sign');
require('../modules/es.math.sinh');
require('../modules/es.math.tanh');
require('../modules/es.math.to-string-tag');
require('../modules/es.math.trunc');
require('../modules/es.date.now');
require('../modules/es.date.to-json');
require('../modules/es.date.to-iso-string');
require('../modules/es.date.to-string');
require('../modules/es.date.to-primitive');
require('../modules/es.json.stringify');
require('../modules/es.json.to-string-tag');
require('../modules/es.promise');
require('../modules/es.promise.all-settled');
require('../modules/es.promise.any');
require('../modules/es.promise.finally');
require('../modules/es.map');
require('../modules/es.set');
require('../modules/es.weak-map');
require('../modules/es.weak-set');
require('../modules/es.array-buffer.constructor');
require('../modules/es.array-buffer.is-view');
require('../modules/es.array-buffer.slice');
require('../modules/es.data-view');
require('../modules/es.typed-array.int8-array');
require('../modules/es.typed-array.uint8-array');
require('../modules/es.typed-array.uint8-clamped-array');
require('../modules/es.typed-array.int16-array');
require('../modules/es.typed-array.uint16-array');
require('../modules/es.typed-array.int32-array');
require('../modules/es.typed-array.uint32-array');
require('../modules/es.typed-array.float32-array');
require('../modules/es.typed-array.float64-array');
require('../modules/es.typed-array.from');
require('../modules/es.typed-array.of');
require('../modules/es.typed-array.copy-within');
require('../modules/es.typed-array.every');
require('../modules/es.typed-array.fill');
require('../modules/es.typed-array.filter');
require('../modules/es.typed-array.find');
require('../modules/es.typed-array.find-index');
require('../modules/es.typed-array.for-each');
require('../modules/es.typed-array.includes');
require('../modules/es.typed-array.index-of');
require('../modules/es.typed-array.iterator');
require('../modules/es.typed-array.join');
require('../modules/es.typed-array.last-index-of');
require('../modules/es.typed-array.map');
require('../modules/es.typed-array.reduce');
require('../modules/es.typed-array.reduce-right');
require('../modules/es.typed-array.reverse');
require('../modules/es.typed-array.set');
require('../modules/es.typed-array.slice');
require('../modules/es.typed-array.some');
require('../modules/es.typed-array.sort');
require('../modules/es.typed-array.subarray');
require('../modules/es.typed-array.to-locale-string');
require('../modules/es.typed-array.to-string');
require('../modules/es.reflect.apply');
require('../modules/es.reflect.construct');
require('../modules/es.reflect.define-property');
require('../modules/es.reflect.delete-property');
require('../modules/es.reflect.get');
require('../modules/es.reflect.get-own-property-descriptor');
require('../modules/es.reflect.get-prototype-of');
require('../modules/es.reflect.has');
require('../modules/es.reflect.is-extensible');
require('../modules/es.reflect.own-keys');
require('../modules/es.reflect.prevent-extensions');
require('../modules/es.reflect.set');
require('../modules/es.reflect.set-prototype-of');
require('../modules/es.reflect.to-string-tag');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/es/instance/ 0000775 0000000 0000000 00000000000 13774351224 0020431 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/instance/bind.js 0000664 0000000 0000000 00000000405 13774351224 0021702 0 ustar 00root root 0000000 0000000 var bind = require('../function/virtual/bind');
var FunctionPrototype = Function.prototype;
module.exports = function (it) {
var own = it.bind;
return it === FunctionPrototype || (it instanceof Function && own === FunctionPrototype.bind) ? bind : own;
};
core-js-3.8.2/packages/core-js/es/instance/code-point-at.js 0000664 0000000 0000000 00000000474 13774351224 0023437 0 ustar 00root root 0000000 0000000 var codePointAt = require('../string/virtual/code-point-at');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.codePointAt;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.codePointAt) ? codePointAt : own;
};
core-js-3.8.2/packages/core-js/es/instance/concat.js 0000664 0000000 0000000 00000000375 13774351224 0022243 0 ustar 00root root 0000000 0000000 var concat = require('../array/virtual/concat');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.concat;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.concat) ? concat : own;
};
core-js-3.8.2/packages/core-js/es/instance/copy-within.js 0000664 0000000 0000000 00000000422 13774351224 0023237 0 ustar 00root root 0000000 0000000 var copyWithin = require('../array/virtual/copy-within');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.copyWithin;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.copyWithin) ? copyWithin : own;
};
core-js-3.8.2/packages/core-js/es/instance/ends-with.js 0000664 0000000 0000000 00000000454 13774351224 0022674 0 ustar 00root root 0000000 0000000 var endsWith = require('../string/virtual/ends-with');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.endsWith;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.endsWith) ? endsWith : own;
};
core-js-3.8.2/packages/core-js/es/instance/entries.js 0000664 0000000 0000000 00000000402 13774351224 0022434 0 ustar 00root root 0000000 0000000 var entries = require('../array/virtual/entries');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.entries;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.entries) ? entries : own;
};
core-js-3.8.2/packages/core-js/es/instance/every.js 0000664 0000000 0000000 00000000370 13774351224 0022121 0 ustar 00root root 0000000 0000000 var every = require('../array/virtual/every');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.every;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.every) ? every : own;
};
core-js-3.8.2/packages/core-js/es/instance/fill.js 0000664 0000000 0000000 00000000363 13774351224 0021717 0 ustar 00root root 0000000 0000000 var fill = require('../array/virtual/fill');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.fill;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.fill) ? fill : own;
};
core-js-3.8.2/packages/core-js/es/instance/filter.js 0000664 0000000 0000000 00000000375 13774351224 0022261 0 ustar 00root root 0000000 0000000 var filter = require('../array/virtual/filter');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.filter;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.filter) ? filter : own;
};
core-js-3.8.2/packages/core-js/es/instance/find-index.js 0000664 0000000 0000000 00000000415 13774351224 0023014 0 ustar 00root root 0000000 0000000 var findIndex = require('../array/virtual/find-index');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.findIndex;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.findIndex) ? findIndex : own;
};
core-js-3.8.2/packages/core-js/es/instance/find.js 0000664 0000000 0000000 00000000363 13774351224 0021711 0 ustar 00root root 0000000 0000000 var find = require('../array/virtual/find');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.find;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.find) ? find : own;
};
core-js-3.8.2/packages/core-js/es/instance/flags.js 0000664 0000000 0000000 00000000334 13774351224 0022063 0 ustar 00root root 0000000 0000000 var flags = require('../regexp/flags');
var RegExpPrototype = RegExp.prototype;
module.exports = function (it) {
return (it === RegExpPrototype || it instanceof RegExp) && !('flags' in it) ? flags(it) : it.flags;
};
core-js-3.8.2/packages/core-js/es/instance/flat-map.js 0000664 0000000 0000000 00000000403 13774351224 0022465 0 ustar 00root root 0000000 0000000 var flatMap = require('../array/virtual/flat-map');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.flatMap;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.flatMap) ? flatMap : own;
};
core-js-3.8.2/packages/core-js/es/instance/flat.js 0000664 0000000 0000000 00000000363 13774351224 0021717 0 ustar 00root root 0000000 0000000 var flat = require('../array/virtual/flat');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.flat;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.flat) ? flat : own;
};
core-js-3.8.2/packages/core-js/es/instance/for-each.js 0000664 0000000 0000000 00000000403 13774351224 0022450 0 ustar 00root root 0000000 0000000 var forEach = require('../array/virtual/for-each');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.forEach;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach) ? forEach : own;
};
core-js-3.8.2/packages/core-js/es/instance/includes.js 0000664 0000000 0000000 00000001025 13774351224 0022573 0 ustar 00root root 0000000 0000000 var arrayIncludes = require('../array/virtual/includes');
var stringIncludes = require('../string/virtual/includes');
var ArrayPrototype = Array.prototype;
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.includes;
if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.includes)) return arrayIncludes;
if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.includes)) {
return stringIncludes;
} return own;
};
core-js-3.8.2/packages/core-js/es/instance/index-of.js 0000664 0000000 0000000 00000000403 13774351224 0022475 0 ustar 00root root 0000000 0000000 var indexOf = require('../array/virtual/index-of');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.indexOf;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.indexOf) ? indexOf : own;
};
core-js-3.8.2/packages/core-js/es/instance/keys.js 0000664 0000000 0000000 00000000363 13774351224 0021744 0 ustar 00root root 0000000 0000000 var keys = require('../array/virtual/keys');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.keys;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.keys) ? keys : own;
};
core-js-3.8.2/packages/core-js/es/instance/last-index-of.js 0000664 0000000 0000000 00000000430 13774351224 0023436 0 ustar 00root root 0000000 0000000 var lastIndexOf = require('../array/virtual/last-index-of');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.lastIndexOf;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.lastIndexOf) ? lastIndexOf : own;
};
core-js-3.8.2/packages/core-js/es/instance/map.js 0000664 0000000 0000000 00000000356 13774351224 0021550 0 ustar 00root root 0000000 0000000 var map = require('../array/virtual/map');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.map;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.map) ? map : own;
};
core-js-3.8.2/packages/core-js/es/instance/match-all.js 0000664 0000000 0000000 00000000454 13774351224 0022634 0 ustar 00root root 0000000 0000000 var matchAll = require('../string/virtual/match-all');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.matchAll;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own;
};
core-js-3.8.2/packages/core-js/es/instance/pad-end.js 0000664 0000000 0000000 00000000442 13774351224 0022277 0 ustar 00root root 0000000 0000000 var padEnd = require('../string/virtual/pad-end');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.padEnd;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.padEnd) ? padEnd : own;
};
core-js-3.8.2/packages/core-js/es/instance/pad-start.js 0000664 0000000 0000000 00000000454 13774351224 0022671 0 ustar 00root root 0000000 0000000 var padStart = require('../string/virtual/pad-start');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.padStart;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.padStart) ? padStart : own;
};
core-js-3.8.2/packages/core-js/es/instance/reduce-right.js 0000664 0000000 0000000 00000000427 13774351224 0023354 0 ustar 00root root 0000000 0000000 var reduceRight = require('../array/virtual/reduce-right');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.reduceRight;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduceRight) ? reduceRight : own;
};
core-js-3.8.2/packages/core-js/es/instance/reduce.js 0000664 0000000 0000000 00000000375 13774351224 0022243 0 ustar 00root root 0000000 0000000 var reduce = require('../array/virtual/reduce');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.reduce;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduce) ? reduce : own;
};
core-js-3.8.2/packages/core-js/es/instance/repeat.js 0000664 0000000 0000000 00000000441 13774351224 0022246 0 ustar 00root root 0000000 0000000 var repeat = require('../string/virtual/repeat');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.repeat;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.repeat) ? repeat : own;
};
core-js-3.8.2/packages/core-js/es/instance/replace-all.js 0000664 0000000 0000000 00000000466 13774351224 0023156 0 ustar 00root root 0000000 0000000 var replaceAll = require('../string/virtual/replace-all');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.replaceAll;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.replaceAll) ? replaceAll : own;
};
core-js-3.8.2/packages/core-js/es/instance/reverse.js 0000664 0000000 0000000 00000000402 13774351224 0022436 0 ustar 00root root 0000000 0000000 var reverse = require('../array/virtual/reverse');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.reverse;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reverse) ? reverse : own;
};
core-js-3.8.2/packages/core-js/es/instance/slice.js 0000664 0000000 0000000 00000000370 13774351224 0022066 0 ustar 00root root 0000000 0000000 var slice = require('../array/virtual/slice');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.slice;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.slice) ? slice : own;
};
core-js-3.8.2/packages/core-js/es/instance/some.js 0000664 0000000 0000000 00000000363 13774351224 0021734 0 ustar 00root root 0000000 0000000 var some = require('../array/virtual/some');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.some;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.some) ? some : own;
};
core-js-3.8.2/packages/core-js/es/instance/sort.js 0000664 0000000 0000000 00000000363 13774351224 0021760 0 ustar 00root root 0000000 0000000 var sort = require('../array/virtual/sort');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.sort;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.sort) ? sort : own;
};
core-js-3.8.2/packages/core-js/es/instance/splice.js 0000664 0000000 0000000 00000000375 13774351224 0022253 0 ustar 00root root 0000000 0000000 var splice = require('../array/virtual/splice');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.splice;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.splice) ? splice : own;
};
core-js-3.8.2/packages/core-js/es/instance/starts-with.js 0000664 0000000 0000000 00000000466 13774351224 0023266 0 ustar 00root root 0000000 0000000 var startsWith = require('../string/virtual/starts-with');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.startsWith;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.startsWith) ? startsWith : own;
};
core-js-3.8.2/packages/core-js/es/instance/trim-end.js 0000664 0000000 0000000 00000000447 13774351224 0022513 0 ustar 00root root 0000000 0000000 var trimEnd = require('../string/virtual/trim-end');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.trimEnd;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.trimEnd) ? trimEnd : own;
};
core-js-3.8.2/packages/core-js/es/instance/trim-left.js 0000664 0000000 0000000 00000000454 13774351224 0022675 0 ustar 00root root 0000000 0000000 var trimLeft = require('../string/virtual/trim-left');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.trimLeft;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.trimLeft) ? trimLeft : own;
};
core-js-3.8.2/packages/core-js/es/instance/trim-right.js 0000664 0000000 0000000 00000000461 13774351224 0023056 0 ustar 00root root 0000000 0000000 var trimRight = require('../string/virtual/trim-right');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.trimRight;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.trimRight) ? trimRight : own;
};
core-js-3.8.2/packages/core-js/es/instance/trim-start.js 0000664 0000000 0000000 00000000461 13774351224 0023076 0 ustar 00root root 0000000 0000000 var trimStart = require('../string/virtual/trim-start');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.trimStart;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.trimStart) ? trimStart : own;
};
core-js-3.8.2/packages/core-js/es/instance/trim.js 0000664 0000000 0000000 00000000427 13774351224 0021745 0 ustar 00root root 0000000 0000000 var trim = require('../string/virtual/trim');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.trim;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.trim) ? trim : own;
};
core-js-3.8.2/packages/core-js/es/instance/values.js 0000664 0000000 0000000 00000000375 13774351224 0022273 0 ustar 00root root 0000000 0000000 var values = require('../array/virtual/values');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.values;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.values) ? values : own;
};
core-js-3.8.2/packages/core-js/es/json/ 0000775 0000000 0000000 00000000000 13774351224 0017576 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/json/index.js 0000664 0000000 0000000 00000000324 13774351224 0021242 0 ustar 00root root 0000000 0000000 require('../../modules/es.json.stringify');
require('../../modules/es.json.to-string-tag');
var path = require('../../internals/path');
module.exports = path.JSON || (path.JSON = { stringify: JSON.stringify });
core-js-3.8.2/packages/core-js/es/json/stringify.js 0000664 0000000 0000000 00000000463 13774351224 0022155 0 ustar 00root root 0000000 0000000 require('../../modules/es.json.stringify');
var core = require('../../internals/path');
if (!core.JSON) core.JSON = { stringify: JSON.stringify };
// eslint-disable-next-line no-unused-vars
module.exports = function stringify(it, replacer, space) {
return core.JSON.stringify.apply(null, arguments);
};
core-js-3.8.2/packages/core-js/es/json/to-string-tag.js 0000664 0000000 0000000 00000000112 13774351224 0022625 0 ustar 00root root 0000000 0000000 require('../../modules/es.json.to-string-tag');
module.exports = 'JSON';
core-js-3.8.2/packages/core-js/es/map/ 0000775 0000000 0000000 00000000000 13774351224 0017402 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/map/index.js 0000664 0000000 0000000 00000000373 13774351224 0021052 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Map;
core-js-3.8.2/packages/core-js/es/math/ 0000775 0000000 0000000 00000000000 13774351224 0017556 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/math/acosh.js 0000664 0000000 0000000 00000000167 13774351224 0021215 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.acosh');
var path = require('../../internals/path');
module.exports = path.Math.acosh;
core-js-3.8.2/packages/core-js/es/math/asinh.js 0000664 0000000 0000000 00000000167 13774351224 0021222 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.asinh');
var path = require('../../internals/path');
module.exports = path.Math.asinh;
core-js-3.8.2/packages/core-js/es/math/atanh.js 0000664 0000000 0000000 00000000167 13774351224 0021213 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.atanh');
var path = require('../../internals/path');
module.exports = path.Math.atanh;
core-js-3.8.2/packages/core-js/es/math/cbrt.js 0000664 0000000 0000000 00000000165 13774351224 0021050 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.cbrt');
var path = require('../../internals/path');
module.exports = path.Math.cbrt;
core-js-3.8.2/packages/core-js/es/math/clz32.js 0000664 0000000 0000000 00000000167 13774351224 0021055 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.clz32');
var path = require('../../internals/path');
module.exports = path.Math.clz32;
core-js-3.8.2/packages/core-js/es/math/cosh.js 0000664 0000000 0000000 00000000165 13774351224 0021052 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.cosh');
var path = require('../../internals/path');
module.exports = path.Math.cosh;
core-js-3.8.2/packages/core-js/es/math/expm1.js 0000664 0000000 0000000 00000000167 13774351224 0021152 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.expm1');
var path = require('../../internals/path');
module.exports = path.Math.expm1;
core-js-3.8.2/packages/core-js/es/math/fround.js 0000664 0000000 0000000 00000000171 13774351224 0021410 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.fround');
var path = require('../../internals/path');
module.exports = path.Math.fround;
core-js-3.8.2/packages/core-js/es/math/hypot.js 0000664 0000000 0000000 00000000167 13774351224 0021263 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.hypot');
var path = require('../../internals/path');
module.exports = path.Math.hypot;
core-js-3.8.2/packages/core-js/es/math/imul.js 0000664 0000000 0000000 00000000165 13774351224 0021064 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.imul');
var path = require('../../internals/path');
module.exports = path.Math.imul;
core-js-3.8.2/packages/core-js/es/math/index.js 0000664 0000000 0000000 00000001433 13774351224 0021224 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.acosh');
require('../../modules/es.math.asinh');
require('../../modules/es.math.atanh');
require('../../modules/es.math.cbrt');
require('../../modules/es.math.clz32');
require('../../modules/es.math.cosh');
require('../../modules/es.math.expm1');
require('../../modules/es.math.fround');
require('../../modules/es.math.hypot');
require('../../modules/es.math.imul');
require('../../modules/es.math.log10');
require('../../modules/es.math.log1p');
require('../../modules/es.math.log2');
require('../../modules/es.math.sign');
require('../../modules/es.math.sinh');
require('../../modules/es.math.tanh');
require('../../modules/es.math.to-string-tag');
require('../../modules/es.math.trunc');
var path = require('../../internals/path');
module.exports = path.Math;
core-js-3.8.2/packages/core-js/es/math/log10.js 0000664 0000000 0000000 00000000167 13774351224 0021042 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.log10');
var path = require('../../internals/path');
module.exports = path.Math.log10;
core-js-3.8.2/packages/core-js/es/math/log1p.js 0000664 0000000 0000000 00000000167 13774351224 0021142 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.log1p');
var path = require('../../internals/path');
module.exports = path.Math.log1p;
core-js-3.8.2/packages/core-js/es/math/log2.js 0000664 0000000 0000000 00000000165 13774351224 0020761 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.log2');
var path = require('../../internals/path');
module.exports = path.Math.log2;
core-js-3.8.2/packages/core-js/es/math/sign.js 0000664 0000000 0000000 00000000165 13774351224 0021056 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.sign');
var path = require('../../internals/path');
module.exports = path.Math.sign;
core-js-3.8.2/packages/core-js/es/math/sinh.js 0000664 0000000 0000000 00000000165 13774351224 0021057 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.sinh');
var path = require('../../internals/path');
module.exports = path.Math.sinh;
core-js-3.8.2/packages/core-js/es/math/tanh.js 0000664 0000000 0000000 00000000165 13774351224 0021050 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.tanh');
var path = require('../../internals/path');
module.exports = path.Math.tanh;
core-js-3.8.2/packages/core-js/es/math/to-string-tag.js 0000664 0000000 0000000 00000000112 13774351224 0022605 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.to-string-tag');
module.exports = 'Math';
core-js-3.8.2/packages/core-js/es/math/trunc.js 0000664 0000000 0000000 00000000167 13774351224 0021253 0 ustar 00root root 0000000 0000000 require('../../modules/es.math.trunc');
var path = require('../../internals/path');
module.exports = path.Math.trunc;
core-js-3.8.2/packages/core-js/es/number/ 0000775 0000000 0000000 00000000000 13774351224 0020115 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/number/constructor.js 0000664 0000000 0000000 00000000112 13774351224 0023032 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.constructor');
module.exports = Number;
core-js-3.8.2/packages/core-js/es/number/epsilon.js 0000664 0000000 0000000 00000000120 13774351224 0022115 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.epsilon');
module.exports = Math.pow(2, -52);
core-js-3.8.2/packages/core-js/es/number/index.js 0000664 0000000 0000000 00000001211 13774351224 0021555 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.constructor');
require('../../modules/es.number.epsilon');
require('../../modules/es.number.is-finite');
require('../../modules/es.number.is-integer');
require('../../modules/es.number.is-nan');
require('../../modules/es.number.is-safe-integer');
require('../../modules/es.number.max-safe-integer');
require('../../modules/es.number.min-safe-integer');
require('../../modules/es.number.parse-float');
require('../../modules/es.number.parse-int');
require('../../modules/es.number.to-fixed');
require('../../modules/es.number.to-precision');
var path = require('../../internals/path');
module.exports = path.Number;
core-js-3.8.2/packages/core-js/es/number/is-finite.js 0000664 0000000 0000000 00000000202 13774351224 0022334 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.is-finite');
var path = require('../../internals/path');
module.exports = path.Number.isFinite;
core-js-3.8.2/packages/core-js/es/number/is-integer.js 0000664 0000000 0000000 00000000204 13774351224 0022515 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.is-integer');
var path = require('../../internals/path');
module.exports = path.Number.isInteger;
core-js-3.8.2/packages/core-js/es/number/is-nan.js 0000664 0000000 0000000 00000000174 13774351224 0021642 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.is-nan');
var path = require('../../internals/path');
module.exports = path.Number.isNaN;
core-js-3.8.2/packages/core-js/es/number/is-safe-integer.js 0000664 0000000 0000000 00000000215 13774351224 0023433 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.is-safe-integer');
var path = require('../../internals/path');
module.exports = path.Number.isSafeInteger;
core-js-3.8.2/packages/core-js/es/number/max-safe-integer.js 0000664 0000000 0000000 00000000131 13774351224 0023602 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.max-safe-integer');
module.exports = 0x1FFFFFFFFFFFFF;
core-js-3.8.2/packages/core-js/es/number/min-safe-integer.js 0000664 0000000 0000000 00000000132 13774351224 0023601 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.min-safe-integer');
module.exports = -0x1FFFFFFFFFFFFF;
core-js-3.8.2/packages/core-js/es/number/parse-float.js 0000664 0000000 0000000 00000000206 13774351224 0022666 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.parse-float');
var path = require('../../internals/path');
module.exports = path.Number.parseFloat;
core-js-3.8.2/packages/core-js/es/number/parse-int.js 0000664 0000000 0000000 00000000202 13774351224 0022347 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.parse-int');
var path = require('../../internals/path');
module.exports = path.Number.parseInt;
core-js-3.8.2/packages/core-js/es/number/to-fixed.js 0000664 0000000 0000000 00000000234 13774351224 0022171 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.to-fixed');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Number', 'toFixed');
core-js-3.8.2/packages/core-js/es/number/to-precision.js 0000664 0000000 0000000 00000000244 13774351224 0023066 0 ustar 00root root 0000000 0000000 require('../../modules/es.number.to-precision');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Number', 'toPrecision');
core-js-3.8.2/packages/core-js/es/number/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0021603 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/number/virtual/index.js 0000664 0000000 0000000 00000000316 13774351224 0023250 0 ustar 00root root 0000000 0000000 require('../../../modules/es.number.to-fixed');
require('../../../modules/es.number.to-precision');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Number');
core-js-3.8.2/packages/core-js/es/number/virtual/to-fixed.js 0000664 0000000 0000000 00000000242 13774351224 0023656 0 ustar 00root root 0000000 0000000 require('../../../modules/es.number.to-fixed');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Number').toFixed;
core-js-3.8.2/packages/core-js/es/number/virtual/to-precision.js 0000664 0000000 0000000 00000000252 13774351224 0024553 0 ustar 00root root 0000000 0000000 require('../../../modules/es.number.to-precision');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Number').toPrecision;
core-js-3.8.2/packages/core-js/es/object/ 0000775 0000000 0000000 00000000000 13774351224 0020073 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/object/assign.js 0000664 0000000 0000000 00000000175 13774351224 0021720 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.assign');
var path = require('../../internals/path');
module.exports = path.Object.assign;
core-js-3.8.2/packages/core-js/es/object/create.js 0000664 0000000 0000000 00000000275 13774351224 0021700 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.create');
var path = require('../../internals/path');
var Object = path.Object;
module.exports = function create(P, D) {
return Object.create(P, D);
};
core-js-3.8.2/packages/core-js/es/object/define-getter.js 0000664 0000000 0000000 00000000252 13774351224 0023152 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.define-getter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Object', '__defineGetter__');
core-js-3.8.2/packages/core-js/es/object/define-properties.js 0000664 0000000 0000000 00000000464 13774351224 0024061 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.define-properties');
var path = require('../../internals/path');
var Object = path.Object;
var defineProperties = module.exports = function defineProperties(T, D) {
return Object.defineProperties(T, D);
};
if (Object.defineProperties.sham) defineProperties.sham = true;
core-js-3.8.2/packages/core-js/es/object/define-property.js 0000664 0000000 0000000 00000000472 13774351224 0023550 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.define-property');
var path = require('../../internals/path');
var Object = path.Object;
var defineProperty = module.exports = function defineProperty(it, key, desc) {
return Object.defineProperty(it, key, desc);
};
if (Object.defineProperty.sham) defineProperty.sham = true;
core-js-3.8.2/packages/core-js/es/object/define-setter.js 0000664 0000000 0000000 00000000252 13774351224 0023166 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.define-setter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Object', '__defineSetter__');
core-js-3.8.2/packages/core-js/es/object/entries.js 0000664 0000000 0000000 00000000177 13774351224 0022107 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.entries');
var path = require('../../internals/path');
module.exports = path.Object.entries;
core-js-3.8.2/packages/core-js/es/object/freeze.js 0000664 0000000 0000000 00000000175 13774351224 0021714 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.freeze');
var path = require('../../internals/path');
module.exports = path.Object.freeze;
core-js-3.8.2/packages/core-js/es/object/from-entries.js 0000664 0000000 0000000 00000000264 13774351224 0023045 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.iterator');
require('../../modules/es.object.from-entries');
var path = require('../../internals/path');
module.exports = path.Object.fromEntries;
core-js-3.8.2/packages/core-js/es/object/get-own-property-descriptor.js 0000664 0000000 0000000 00000000554 13774351224 0026053 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.get-own-property-descriptor');
var path = require('../../internals/path');
var Object = path.Object;
var getOwnPropertyDescriptor = module.exports = function getOwnPropertyDescriptor(it, key) {
return Object.getOwnPropertyDescriptor(it, key);
};
if (Object.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor.sham = true;
core-js-3.8.2/packages/core-js/es/object/get-own-property-descriptors.js 0000664 0000000 0000000 00000000246 13774351224 0026234 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.get-own-property-descriptors');
var path = require('../../internals/path');
module.exports = path.Object.getOwnPropertyDescriptors;
core-js-3.8.2/packages/core-js/es/object/get-own-property-names.js 0000664 0000000 0000000 00000000343 13774351224 0024774 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.get-own-property-names');
var path = require('../../internals/path');
var Object = path.Object;
module.exports = function getOwnPropertyNames(it) {
return Object.getOwnPropertyNames(it);
};
core-js-3.8.2/packages/core-js/es/object/get-own-property-symbols.js 0000664 0000000 0000000 00000000205 13774351224 0025356 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol');
var path = require('../../internals/path');
module.exports = path.Object.getOwnPropertySymbols;
core-js-3.8.2/packages/core-js/es/object/get-prototype-of.js 0000664 0000000 0000000 00000000217 13774351224 0023655 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.get-prototype-of');
var path = require('../../internals/path');
module.exports = path.Object.getPrototypeOf;
core-js-3.8.2/packages/core-js/es/object/index.js 0000664 0000000 0000000 00000002717 13774351224 0021547 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol');
require('../../modules/es.object.assign');
require('../../modules/es.object.create');
require('../../modules/es.object.define-property');
require('../../modules/es.object.define-properties');
require('../../modules/es.object.entries');
require('../../modules/es.object.freeze');
require('../../modules/es.object.from-entries');
require('../../modules/es.object.get-own-property-descriptor');
require('../../modules/es.object.get-own-property-descriptors');
require('../../modules/es.object.get-own-property-names');
require('../../modules/es.object.get-prototype-of');
require('../../modules/es.object.is');
require('../../modules/es.object.is-extensible');
require('../../modules/es.object.is-frozen');
require('../../modules/es.object.is-sealed');
require('../../modules/es.object.keys');
require('../../modules/es.object.prevent-extensions');
require('../../modules/es.object.seal');
require('../../modules/es.object.set-prototype-of');
require('../../modules/es.object.values');
require('../../modules/es.object.to-string');
require('../../modules/es.object.define-getter');
require('../../modules/es.object.define-setter');
require('../../modules/es.object.lookup-getter');
require('../../modules/es.object.lookup-setter');
require('../../modules/es.json.to-string-tag');
require('../../modules/es.math.to-string-tag');
require('../../modules/es.reflect.to-string-tag');
var path = require('../../internals/path');
module.exports = path.Object;
core-js-3.8.2/packages/core-js/es/object/is-extensible.js 0000664 0000000 0000000 00000000212 13774351224 0023177 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.is-extensible');
var path = require('../../internals/path');
module.exports = path.Object.isExtensible;
core-js-3.8.2/packages/core-js/es/object/is-frozen.js 0000664 0000000 0000000 00000000202 13774351224 0022337 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.is-frozen');
var path = require('../../internals/path');
module.exports = path.Object.isFrozen;
core-js-3.8.2/packages/core-js/es/object/is-sealed.js 0000664 0000000 0000000 00000000202 13774351224 0022271 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.is-sealed');
var path = require('../../internals/path');
module.exports = path.Object.isSealed;
core-js-3.8.2/packages/core-js/es/object/is.js 0000664 0000000 0000000 00000000165 13774351224 0021046 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.is');
var path = require('../../internals/path');
module.exports = path.Object.is;
core-js-3.8.2/packages/core-js/es/object/keys.js 0000664 0000000 0000000 00000000171 13774351224 0021403 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.keys');
var path = require('../../internals/path');
module.exports = path.Object.keys;
core-js-3.8.2/packages/core-js/es/object/lookup-getter.js 0000664 0000000 0000000 00000000252 13774351224 0023231 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.lookup-setter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Object', '__lookupGetter__');
core-js-3.8.2/packages/core-js/es/object/lookup-setter.js 0000664 0000000 0000000 00000000252 13774351224 0023245 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.lookup-setter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Object', '__lookupSetter__');
core-js-3.8.2/packages/core-js/es/object/prevent-extensions.js 0000664 0000000 0000000 00000000224 13774351224 0024307 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.prevent-extensions');
var path = require('../../internals/path');
module.exports = path.Object.preventExtensions;
core-js-3.8.2/packages/core-js/es/object/seal.js 0000664 0000000 0000000 00000000171 13774351224 0021354 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.seal');
var path = require('../../internals/path');
module.exports = path.Object.seal;
core-js-3.8.2/packages/core-js/es/object/set-prototype-of.js 0000664 0000000 0000000 00000000217 13774351224 0023671 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.set-prototype-of');
var path = require('../../internals/path');
module.exports = path.Object.setPrototypeOf;
core-js-3.8.2/packages/core-js/es/object/to-string.js 0000664 0000000 0000000 00000000501 13774351224 0022353 0 ustar 00root root 0000000 0000000 require('../../modules/es.json.to-string-tag');
require('../../modules/es.math.to-string-tag');
require('../../modules/es.object.to-string');
require('../../modules/es.reflect.to-string-tag');
var classof = require('../../internals/classof');
module.exports = function (it) {
return '[object ' + classof(it) + ']';
};
core-js-3.8.2/packages/core-js/es/object/values.js 0000664 0000000 0000000 00000000175 13774351224 0021733 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.values');
var path = require('../../internals/path');
module.exports = path.Object.values;
core-js-3.8.2/packages/core-js/es/parse-float.js 0000664 0000000 0000000 00000000162 13774351224 0021377 0 ustar 00root root 0000000 0000000 require('../modules/es.parse-float');
var path = require('../internals/path');
module.exports = path.parseFloat;
core-js-3.8.2/packages/core-js/es/parse-int.js 0000664 0000000 0000000 00000000156 13774351224 0021067 0 ustar 00root root 0000000 0000000 require('../modules/es.parse-int');
var path = require('../internals/path');
module.exports = path.parseInt;
core-js-3.8.2/packages/core-js/es/promise/ 0000775 0000000 0000000 00000000000 13774351224 0020303 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/promise/all-settled.js 0000664 0000000 0000000 00000000676 13774351224 0023064 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.promise');
require('../../modules/es.promise.all-settled');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Promise = path.Promise;
var $allSettled = Promise.allSettled;
module.exports = function allSettled(iterable) {
return $allSettled.call(typeof this === 'function' ? this : Promise, iterable);
};
core-js-3.8.2/packages/core-js/es/promise/any.js 0000664 0000000 0000000 00000000707 13774351224 0021434 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.aggregate-error');
require('../../modules/es.promise');
require('../../modules/es.promise.any');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Promise = path.Promise;
var $any = Promise.any;
module.exports = function any(iterable) {
return $any.call(typeof this === 'function' ? this : Promise, iterable);
};
core-js-3.8.2/packages/core-js/es/promise/finally.js 0000664 0000000 0000000 00000000302 13774351224 0022272 0 ustar 00root root 0000000 0000000 require('../../modules/es.promise');
require('../../modules/es.promise.finally');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Promise', 'finally');
core-js-3.8.2/packages/core-js/es/promise/index.js 0000664 0000000 0000000 00000000667 13774351224 0021761 0 ustar 00root root 0000000 0000000 require('../../modules/es.aggregate-error');
require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.promise.all-settled');
require('../../modules/es.promise.any');
require('../../modules/es.promise.finally');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Promise;
core-js-3.8.2/packages/core-js/es/reflect/ 0000775 0000000 0000000 00000000000 13774351224 0020251 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/reflect/apply.js 0000664 0000000 0000000 00000000175 13774351224 0021737 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.apply');
var path = require('../../internals/path');
module.exports = path.Reflect.apply;
core-js-3.8.2/packages/core-js/es/reflect/construct.js 0000664 0000000 0000000 00000000205 13774351224 0022630 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.construct');
var path = require('../../internals/path');
module.exports = path.Reflect.construct;
core-js-3.8.2/packages/core-js/es/reflect/define-property.js 0000664 0000000 0000000 00000000220 13774351224 0023715 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.define-property');
var path = require('../../internals/path');
module.exports = path.Reflect.defineProperty;
core-js-3.8.2/packages/core-js/es/reflect/delete-property.js 0000664 0000000 0000000 00000000220 13774351224 0023725 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.delete-property');
var path = require('../../internals/path');
module.exports = path.Reflect.deleteProperty;
core-js-3.8.2/packages/core-js/es/reflect/get-own-property-descriptor.js 0000664 0000000 0000000 00000000246 13774351224 0026227 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.get-own-property-descriptor');
var path = require('../../internals/path');
module.exports = path.Reflect.getOwnPropertyDescriptor;
core-js-3.8.2/packages/core-js/es/reflect/get-prototype-of.js 0000664 0000000 0000000 00000000221 13774351224 0024026 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.get-prototype-of');
var path = require('../../internals/path');
module.exports = path.Reflect.getPrototypeOf;
core-js-3.8.2/packages/core-js/es/reflect/get.js 0000664 0000000 0000000 00000000171 13774351224 0021365 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.get');
var path = require('../../internals/path');
module.exports = path.Reflect.get;
core-js-3.8.2/packages/core-js/es/reflect/has.js 0000664 0000000 0000000 00000000171 13774351224 0021361 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.has');
var path = require('../../internals/path');
module.exports = path.Reflect.has;
core-js-3.8.2/packages/core-js/es/reflect/index.js 0000664 0000000 0000000 00000001404 13774351224 0021715 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.apply');
require('../../modules/es.reflect.construct');
require('../../modules/es.reflect.define-property');
require('../../modules/es.reflect.delete-property');
require('../../modules/es.reflect.get');
require('../../modules/es.reflect.get-own-property-descriptor');
require('../../modules/es.reflect.get-prototype-of');
require('../../modules/es.reflect.has');
require('../../modules/es.reflect.is-extensible');
require('../../modules/es.reflect.own-keys');
require('../../modules/es.reflect.prevent-extensions');
require('../../modules/es.reflect.set');
require('../../modules/es.reflect.set-prototype-of');
require('../../modules/es.reflect.to-string-tag');
var path = require('../../internals/path');
module.exports = path.Reflect;
core-js-3.8.2/packages/core-js/es/reflect/is-extensible.js 0000664 0000000 0000000 00000000214 13774351224 0023357 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.is-extensible');
var path = require('../../internals/path');
module.exports = path.Reflect.isExtensible;
core-js-3.8.2/packages/core-js/es/reflect/own-keys.js 0000664 0000000 0000000 00000000202 13774351224 0022355 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.own-keys');
var path = require('../../internals/path');
module.exports = path.Reflect.ownKeys;
core-js-3.8.2/packages/core-js/es/reflect/prevent-extensions.js 0000664 0000000 0000000 00000000226 13774351224 0024467 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.prevent-extensions');
var path = require('../../internals/path');
module.exports = path.Reflect.preventExtensions;
core-js-3.8.2/packages/core-js/es/reflect/set-prototype-of.js 0000664 0000000 0000000 00000000221 13774351224 0024042 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.set-prototype-of');
var path = require('../../internals/path');
module.exports = path.Reflect.setPrototypeOf;
core-js-3.8.2/packages/core-js/es/reflect/set.js 0000664 0000000 0000000 00000000171 13774351224 0021401 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.set');
var path = require('../../internals/path');
module.exports = path.Reflect.set;
core-js-3.8.2/packages/core-js/es/reflect/to-string-tag.js 0000664 0000000 0000000 00000000120 13774351224 0023277 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.to-string-tag');
module.exports = 'Reflect';
core-js-3.8.2/packages/core-js/es/regexp/ 0000775 0000000 0000000 00000000000 13774351224 0020117 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/regexp/constructor.js 0000664 0000000 0000000 00000000112 13774351224 0023034 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.constructor');
module.exports = RegExp;
core-js-3.8.2/packages/core-js/es/regexp/flags.js 0000664 0000000 0000000 00000000235 13774351224 0021551 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.flags');
var flags = require('../../internals/regexp-flags');
module.exports = function (it) {
return flags.call(it);
};
core-js-3.8.2/packages/core-js/es/regexp/index.js 0000664 0000000 0000000 00000000660 13774351224 0021566 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.constructor');
require('../../modules/es.regexp.to-string');
require('../../modules/es.regexp.exec');
require('../../modules/es.regexp.flags');
require('../../modules/es.regexp.sticky');
require('../../modules/es.regexp.test');
require('../../modules/es.string.match');
require('../../modules/es.string.replace');
require('../../modules/es.string.search');
require('../../modules/es.string.split');
core-js-3.8.2/packages/core-js/es/regexp/match.js 0000664 0000000 0000000 00000000357 13774351224 0021556 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.match');
var wellKnownSymbol = require('../../internals/well-known-symbol');
var MATCH = wellKnownSymbol('match');
module.exports = function (it, str) {
return RegExp.prototype[MATCH].call(it, str);
};
core-js-3.8.2/packages/core-js/es/regexp/replace.js 0000664 0000000 0000000 00000000413 13774351224 0022066 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.replace');
var wellKnownSymbol = require('../../internals/well-known-symbol');
var REPLACE = wellKnownSymbol('replace');
module.exports = function (it, str, replacer) {
return RegExp.prototype[REPLACE].call(it, str, replacer);
};
core-js-3.8.2/packages/core-js/es/regexp/search.js 0000664 0000000 0000000 00000000363 13774351224 0021724 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.search');
var wellKnownSymbol = require('../../internals/well-known-symbol');
var SEARCH = wellKnownSymbol('search');
module.exports = function (it, str) {
return RegExp.prototype[SEARCH].call(it, str);
};
core-js-3.8.2/packages/core-js/es/regexp/split.js 0000664 0000000 0000000 00000000375 13774351224 0021615 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.split');
var wellKnownSymbol = require('../../internals/well-known-symbol');
var SPLIT = wellKnownSymbol('split');
module.exports = function (it, str, limit) {
return RegExp.prototype[SPLIT].call(it, str, limit);
};
core-js-3.8.2/packages/core-js/es/regexp/sticky.js 0000664 0000000 0000000 00000000144 13774351224 0021762 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.sticky');
module.exports = function (it) {
return it.sticky;
};
core-js-3.8.2/packages/core-js/es/regexp/test.js 0000664 0000000 0000000 00000000260 13774351224 0021432 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.regexp.test');
module.exports = function (re, string) {
return RegExp.prototype.test.call(re, string);
};
core-js-3.8.2/packages/core-js/es/regexp/to-string.js 0000664 0000000 0000000 00000000210 13774351224 0022374 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.to-string');
module.exports = function toString(it) {
return RegExp.prototype.toString.call(it);
};
core-js-3.8.2/packages/core-js/es/set/ 0000775 0000000 0000000 00000000000 13774351224 0017420 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/set/index.js 0000664 0000000 0000000 00000000373 13774351224 0021070 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Set;
core-js-3.8.2/packages/core-js/es/string/ 0000775 0000000 0000000 00000000000 13774351224 0020133 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/string/anchor.js 0000664 0000000 0000000 00000000231 13774351224 0021737 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.anchor');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'anchor');
core-js-3.8.2/packages/core-js/es/string/big.js 0000664 0000000 0000000 00000000223 13774351224 0021227 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.big');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'big');
core-js-3.8.2/packages/core-js/es/string/blink.js 0000664 0000000 0000000 00000000227 13774351224 0021571 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.blink');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'blink');
core-js-3.8.2/packages/core-js/es/string/bold.js 0000664 0000000 0000000 00000000225 13774351224 0021410 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.bold');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'bold');
core-js-3.8.2/packages/core-js/es/string/code-point-at.js 0000664 0000000 0000000 00000000245 13774351224 0023135 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.code-point-at');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'codePointAt');
core-js-3.8.2/packages/core-js/es/string/ends-with.js 0000664 0000000 0000000 00000000236 13774351224 0022374 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.ends-with');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'endsWith');
core-js-3.8.2/packages/core-js/es/string/fixed.js 0000664 0000000 0000000 00000000227 13774351224 0021571 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.fixed');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'fixed');
core-js-3.8.2/packages/core-js/es/string/fontcolor.js 0000664 0000000 0000000 00000000237 13774351224 0022500 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.fontcolor');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'fontcolor');
core-js-3.8.2/packages/core-js/es/string/fontsize.js 0000664 0000000 0000000 00000000235 13774351224 0022332 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.fontsize');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'fontsize');
core-js-3.8.2/packages/core-js/es/string/from-code-point.js 0000664 0000000 0000000 00000000215 13774351224 0023471 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.from-code-point');
var path = require('../../internals/path');
module.exports = path.String.fromCodePoint;
core-js-3.8.2/packages/core-js/es/string/includes.js 0000664 0000000 0000000 00000000235 13774351224 0022277 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.includes');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'includes');
core-js-3.8.2/packages/core-js/es/string/index.js 0000664 0000000 0000000 00000002762 13774351224 0021607 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.string.from-code-point');
require('../../modules/es.string.raw');
require('../../modules/es.string.code-point-at');
require('../../modules/es.string.ends-with');
require('../../modules/es.string.includes');
require('../../modules/es.string.match');
require('../../modules/es.string.match-all');
require('../../modules/es.string.pad-end');
require('../../modules/es.string.pad-start');
require('../../modules/es.string.repeat');
require('../../modules/es.string.replace');
require('../../modules/es.string.replace-all');
require('../../modules/es.string.search');
require('../../modules/es.string.split');
require('../../modules/es.string.starts-with');
require('../../modules/es.string.trim');
require('../../modules/es.string.trim-start');
require('../../modules/es.string.trim-end');
require('../../modules/es.string.iterator');
require('../../modules/es.string.anchor');
require('../../modules/es.string.big');
require('../../modules/es.string.blink');
require('../../modules/es.string.bold');
require('../../modules/es.string.fixed');
require('../../modules/es.string.fontcolor');
require('../../modules/es.string.fontsize');
require('../../modules/es.string.italics');
require('../../modules/es.string.link');
require('../../modules/es.string.small');
require('../../modules/es.string.strike');
require('../../modules/es.string.sub');
require('../../modules/es.string.sup');
var path = require('../../internals/path');
module.exports = path.String;
core-js-3.8.2/packages/core-js/es/string/italics.js 0000664 0000000 0000000 00000000233 13774351224 0022117 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.italics');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'italics');
core-js-3.8.2/packages/core-js/es/string/iterator.js 0000664 0000000 0000000 00000000330 13774351224 0022316 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.iterator');
var Iterators = require('../../internals/iterators');
var getStringIterator = Iterators.String;
module.exports = function (it) {
return getStringIterator.call(it);
};
core-js-3.8.2/packages/core-js/es/string/link.js 0000664 0000000 0000000 00000000225 13774351224 0021425 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.link');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'link');
core-js-3.8.2/packages/core-js/es/string/match-all.js 0000664 0000000 0000000 00000000236 13774351224 0022334 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.match-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'matchAll');
core-js-3.8.2/packages/core-js/es/string/match.js 0000664 0000000 0000000 00000000300 13774351224 0021556 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.string.match');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'match');
core-js-3.8.2/packages/core-js/es/string/pad-end.js 0000664 0000000 0000000 00000000232 13774351224 0021776 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.pad-end');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'padEnd');
core-js-3.8.2/packages/core-js/es/string/pad-start.js 0000664 0000000 0000000 00000000236 13774351224 0022371 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.pad-start');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'padStart');
core-js-3.8.2/packages/core-js/es/string/raw.js 0000664 0000000 0000000 00000000167 13774351224 0021266 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.raw');
var path = require('../../internals/path');
module.exports = path.String.raw;
core-js-3.8.2/packages/core-js/es/string/repeat.js 0000664 0000000 0000000 00000000231 13774351224 0021745 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.repeat');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'repeat');
core-js-3.8.2/packages/core-js/es/string/replace-all.js 0000664 0000000 0000000 00000000242 13774351224 0022650 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.replace-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'replaceAll');
core-js-3.8.2/packages/core-js/es/string/replace.js 0000664 0000000 0000000 00000000304 13774351224 0022101 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.string.replace');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'replace');
core-js-3.8.2/packages/core-js/es/string/search.js 0000664 0000000 0000000 00000000302 13774351224 0021731 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.string.search');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'search');
core-js-3.8.2/packages/core-js/es/string/small.js 0000664 0000000 0000000 00000000227 13774351224 0021602 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.small');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'small');
core-js-3.8.2/packages/core-js/es/string/split.js 0000664 0000000 0000000 00000000300 13774351224 0021615 0 ustar 00root root 0000000 0000000 require('../../modules/es.regexp.exec');
require('../../modules/es.string.split');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'split');
core-js-3.8.2/packages/core-js/es/string/starts-with.js 0000664 0000000 0000000 00000000242 13774351224 0022760 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.starts-with');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'startsWith');
core-js-3.8.2/packages/core-js/es/string/strike.js 0000664 0000000 0000000 00000000231 13774351224 0021766 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.strike');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'strike');
core-js-3.8.2/packages/core-js/es/string/sub.js 0000664 0000000 0000000 00000000223 13774351224 0021257 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.sub');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'sub');
core-js-3.8.2/packages/core-js/es/string/sup.js 0000664 0000000 0000000 00000000223 13774351224 0021275 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.sup');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'sup');
core-js-3.8.2/packages/core-js/es/string/trim-end.js 0000664 0000000 0000000 00000000236 13774351224 0022211 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.trim-end');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'trimRight');
core-js-3.8.2/packages/core-js/es/string/trim-left.js 0000664 0000000 0000000 00000000237 13774351224 0022376 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.trim-start');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'trimLeft');
core-js-3.8.2/packages/core-js/es/string/trim-right.js 0000664 0000000 0000000 00000000236 13774351224 0022560 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.trim-end');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'trimRight');
core-js-3.8.2/packages/core-js/es/string/trim-start.js 0000664 0000000 0000000 00000000237 13774351224 0022601 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.trim-start');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'trimLeft');
core-js-3.8.2/packages/core-js/es/string/trim.js 0000664 0000000 0000000 00000000225 13774351224 0021443 0 ustar 00root root 0000000 0000000 require('../../modules/es.string.trim');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'trim');
core-js-3.8.2/packages/core-js/es/string/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0021621 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/string/virtual/anchor.js 0000664 0000000 0000000 00000000237 13774351224 0023433 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.anchor');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').anchor;
core-js-3.8.2/packages/core-js/es/string/virtual/big.js 0000664 0000000 0000000 00000000231 13774351224 0022714 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.big');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').big;
core-js-3.8.2/packages/core-js/es/string/virtual/blink.js 0000664 0000000 0000000 00000000235 13774351224 0023256 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.blink');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').blink;
core-js-3.8.2/packages/core-js/es/string/virtual/bold.js 0000664 0000000 0000000 00000000233 13774351224 0023075 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.bold');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').bold;
core-js-3.8.2/packages/core-js/es/string/virtual/code-point-at.js 0000664 0000000 0000000 00000000253 13774351224 0024622 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.code-point-at');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').codePointAt;
core-js-3.8.2/packages/core-js/es/string/virtual/ends-with.js 0000664 0000000 0000000 00000000244 13774351224 0024061 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.ends-with');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').endsWith;
core-js-3.8.2/packages/core-js/es/string/virtual/fixed.js 0000664 0000000 0000000 00000000235 13774351224 0023256 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.fixed');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').fixed;
core-js-3.8.2/packages/core-js/es/string/virtual/fontcolor.js 0000664 0000000 0000000 00000000245 13774351224 0024165 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.fontcolor');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').fontcolor;
core-js-3.8.2/packages/core-js/es/string/virtual/fontsize.js 0000664 0000000 0000000 00000000243 13774351224 0024017 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.fontsize');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').fontsize;
core-js-3.8.2/packages/core-js/es/string/virtual/includes.js 0000664 0000000 0000000 00000000243 13774351224 0023764 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.includes');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').includes;
core-js-3.8.2/packages/core-js/es/string/virtual/index.js 0000664 0000000 0000000 00000002746 13774351224 0023277 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.code-point-at');
require('../../../modules/es.string.ends-with');
require('../../../modules/es.string.includes');
require('../../../modules/es.string.match');
require('../../../modules/es.string.match-all');
require('../../../modules/es.string.pad-end');
require('../../../modules/es.string.pad-start');
require('../../../modules/es.string.repeat');
require('../../../modules/es.string.replace');
require('../../../modules/es.string.replace-all');
require('../../../modules/es.string.search');
require('../../../modules/es.string.split');
require('../../../modules/es.string.starts-with');
require('../../../modules/es.string.trim');
require('../../../modules/es.string.trim-start');
require('../../../modules/es.string.trim-end');
require('../../../modules/es.string.iterator');
require('../../../modules/es.string.anchor');
require('../../../modules/es.string.big');
require('../../../modules/es.string.blink');
require('../../../modules/es.string.bold');
require('../../../modules/es.string.fixed');
require('../../../modules/es.string.fontcolor');
require('../../../modules/es.string.fontsize');
require('../../../modules/es.string.italics');
require('../../../modules/es.string.link');
require('../../../modules/es.string.small');
require('../../../modules/es.string.strike');
require('../../../modules/es.string.sub');
require('../../../modules/es.string.sup');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String');
core-js-3.8.2/packages/core-js/es/string/virtual/italics.js 0000664 0000000 0000000 00000000241 13774351224 0023604 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.italics');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').italics;
core-js-3.8.2/packages/core-js/es/string/virtual/iterator.js 0000664 0000000 0000000 00000000215 13774351224 0024006 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.iterator');
var Iterators = require('../../../internals/iterators');
module.exports = Iterators.String;
core-js-3.8.2/packages/core-js/es/string/virtual/link.js 0000664 0000000 0000000 00000000233 13774351224 0023112 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.link');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').link;
core-js-3.8.2/packages/core-js/es/string/virtual/match-all.js 0000664 0000000 0000000 00000000244 13774351224 0024021 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.match-all');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').matchAll;
core-js-3.8.2/packages/core-js/es/string/virtual/pad-end.js 0000664 0000000 0000000 00000000240 13774351224 0023463 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.pad-end');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').padEnd;
core-js-3.8.2/packages/core-js/es/string/virtual/pad-start.js 0000664 0000000 0000000 00000000244 13774351224 0024056 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.pad-start');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').padStart;
core-js-3.8.2/packages/core-js/es/string/virtual/repeat.js 0000664 0000000 0000000 00000000237 13774351224 0023441 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.repeat');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').repeat;
core-js-3.8.2/packages/core-js/es/string/virtual/replace-all.js 0000664 0000000 0000000 00000000250 13774351224 0024335 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.replace-all');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').replaceAll;
core-js-3.8.2/packages/core-js/es/string/virtual/small.js 0000664 0000000 0000000 00000000235 13774351224 0023267 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.small');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').small;
core-js-3.8.2/packages/core-js/es/string/virtual/starts-with.js 0000664 0000000 0000000 00000000250 13774351224 0024445 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.starts-with');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').startsWith;
core-js-3.8.2/packages/core-js/es/string/virtual/strike.js 0000664 0000000 0000000 00000000237 13774351224 0023462 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.strike');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').strike;
core-js-3.8.2/packages/core-js/es/string/virtual/sub.js 0000664 0000000 0000000 00000000231 13774351224 0022744 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.sub');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').sub;
core-js-3.8.2/packages/core-js/es/string/virtual/sup.js 0000664 0000000 0000000 00000000231 13774351224 0022762 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.sup');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').sup;
core-js-3.8.2/packages/core-js/es/string/virtual/trim-end.js 0000664 0000000 0000000 00000000244 13774351224 0023676 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.trim-end');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').trimRight;
core-js-3.8.2/packages/core-js/es/string/virtual/trim-left.js 0000664 0000000 0000000 00000000245 13774351224 0024063 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.trim-start');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').trimLeft;
core-js-3.8.2/packages/core-js/es/string/virtual/trim-right.js 0000664 0000000 0000000 00000000244 13774351224 0024245 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.trim-end');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').trimRight;
core-js-3.8.2/packages/core-js/es/string/virtual/trim-start.js 0000664 0000000 0000000 00000000245 13774351224 0024266 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.trim-start');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').trimLeft;
core-js-3.8.2/packages/core-js/es/string/virtual/trim.js 0000664 0000000 0000000 00000000233 13774351224 0023130 0 ustar 00root root 0000000 0000000 require('../../../modules/es.string.trim');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').trim;
core-js-3.8.2/packages/core-js/es/symbol/ 0000775 0000000 0000000 00000000000 13774351224 0020132 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/symbol/async-iterator.js 0000664 0000000 0000000 00000000317 13774351224 0023435 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.async-iterator');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('asyncIterator');
core-js-3.8.2/packages/core-js/es/symbol/description.js 0000664 0000000 0000000 00000000060 13774351224 0023007 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.description');
core-js-3.8.2/packages/core-js/es/symbol/for.js 0000664 0000000 0000000 00000000166 13774351224 0021261 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol');
var path = require('../../internals/path');
module.exports = path.Symbol['for'];
core-js-3.8.2/packages/core-js/es/symbol/has-instance.js 0000664 0000000 0000000 00000000376 13774351224 0023053 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.has-instance');
require('../../modules/es.function.has-instance');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('hasInstance');
core-js-3.8.2/packages/core-js/es/symbol/index.js 0000664 0000000 0000000 00000001754 13774351224 0021606 0 ustar 00root root 0000000 0000000 require('../../modules/es.array.concat');
require('../../modules/es.object.to-string');
require('../../modules/es.symbol');
require('../../modules/es.symbol.async-iterator');
require('../../modules/es.symbol.description');
require('../../modules/es.symbol.has-instance');
require('../../modules/es.symbol.is-concat-spreadable');
require('../../modules/es.symbol.iterator');
require('../../modules/es.symbol.match');
require('../../modules/es.symbol.match-all');
require('../../modules/es.symbol.replace');
require('../../modules/es.symbol.search');
require('../../modules/es.symbol.species');
require('../../modules/es.symbol.split');
require('../../modules/es.symbol.to-primitive');
require('../../modules/es.symbol.to-string-tag');
require('../../modules/es.symbol.unscopables');
require('../../modules/es.json.to-string-tag');
require('../../modules/es.math.to-string-tag');
require('../../modules/es.reflect.to-string-tag');
var path = require('../../internals/path');
module.exports = path.Symbol;
core-js-3.8.2/packages/core-js/es/symbol/is-concat-spreadable.js 0000664 0000000 0000000 00000000404 13774351224 0024446 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.is-concat-spreadable');
require('../../modules/es.array.concat');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('isConcatSpreadable');
core-js-3.8.2/packages/core-js/es/symbol/iterator.js 0000664 0000000 0000000 00000000450 13774351224 0022320 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.iterator');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('iterator');
core-js-3.8.2/packages/core-js/es/symbol/key-for.js 0000664 0000000 0000000 00000000166 13774351224 0022047 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol');
var path = require('../../internals/path');
module.exports = path.Symbol.keyFor;
core-js-3.8.2/packages/core-js/es/symbol/match-all.js 0000664 0000000 0000000 00000000363 13774351224 0022334 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.match-all');
require('../../modules/es.string.match-all');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('matchAll');
core-js-3.8.2/packages/core-js/es/symbol/match.js 0000664 0000000 0000000 00000000350 13774351224 0021562 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.match');
require('../../modules/es.string.match');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('match');
core-js-3.8.2/packages/core-js/es/symbol/replace.js 0000664 0000000 0000000 00000000356 13774351224 0022107 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.replace');
require('../../modules/es.string.replace');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('replace');
core-js-3.8.2/packages/core-js/es/symbol/search.js 0000664 0000000 0000000 00000000353 13774351224 0021736 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.search');
require('../../modules/es.string.search');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('search');
core-js-3.8.2/packages/core-js/es/symbol/species.js 0000664 0000000 0000000 00000000302 13774351224 0022116 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.species');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('species');
core-js-3.8.2/packages/core-js/es/symbol/split.js 0000664 0000000 0000000 00000000350 13774351224 0021621 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.split');
require('../../modules/es.string.split');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('split');
core-js-3.8.2/packages/core-js/es/symbol/to-primitive.js 0000664 0000000 0000000 00000000313 13774351224 0023115 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.to-primitive');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('toPrimitive');
core-js-3.8.2/packages/core-js/es/symbol/to-string-tag.js 0000664 0000000 0000000 00000000615 13774351224 0023171 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.to-string-tag');
require('../../modules/es.object.to-string');
require('../../modules/es.json.to-string-tag');
require('../../modules/es.math.to-string-tag');
require('../../modules/es.reflect.to-string-tag');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('toStringTag');
core-js-3.8.2/packages/core-js/es/symbol/unscopables.js 0000664 0000000 0000000 00000000312 13774351224 0023002 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.unscopables');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('unscopables');
core-js-3.8.2/packages/core-js/es/typed-array/ 0000775 0000000 0000000 00000000000 13774351224 0021066 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/typed-array/copy-within.js 0000664 0000000 0000000 00000000065 13774351224 0023677 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.copy-within');
core-js-3.8.2/packages/core-js/es/typed-array/entries.js 0000664 0000000 0000000 00000000062 13774351224 0023073 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/es/typed-array/every.js 0000664 0000000 0000000 00000000057 13774351224 0022560 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.every');
core-js-3.8.2/packages/core-js/es/typed-array/fill.js 0000664 0000000 0000000 00000000056 13774351224 0022353 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.fill');
core-js-3.8.2/packages/core-js/es/typed-array/filter.js 0000664 0000000 0000000 00000000060 13774351224 0022705 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.filter');
core-js-3.8.2/packages/core-js/es/typed-array/find-index.js 0000664 0000000 0000000 00000000064 13774351224 0023451 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find-index');
core-js-3.8.2/packages/core-js/es/typed-array/find.js 0000664 0000000 0000000 00000000056 13774351224 0022345 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find');
core-js-3.8.2/packages/core-js/es/typed-array/float32-array.js 0000664 0000000 0000000 00000000244 13774351224 0024012 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.float32-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Float32Array;
core-js-3.8.2/packages/core-js/es/typed-array/float64-array.js 0000664 0000000 0000000 00000000244 13774351224 0024017 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.float64-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Float64Array;
core-js-3.8.2/packages/core-js/es/typed-array/for-each.js 0000664 0000000 0000000 00000000062 13774351224 0023106 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.for-each');
core-js-3.8.2/packages/core-js/es/typed-array/from.js 0000664 0000000 0000000 00000000056 13774351224 0022370 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.from');
core-js-3.8.2/packages/core-js/es/typed-array/includes.js 0000664 0000000 0000000 00000000062 13774351224 0023230 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.includes');
core-js-3.8.2/packages/core-js/es/typed-array/index-of.js 0000664 0000000 0000000 00000000062 13774351224 0023133 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.index-of');
core-js-3.8.2/packages/core-js/es/typed-array/index.js 0000664 0000000 0000000 00000001065 13774351224 0022535 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.int8-array');
require('../../modules/es.typed-array.uint8-array');
require('../../modules/es.typed-array.uint8-clamped-array');
require('../../modules/es.typed-array.int16-array');
require('../../modules/es.typed-array.uint16-array');
require('../../modules/es.typed-array.int32-array');
require('../../modules/es.typed-array.uint32-array');
require('../../modules/es.typed-array.float32-array');
require('../../modules/es.typed-array.float64-array');
require('./methods');
module.exports = require('../../internals/global');
core-js-3.8.2/packages/core-js/es/typed-array/int16-array.js 0000664 0000000 0000000 00000000240 13774351224 0023475 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.int16-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Int16Array;
core-js-3.8.2/packages/core-js/es/typed-array/int32-array.js 0000664 0000000 0000000 00000000240 13774351224 0023473 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.int32-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Int32Array;
core-js-3.8.2/packages/core-js/es/typed-array/int8-array.js 0000664 0000000 0000000 00000000236 13774351224 0023423 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.int8-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Int8Array;
core-js-3.8.2/packages/core-js/es/typed-array/iterator.js 0000664 0000000 0000000 00000000062 13774351224 0023253 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/es/typed-array/join.js 0000664 0000000 0000000 00000000056 13774351224 0022364 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.join');
core-js-3.8.2/packages/core-js/es/typed-array/keys.js 0000664 0000000 0000000 00000000062 13774351224 0022375 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/es/typed-array/last-index-of.js 0000664 0000000 0000000 00000000067 13774351224 0024101 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.last-index-of');
core-js-3.8.2/packages/core-js/es/typed-array/map.js 0000664 0000000 0000000 00000000055 13774351224 0022201 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.map');
core-js-3.8.2/packages/core-js/es/typed-array/methods.js 0000664 0000000 0000000 00000002364 13774351224 0023074 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.from');
require('../../modules/es.typed-array.of');
require('../../modules/es.typed-array.copy-within');
require('../../modules/es.typed-array.every');
require('../../modules/es.typed-array.fill');
require('../../modules/es.typed-array.filter');
require('../../modules/es.typed-array.find');
require('../../modules/es.typed-array.find-index');
require('../../modules/es.typed-array.for-each');
require('../../modules/es.typed-array.includes');
require('../../modules/es.typed-array.index-of');
require('../../modules/es.typed-array.join');
require('../../modules/es.typed-array.last-index-of');
require('../../modules/es.typed-array.map');
require('../../modules/es.typed-array.reduce');
require('../../modules/es.typed-array.reduce-right');
require('../../modules/es.typed-array.reverse');
require('../../modules/es.typed-array.set');
require('../../modules/es.typed-array.slice');
require('../../modules/es.typed-array.some');
require('../../modules/es.typed-array.sort');
require('../../modules/es.typed-array.subarray');
require('../../modules/es.typed-array.to-locale-string');
require('../../modules/es.typed-array.to-string');
require('../../modules/es.typed-array.iterator');
require('../../modules/es.object.to-string');
core-js-3.8.2/packages/core-js/es/typed-array/of.js 0000664 0000000 0000000 00000000054 13774351224 0022027 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.of');
core-js-3.8.2/packages/core-js/es/typed-array/reduce-right.js 0000664 0000000 0000000 00000000066 13774351224 0024010 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce-right');
core-js-3.8.2/packages/core-js/es/typed-array/reduce.js 0000664 0000000 0000000 00000000060 13774351224 0022667 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce');
core-js-3.8.2/packages/core-js/es/typed-array/reverse.js 0000664 0000000 0000000 00000000061 13774351224 0023074 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reverse');
core-js-3.8.2/packages/core-js/es/typed-array/set.js 0000664 0000000 0000000 00000000055 13774351224 0022217 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.set');
core-js-3.8.2/packages/core-js/es/typed-array/slice.js 0000664 0000000 0000000 00000000057 13774351224 0022525 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.slice');
core-js-3.8.2/packages/core-js/es/typed-array/some.js 0000664 0000000 0000000 00000000056 13774351224 0022370 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.some');
core-js-3.8.2/packages/core-js/es/typed-array/sort.js 0000664 0000000 0000000 00000000056 13774351224 0022414 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.sort');
core-js-3.8.2/packages/core-js/es/typed-array/subarray.js 0000664 0000000 0000000 00000000062 13774351224 0023252 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.subarray');
core-js-3.8.2/packages/core-js/es/typed-array/to-locale-string.js 0000664 0000000 0000000 00000000072 13774351224 0024606 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-locale-string');
core-js-3.8.2/packages/core-js/es/typed-array/to-string.js 0000664 0000000 0000000 00000000063 13774351224 0023351 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-string');
core-js-3.8.2/packages/core-js/es/typed-array/uint16-array.js 0000664 0000000 0000000 00000000242 13774351224 0023664 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.uint16-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Uint16Array;
core-js-3.8.2/packages/core-js/es/typed-array/uint32-array.js 0000664 0000000 0000000 00000000242 13774351224 0023662 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.uint32-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Uint32Array;
core-js-3.8.2/packages/core-js/es/typed-array/uint8-array.js 0000664 0000000 0000000 00000000240 13774351224 0023603 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.uint8-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Uint8Array;
core-js-3.8.2/packages/core-js/es/typed-array/uint8-clamped-array.js 0000664 0000000 0000000 00000000257 13774351224 0025216 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.uint8-clamped-array');
require('./methods');
var global = require('../../internals/global');
module.exports = global.Uint8ClampedArray;
core-js-3.8.2/packages/core-js/es/typed-array/values.js 0000664 0000000 0000000 00000000062 13774351224 0022721 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/es/weak-map/ 0000775 0000000 0000000 00000000000 13774351224 0020327 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/weak-map/index.js 0000664 0000000 0000000 00000000327 13774351224 0021776 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.weak-map');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.WeakMap;
core-js-3.8.2/packages/core-js/es/weak-set/ 0000775 0000000 0000000 00000000000 13774351224 0020345 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/es/weak-set/index.js 0000664 0000000 0000000 00000000327 13774351224 0022014 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.weak-set');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.WeakSet;
core-js-3.8.2/packages/core-js/features/ 0000775 0000000 0000000 00000000000 13774351224 0020034 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/README.md 0000664 0000000 0000000 00000000213 13774351224 0021307 0 ustar 00root root 0000000 0000000 This folder contains entry points for all `core-js` features with dependencies. It's the recommended way for usage only required features.
core-js-3.8.2/packages/core-js/features/aggregate-error.js 0000664 0000000 0000000 00000000235 13774351224 0023447 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../modules/esnext.aggregate-error');
var parent = require('../stable/aggregate-error');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array-buffer/ 0000775 0000000 0000000 00000000000 13774351224 0022421 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/array-buffer/constructor.js 0000664 0000000 0000000 00000000125 13774351224 0025342 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array-buffer/index.js 0000664 0000000 0000000 00000000111 13774351224 0024057 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array-buffer/is-view.js 0000664 0000000 0000000 00000000121 13774351224 0024334 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/is-view');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array-buffer/slice.js 0000664 0000000 0000000 00000000117 13774351224 0024055 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/ 0000775 0000000 0000000 00000000000 13774351224 0021152 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/array/at.js 0000664 0000000 0000000 00000000223 13774351224 0022111 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.array.at');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'at');
core-js-3.8.2/packages/core-js/features/array/concat.js 0000664 0000000 0000000 00000000111 13774351224 0022750 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/copy-within.js 0000664 0000000 0000000 00000000116 13774351224 0023760 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/entries.js 0000664 0000000 0000000 00000000112 13774351224 0023153 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/every.js 0000664 0000000 0000000 00000000110 13774351224 0022632 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/fill.js 0000664 0000000 0000000 00000000107 13774351224 0022434 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/filter-out.js 0000664 0000000 0000000 00000000242 13774351224 0023600 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.array.filter-out');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'filterOut');
core-js-3.8.2/packages/core-js/features/array/filter.js 0000664 0000000 0000000 00000000111 13774351224 0022766 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/find-index.js 0000664 0000000 0000000 00000000115 13774351224 0023532 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/find.js 0000664 0000000 0000000 00000000107 13774351224 0022426 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/flat-map.js 0000664 0000000 0000000 00000000113 13774351224 0023204 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/flat.js 0000664 0000000 0000000 00000000107 13774351224 0022434 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/for-each.js 0000664 0000000 0000000 00000000113 13774351224 0023167 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/from.js 0000664 0000000 0000000 00000000107 13774351224 0022451 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/from');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/includes.js 0000664 0000000 0000000 00000000113 13774351224 0023311 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/index-of.js 0000664 0000000 0000000 00000000113 13774351224 0023214 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/index.js 0000664 0000000 0000000 00000000615 13774351224 0022621 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array');
require('../../modules/es.map');
require('../../modules/esnext.array.at');
require('../../modules/esnext.array.filter-out');
require('../../modules/esnext.array.is-template-object');
require('../../modules/esnext.array.last-item');
require('../../modules/esnext.array.last-index');
require('../../modules/esnext.array.unique-by');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/is-array.js 0000664 0000000 0000000 00000000113 13774351224 0023232 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/is-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/is-template-object.js 0000664 0000000 0000000 00000000225 13774351224 0025177 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.array.is-template-object');
var path = require('../../internals/path');
module.exports = path.Array.isTemplateObject;
core-js-3.8.2/packages/core-js/features/array/iterator.js 0000664 0000000 0000000 00000000113 13774351224 0023334 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/join.js 0000664 0000000 0000000 00000000107 13774351224 0022445 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/join');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/keys.js 0000664 0000000 0000000 00000000107 13774351224 0022461 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/last-index-of.js 0000664 0000000 0000000 00000000120 13774351224 0024153 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/last-index.js 0000664 0000000 0000000 00000000062 13774351224 0023556 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.array.last-index');
core-js-3.8.2/packages/core-js/features/array/last-item.js 0000664 0000000 0000000 00000000061 13774351224 0023404 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.array.last-item');
core-js-3.8.2/packages/core-js/features/array/map.js 0000664 0000000 0000000 00000000106 13774351224 0022262 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/of.js 0000664 0000000 0000000 00000000105 13774351224 0022110 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/reduce-right.js 0000664 0000000 0000000 00000000117 13774351224 0024071 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/reduce.js 0000664 0000000 0000000 00000000111 13774351224 0022750 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/reverse.js 0000664 0000000 0000000 00000000112 13774351224 0023155 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/slice.js 0000664 0000000 0000000 00000000110 13774351224 0022577 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/some.js 0000664 0000000 0000000 00000000107 13774351224 0022451 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/sort.js 0000664 0000000 0000000 00000000107 13774351224 0022475 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/splice.js 0000664 0000000 0000000 00000000111 13774351224 0022760 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/unique-by.js 0000664 0000000 0000000 00000000301 13774351224 0023420 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.array.unique-by');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'uniqueBy');
core-js-3.8.2/packages/core-js/features/array/values.js 0000664 0000000 0000000 00000000111 13774351224 0023000 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0022640 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/array/virtual/at.js 0000664 0000000 0000000 00000000231 13774351224 0023576 0 ustar 00root root 0000000 0000000 require('../../../modules/esnext.array.at');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').at;
core-js-3.8.2/packages/core-js/features/array/virtual/concat.js 0000664 0000000 0000000 00000000124 13774351224 0024442 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/copy-within.js 0000664 0000000 0000000 00000000131 13774351224 0025443 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/entries.js 0000664 0000000 0000000 00000000125 13774351224 0024645 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/every.js 0000664 0000000 0000000 00000000123 13774351224 0024324 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/fill.js 0000664 0000000 0000000 00000000122 13774351224 0024117 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/filter-out.js 0000664 0000000 0000000 00000000250 13774351224 0025265 0 ustar 00root root 0000000 0000000 require('../../../modules/esnext.array.filter-out');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').filterOut;
core-js-3.8.2/packages/core-js/features/array/virtual/filter.js 0000664 0000000 0000000 00000000124 13774351224 0024460 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/find-index.js 0000664 0000000 0000000 00000000130 13774351224 0025215 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/find.js 0000664 0000000 0000000 00000000122 13774351224 0024111 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/flat-map.js 0000664 0000000 0000000 00000000126 13774351224 0024676 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/flat.js 0000664 0000000 0000000 00000000122 13774351224 0024117 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/for-each.js 0000664 0000000 0000000 00000000126 13774351224 0024661 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/includes.js 0000664 0000000 0000000 00000000126 13774351224 0025003 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/index-of.js 0000664 0000000 0000000 00000000126 13774351224 0024706 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/index.js 0000664 0000000 0000000 00000000343 13774351224 0024305 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual');
require('../../../modules/esnext.array.at');
require('../../../modules/esnext.array.filter-out');
require('../../../modules/esnext.array.unique-by');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/iterator.js 0000664 0000000 0000000 00000000126 13774351224 0025026 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/join.js 0000664 0000000 0000000 00000000122 13774351224 0024130 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/join');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/keys.js 0000664 0000000 0000000 00000000122 13774351224 0024144 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/last-index-of.js 0000664 0000000 0000000 00000000133 13774351224 0025645 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/map.js 0000664 0000000 0000000 00000000121 13774351224 0023745 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/reduce-right.js 0000664 0000000 0000000 00000000132 13774351224 0025554 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/reduce.js 0000664 0000000 0000000 00000000124 13774351224 0024442 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/reverse.js 0000664 0000000 0000000 00000000125 13774351224 0024647 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/slice.js 0000664 0000000 0000000 00000000123 13774351224 0024271 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/some.js 0000664 0000000 0000000 00000000122 13774351224 0024134 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/sort.js 0000664 0000000 0000000 00000000122 13774351224 0024160 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/splice.js 0000664 0000000 0000000 00000000124 13774351224 0024452 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/array/virtual/unique-by.js 0000664 0000000 0000000 00000000312 13774351224 0025110 0 ustar 00root root 0000000 0000000 require('../../../modules/es.map');
require('../../../modules/esnext.array.unique-by');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('Array').uniqueBy;
core-js-3.8.2/packages/core-js/features/array/virtual/values.js 0000664 0000000 0000000 00000000124 13774351224 0024472 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/async-iterator/ 0000775 0000000 0000000 00000000000 13774351224 0023000 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/async-iterator/as-indexed-pairs.js 0000664 0000000 0000000 00000000662 13774351224 0026477 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.as-indexed-pairs');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'asIndexedPairs');
core-js-3.8.2/packages/core-js/features/async-iterator/drop.js 0000664 0000000 0000000 00000000634 13774351224 0024305 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.drop');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'drop');
core-js-3.8.2/packages/core-js/features/async-iterator/every.js 0000664 0000000 0000000 00000000636 13774351224 0024475 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.every');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'every');
core-js-3.8.2/packages/core-js/features/async-iterator/filter.js 0000664 0000000 0000000 00000000640 13774351224 0024623 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.filter');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'filter');
core-js-3.8.2/packages/core-js/features/async-iterator/find.js 0000664 0000000 0000000 00000000634 13774351224 0024261 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.find');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'find');
core-js-3.8.2/packages/core-js/features/async-iterator/flat-map.js 0000664 0000000 0000000 00000000643 13774351224 0025042 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.flat-map');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'flatMap');
core-js-3.8.2/packages/core-js/features/async-iterator/for-each.js 0000664 0000000 0000000 00000000643 13774351224 0025025 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.for-each');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'forEach');
core-js-3.8.2/packages/core-js/features/async-iterator/from.js 0000664 0000000 0000000 00000000600 13774351224 0024275 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.AsyncIterator.from;
core-js-3.8.2/packages/core-js/features/async-iterator/index.js 0000664 0000000 0000000 00000002023 13774351224 0024442 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.as-indexed-pairs');
require('../../modules/esnext.async-iterator.drop');
require('../../modules/esnext.async-iterator.every');
require('../../modules/esnext.async-iterator.filter');
require('../../modules/esnext.async-iterator.find');
require('../../modules/esnext.async-iterator.flat-map');
require('../../modules/esnext.async-iterator.for-each');
require('../../modules/esnext.async-iterator.from');
require('../../modules/esnext.async-iterator.map');
require('../../modules/esnext.async-iterator.reduce');
require('../../modules/esnext.async-iterator.some');
require('../../modules/esnext.async-iterator.take');
require('../../modules/esnext.async-iterator.to-array');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.AsyncIterator;
core-js-3.8.2/packages/core-js/features/async-iterator/map.js 0000664 0000000 0000000 00000000632 13774351224 0024114 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.map');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'map');
core-js-3.8.2/packages/core-js/features/async-iterator/reduce.js 0000664 0000000 0000000 00000000640 13774351224 0024605 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.reduce');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'reduce');
core-js-3.8.2/packages/core-js/features/async-iterator/some.js 0000664 0000000 0000000 00000000634 13774351224 0024304 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.some');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'some');
core-js-3.8.2/packages/core-js/features/async-iterator/take.js 0000664 0000000 0000000 00000000634 13774351224 0024265 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.take');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'take');
core-js-3.8.2/packages/core-js/features/async-iterator/to-array.js 0000664 0000000 0000000 00000000643 13774351224 0025077 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.promise');
require('../../modules/es.string.iterator');
require('../../modules/esnext.async-iterator.constructor');
require('../../modules/esnext.async-iterator.to-array');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('AsyncIterator', 'toArray');
core-js-3.8.2/packages/core-js/features/bigint/ 0000775 0000000 0000000 00000000000 13774351224 0021310 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/bigint/index.js 0000664 0000000 0000000 00000000175 13774351224 0022760 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.bigint.range');
var BigInt = require('../../internals/path').BigInt;
module.exports = BigInt;
core-js-3.8.2/packages/core-js/features/bigint/range.js 0000664 0000000 0000000 00000000215 13774351224 0022740 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.bigint.range');
var BigInt = require('../../internals/path').BigInt;
module.exports = BigInt && BigInt.range;
core-js-3.8.2/packages/core-js/features/clear-immediate.js 0000664 0000000 0000000 00000000115 13774351224 0023411 0 ustar 00root root 0000000 0000000 var parent = require('../stable/clear-immediate');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/composite-key.js 0000664 0000000 0000000 00000000172 13774351224 0023162 0 ustar 00root root 0000000 0000000 require('../modules/esnext.composite-key');
var path = require('../internals/path');
module.exports = path.compositeKey;
core-js-3.8.2/packages/core-js/features/composite-symbol.js 0000664 0000000 0000000 00000000241 13774351224 0023674 0 ustar 00root root 0000000 0000000 require('../modules/es.symbol');
require('../modules/esnext.composite-symbol');
var path = require('../internals/path');
module.exports = path.compositeSymbol;
core-js-3.8.2/packages/core-js/features/data-view/ 0000775 0000000 0000000 00000000000 13774351224 0021715 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/data-view/index.js 0000664 0000000 0000000 00000000106 13774351224 0023357 0 ustar 00root root 0000000 0000000 var parent = require('../../es/data-view');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/ 0000775 0000000 0000000 00000000000 13774351224 0020751 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/date/index.js 0000664 0000000 0000000 00000000101 13774351224 0022406 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/now.js 0000664 0000000 0000000 00000000105 13774351224 0022106 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/now');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/to-iso-string.js 0000664 0000000 0000000 00000000117 13774351224 0024024 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-iso-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/to-json.js 0000664 0000000 0000000 00000000111 13774351224 0022671 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-json');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/to-primitive.js 0000664 0000000 0000000 00000000116 13774351224 0023735 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-primitive');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/date/to-string.js 0000664 0000000 0000000 00000000113 13774351224 0023230 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/dom-collections/ 0000775 0000000 0000000 00000000000 13774351224 0023127 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/dom-collections/for-each.js 0000664 0000000 0000000 00000000131 13774351224 0025144 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/dom-collections/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/dom-collections/index.js 0000664 0000000 0000000 00000000120 13774351224 0024565 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/dom-collections');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/dom-collections/iterator.js 0000664 0000000 0000000 00000000131 13774351224 0025311 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/dom-collections/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/ 0000775 0000000 0000000 00000000000 13774351224 0021661 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/function/bind.js 0000664 0000000 0000000 00000000112 13774351224 0023125 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/has-instance.js 0000664 0000000 0000000 00000000122 13774351224 0024567 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/has-instance');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/index.js 0000664 0000000 0000000 00000000105 13774351224 0023322 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/name.js 0000664 0000000 0000000 00000000112 13774351224 0023131 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/name');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0023347 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/function/virtual/bind.js 0000664 0000000 0000000 00000000125 13774351224 0024617 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/function/virtual/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/function/virtual/index.js 0000664 0000000 0000000 00000000120 13774351224 0025005 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/function/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/get-iterator-method.js 0000664 0000000 0000000 00000000310 13774351224 0024250 0 ustar 00root root 0000000 0000000 require('../modules/web.dom-collections.iterator');
require('../modules/es.string.iterator');
var getIteratorMethod = require('../internals/get-iterator-method');
module.exports = getIteratorMethod;
core-js-3.8.2/packages/core-js/features/get-iterator.js 0000664 0000000 0000000 00000000265 13774351224 0023003 0 ustar 00root root 0000000 0000000 require('../modules/web.dom-collections.iterator');
require('../modules/es.string.iterator');
var getIterator = require('../internals/get-iterator');
module.exports = getIterator;
core-js-3.8.2/packages/core-js/features/global-this.js 0000664 0000000 0000000 00000000221 13774351224 0022572 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../modules/esnext.global-this');
var parent = require('../es/global-this');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/index.js 0000664 0000000 0000000 00000000066 13774351224 0021503 0 ustar 00root root 0000000 0000000 var parent = require('..');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/ 0000775 0000000 0000000 00000000000 13774351224 0021640 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/instance/at.js 0000664 0000000 0000000 00000000737 13774351224 0022611 0 ustar 00root root 0000000 0000000 var arrayAt = require('../array/virtual/at');
var stringAt = require('../string/virtual/at');
var ArrayPrototype = Array.prototype;
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.at;
if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.at)) return arrayAt;
if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.at)) {
return stringAt;
} return own;
};
core-js-3.8.2/packages/core-js/features/instance/bind.js 0000664 0000000 0000000 00000000112 13774351224 0023104 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/code-point-at.js 0000664 0000000 0000000 00000000123 13774351224 0024635 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/code-points.js 0000664 0000000 0000000 00000000466 13774351224 0024430 0 ustar 00root root 0000000 0000000 var codePoints = require('../string/virtual/code-points');
var StringPrototype = String.prototype;
module.exports = function (it) {
var own = it.codePoints;
return typeof it === 'string' || it === StringPrototype
|| (it instanceof String && own === StringPrototype.codePoints) ? codePoints : own;
};
core-js-3.8.2/packages/core-js/features/instance/concat.js 0000664 0000000 0000000 00000000114 13774351224 0023441 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/copy-within.js 0000664 0000000 0000000 00000000121 13774351224 0024442 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/ends-with.js 0000664 0000000 0000000 00000000117 13774351224 0024077 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/entries.js 0000664 0000000 0000000 00000000121 13774351224 0023641 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/instance/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/every.js 0000664 0000000 0000000 00000000113 13774351224 0023323 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/fill.js 0000664 0000000 0000000 00000000112 13774351224 0023116 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/filter-out.js 0000664 0000000 0000000 00000000415 13774351224 0024270 0 ustar 00root root 0000000 0000000 var filterOut = require('../array/virtual/filter-out');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.filterOut;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.filterOut) ? filterOut : own;
};
core-js-3.8.2/packages/core-js/features/instance/filter.js 0000664 0000000 0000000 00000000114 13774351224 0023457 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/find-index.js 0000664 0000000 0000000 00000000120 13774351224 0024214 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/find.js 0000664 0000000 0000000 00000000112 13774351224 0023110 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/flags.js 0000664 0000000 0000000 00000000113 13774351224 0023265 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flags');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/flat-map.js 0000664 0000000 0000000 00000000116 13774351224 0023675 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/flat.js 0000664 0000000 0000000 00000000112 13774351224 0023116 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/for-each.js 0000664 0000000 0000000 00000000122 13774351224 0023655 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/instance/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/includes.js 0000664 0000000 0000000 00000000116 13774351224 0024002 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/index-of.js 0000664 0000000 0000000 00000000116 13774351224 0023705 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/keys.js 0000664 0000000 0000000 00000000116 13774351224 0023147 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/instance/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/last-index-of.js 0000664 0000000 0000000 00000000123 13774351224 0024644 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/map.js 0000664 0000000 0000000 00000000111 13774351224 0022744 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/match-all.js 0000664 0000000 0000000 00000000243 13774351224 0024037 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../modules/esnext.string.match-all');
var parent = require('../../es/instance/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/pad-end.js 0000664 0000000 0000000 00000000115 13774351224 0023503 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/pad-start.js 0000664 0000000 0000000 00000000117 13774351224 0024074 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/reduce-right.js 0000664 0000000 0000000 00000000122 13774351224 0024553 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/reduce.js 0000664 0000000 0000000 00000000114 13774351224 0023441 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/repeat.js 0000664 0000000 0000000 00000000114 13774351224 0023452 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/replace-all.js 0000664 0000000 0000000 00000000125 13774351224 0024355 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/instance/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/reverse.js 0000664 0000000 0000000 00000000115 13774351224 0023646 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/slice.js 0000664 0000000 0000000 00000000113 13774351224 0023270 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/some.js 0000664 0000000 0000000 00000000112 13774351224 0023133 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/sort.js 0000664 0000000 0000000 00000000112 13774351224 0023157 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/splice.js 0000664 0000000 0000000 00000000114 13774351224 0023451 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/starts-with.js 0000664 0000000 0000000 00000000121 13774351224 0024461 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/trim-end.js 0000664 0000000 0000000 00000000116 13774351224 0023713 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/trim-left.js 0000664 0000000 0000000 00000000117 13774351224 0024100 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/trim-right.js 0000664 0000000 0000000 00000000120 13774351224 0024255 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/trim-start.js 0000664 0000000 0000000 00000000120 13774351224 0024275 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/trim.js 0000664 0000000 0000000 00000000112 13774351224 0023143 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/instance/unique-by.js 0000664 0000000 0000000 00000000410 13774351224 0024107 0 ustar 00root root 0000000 0000000 var uniqueBy = require('../array/virtual/unique-by');
var ArrayPrototype = Array.prototype;
module.exports = function (it) {
var own = it.uniqueBy;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.uniqueBy) ? uniqueBy : own;
};
core-js-3.8.2/packages/core-js/features/instance/values.js 0000664 0000000 0000000 00000000120 13774351224 0023466 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/instance/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/is-iterable.js 0000664 0000000 0000000 00000000262 13774351224 0022572 0 ustar 00root root 0000000 0000000 require('../modules/web.dom-collections.iterator');
require('../modules/es.string.iterator');
var isIterable = require('../internals/is-iterable');
module.exports = isIterable;
core-js-3.8.2/packages/core-js/features/iterator/ 0000775 0000000 0000000 00000000000 13774351224 0021665 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/iterator/as-indexed-pairs.js 0000664 0000000 0000000 00000000575 13774351224 0025367 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.as-indexed-pairs');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'asIndexedPairs');
core-js-3.8.2/packages/core-js/features/iterator/drop.js 0000664 0000000 0000000 00000000546 13774351224 0023174 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.drop');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'drop');
core-js-3.8.2/packages/core-js/features/iterator/every.js 0000664 0000000 0000000 00000000550 13774351224 0023355 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.every');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'every');
core-js-3.8.2/packages/core-js/features/iterator/filter.js 0000664 0000000 0000000 00000000552 13774351224 0023512 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.filter');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'filter');
core-js-3.8.2/packages/core-js/features/iterator/find.js 0000664 0000000 0000000 00000000546 13774351224 0023150 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.find');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'find');
core-js-3.8.2/packages/core-js/features/iterator/flat-map.js 0000664 0000000 0000000 00000000555 13774351224 0023731 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.flat-map');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'flatMap');
core-js-3.8.2/packages/core-js/features/iterator/for-each.js 0000664 0000000 0000000 00000000555 13774351224 0023714 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.for-each');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'forEach');
core-js-3.8.2/packages/core-js/features/iterator/from.js 0000664 0000000 0000000 00000000512 13774351224 0023164 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Iterator.from;
core-js-3.8.2/packages/core-js/features/iterator/index.js 0000664 0000000 0000000 00000001625 13774351224 0023336 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.as-indexed-pairs');
require('../../modules/esnext.iterator.drop');
require('../../modules/esnext.iterator.every');
require('../../modules/esnext.iterator.filter');
require('../../modules/esnext.iterator.find');
require('../../modules/esnext.iterator.flat-map');
require('../../modules/esnext.iterator.for-each');
require('../../modules/esnext.iterator.from');
require('../../modules/esnext.iterator.map');
require('../../modules/esnext.iterator.reduce');
require('../../modules/esnext.iterator.some');
require('../../modules/esnext.iterator.take');
require('../../modules/esnext.iterator.to-array');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Iterator;
core-js-3.8.2/packages/core-js/features/iterator/map.js 0000664 0000000 0000000 00000000544 13774351224 0023003 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.map');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'map');
core-js-3.8.2/packages/core-js/features/iterator/reduce.js 0000664 0000000 0000000 00000000552 13774351224 0023474 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.reduce');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'reduce');
core-js-3.8.2/packages/core-js/features/iterator/some.js 0000664 0000000 0000000 00000000546 13774351224 0023173 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.some');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'some');
core-js-3.8.2/packages/core-js/features/iterator/take.js 0000664 0000000 0000000 00000000546 13774351224 0023154 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.take');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'take');
core-js-3.8.2/packages/core-js/features/iterator/to-array.js 0000664 0000000 0000000 00000000555 13774351224 0023766 0 ustar 00root root 0000000 0000000 require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/esnext.iterator.constructor');
require('../../modules/esnext.iterator.to-array');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Iterator', 'toArray');
core-js-3.8.2/packages/core-js/features/json/ 0000775 0000000 0000000 00000000000 13774351224 0021005 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/json/index.js 0000664 0000000 0000000 00000000101 13774351224 0022442 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/json/stringify.js 0000664 0000000 0000000 00000000113 13774351224 0023354 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json/stringify');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/json/to-string-tag.js 0000664 0000000 0000000 00000000117 13774351224 0024041 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/map/ 0000775 0000000 0000000 00000000000 13774351224 0020611 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/map/delete-all.js 0000664 0000000 0000000 00000000277 13774351224 0023165 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.delete-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'deleteAll');
core-js-3.8.2/packages/core-js/features/map/emplace.js 0000664 0000000 0000000 00000000272 13774351224 0022556 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.emplace');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'emplace');
core-js-3.8.2/packages/core-js/features/map/every.js 0000664 0000000 0000000 00000000266 13774351224 0022305 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.every');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'every');
core-js-3.8.2/packages/core-js/features/map/filter.js 0000664 0000000 0000000 00000000270 13774351224 0022433 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.filter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'filter');
core-js-3.8.2/packages/core-js/features/map/find-key.js 0000664 0000000 0000000 00000000273 13774351224 0022657 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.find-key');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'findKey');
core-js-3.8.2/packages/core-js/features/map/find.js 0000664 0000000 0000000 00000000264 13774351224 0022071 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.find');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'find');
core-js-3.8.2/packages/core-js/features/map/from.js 0000664 0000000 0000000 00000000653 13774351224 0022116 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.map');
require('../../modules/es.string.iterator');
require('../../modules/esnext.map.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Map = path.Map;
var mapFrom = Map.from;
module.exports = function from(source, mapFn, thisArg) {
return mapFrom.call(typeof this === 'function' ? this : Map, source, mapFn, thisArg);
};
core-js-3.8.2/packages/core-js/features/map/group-by.js 0000664 0000000 0000000 00000000551 13774351224 0022714 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.map');
require('../../modules/esnext.map.group-by');
var path = require('../../internals/path');
var Map = path.Map;
var mapGroupBy = Map.groupBy;
module.exports = function groupBy(source, iterable, keyDerivative) {
return mapGroupBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDerivative);
};
core-js-3.8.2/packages/core-js/features/map/includes.js 0000664 0000000 0000000 00000000274 13774351224 0022760 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.includes');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'includes');
core-js-3.8.2/packages/core-js/features/map/index.js 0000664 0000000 0000000 00000002001 13774351224 0022247 0 ustar 00root root 0000000 0000000 var parent = require('../../es/map');
require('../../modules/esnext.map.from');
require('../../modules/esnext.map.of');
require('../../modules/esnext.map.delete-all');
require('../../modules/esnext.map.emplace');
require('../../modules/esnext.map.every');
require('../../modules/esnext.map.filter');
require('../../modules/esnext.map.find');
require('../../modules/esnext.map.find-key');
require('../../modules/esnext.map.group-by');
require('../../modules/esnext.map.includes');
require('../../modules/esnext.map.key-by');
require('../../modules/esnext.map.key-of');
require('../../modules/esnext.map.map-keys');
require('../../modules/esnext.map.map-values');
require('../../modules/esnext.map.merge');
require('../../modules/esnext.map.reduce');
require('../../modules/esnext.map.some');
require('../../modules/esnext.map.update');
// TODO: remove from `core-js@4`
require('../../modules/esnext.map.upsert');
// TODO: remove from `core-js@4`
require('../../modules/esnext.map.update-or-insert');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/map/key-by.js 0000664 0000000 0000000 00000000537 13774351224 0022354 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.map');
require('../../modules/esnext.map.key-by');
var path = require('../../internals/path');
var Map = path.Map;
var mapKeyBy = Map.keyBy;
module.exports = function keyBy(source, iterable, keyDerivative) {
return mapKeyBy.call(typeof this === 'function' ? this : Map, source, iterable, keyDerivative);
};
core-js-3.8.2/packages/core-js/features/map/key-of.js 0000664 0000000 0000000 00000000267 13774351224 0022346 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.key-of');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'keyOf');
core-js-3.8.2/packages/core-js/features/map/map-keys.js 0000664 0000000 0000000 00000000273 13774351224 0022677 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.map-keys');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'mapKeys');
core-js-3.8.2/packages/core-js/features/map/map-values.js 0000664 0000000 0000000 00000000277 13774351224 0023227 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.map-values');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'mapValues');
core-js-3.8.2/packages/core-js/features/map/merge.js 0000664 0000000 0000000 00000000266 13774351224 0022252 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.merge');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'merge');
core-js-3.8.2/packages/core-js/features/map/of.js 0000664 0000000 0000000 00000000577 13774351224 0021564 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.map');
require('../../modules/es.string.iterator');
require('../../modules/esnext.map.of');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Map = path.Map;
var mapOf = Map.of;
module.exports = function of() {
return mapOf.apply(typeof this === 'function' ? this : Map, arguments);
};
core-js-3.8.2/packages/core-js/features/map/reduce.js 0000664 0000000 0000000 00000000270 13774351224 0022415 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.reduce');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'reduce');
core-js-3.8.2/packages/core-js/features/map/some.js 0000664 0000000 0000000 00000000264 13774351224 0022114 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.some');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'some');
core-js-3.8.2/packages/core-js/features/map/update-or-insert.js 0000664 0000000 0000000 00000000353 13774351224 0024352 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../modules/es.map');
require('../../modules/esnext.map.update-or-insert');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'updateOrInsert');
core-js-3.8.2/packages/core-js/features/map/update.js 0000664 0000000 0000000 00000000270 13774351224 0022430 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.update');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'update');
core-js-3.8.2/packages/core-js/features/map/upsert.js 0000664 0000000 0000000 00000000270 13774351224 0022470 0 ustar 00root root 0000000 0000000 require('../../modules/es.map');
require('../../modules/esnext.map.upsert');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Map', 'upsert');
core-js-3.8.2/packages/core-js/features/math/ 0000775 0000000 0000000 00000000000 13774351224 0020765 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/math/acosh.js 0000664 0000000 0000000 00000000107 13774351224 0022416 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/acosh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/asinh.js 0000664 0000000 0000000 00000000107 13774351224 0022423 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/asinh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/atanh.js 0000664 0000000 0000000 00000000107 13774351224 0022414 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/atanh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/cbrt.js 0000664 0000000 0000000 00000000106 13774351224 0022252 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/cbrt');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/clamp.js 0000664 0000000 0000000 00000000173 13774351224 0022420 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.clamp');
var path = require('../../internals/path');
module.exports = path.Math.clamp;
core-js-3.8.2/packages/core-js/features/math/clz32.js 0000664 0000000 0000000 00000000107 13774351224 0022256 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/clz32');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/cosh.js 0000664 0000000 0000000 00000000106 13774351224 0022254 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/cosh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/deg-per-rad.js 0000664 0000000 0000000 00000000123 13774351224 0023406 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.deg-per-rad');
module.exports = Math.PI / 180;
core-js-3.8.2/packages/core-js/features/math/degrees.js 0000664 0000000 0000000 00000000177 13774351224 0022746 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.degrees');
var path = require('../../internals/path');
module.exports = path.Math.degrees;
core-js-3.8.2/packages/core-js/features/math/expm1.js 0000664 0000000 0000000 00000000107 13774351224 0022353 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/expm1');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/fround.js 0000664 0000000 0000000 00000000110 13774351224 0022610 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/fround');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/fscale.js 0000664 0000000 0000000 00000000175 13774351224 0022563 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.fscale');
var path = require('../../internals/path');
module.exports = path.Math.fscale;
core-js-3.8.2/packages/core-js/features/math/hypot.js 0000664 0000000 0000000 00000000107 13774351224 0022464 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/hypot');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/iaddh.js 0000664 0000000 0000000 00000000173 13774351224 0022375 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.iaddh');
var path = require('../../internals/path');
module.exports = path.Math.iaddh;
core-js-3.8.2/packages/core-js/features/math/imul.js 0000664 0000000 0000000 00000000106 13774351224 0022266 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/imul');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/imulh.js 0000664 0000000 0000000 00000000173 13774351224 0022442 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.imulh');
var path = require('../../internals/path');
module.exports = path.Math.imulh;
core-js-3.8.2/packages/core-js/features/math/index.js 0000664 0000000 0000000 00000001267 13774351224 0022440 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math');
require('../../modules/esnext.math.clamp');
require('../../modules/esnext.math.deg-per-rad');
require('../../modules/esnext.math.degrees');
require('../../modules/esnext.math.fscale');
require('../../modules/esnext.math.rad-per-deg');
require('../../modules/esnext.math.radians');
require('../../modules/esnext.math.scale');
require('../../modules/esnext.math.seeded-prng');
require('../../modules/esnext.math.signbit');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.math.iaddh');
require('../../modules/esnext.math.isubh');
require('../../modules/esnext.math.imulh');
require('../../modules/esnext.math.umulh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/isubh.js 0000664 0000000 0000000 00000000173 13774351224 0022436 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.isubh');
var path = require('../../internals/path');
module.exports = path.Math.isubh;
core-js-3.8.2/packages/core-js/features/math/log10.js 0000664 0000000 0000000 00000000107 13774351224 0022243 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log10');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/log1p.js 0000664 0000000 0000000 00000000107 13774351224 0022343 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log1p');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/log2.js 0000664 0000000 0000000 00000000106 13774351224 0022163 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log2');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/rad-per-deg.js 0000664 0000000 0000000 00000000123 13774351224 0023406 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.rad-per-deg');
module.exports = 180 / Math.PI;
core-js-3.8.2/packages/core-js/features/math/radians.js 0000664 0000000 0000000 00000000177 13774351224 0022751 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.radians');
var path = require('../../internals/path');
module.exports = path.Math.radians;
core-js-3.8.2/packages/core-js/features/math/scale.js 0000664 0000000 0000000 00000000173 13774351224 0022413 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.scale');
var path = require('../../internals/path');
module.exports = path.Math.scale;
core-js-3.8.2/packages/core-js/features/math/seeded-prng.js 0000664 0000000 0000000 00000000206 13774351224 0023516 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.seeded-prng');
var path = require('../../internals/path');
module.exports = path.Math.seededPRNG;
core-js-3.8.2/packages/core-js/features/math/sign.js 0000664 0000000 0000000 00000000106 13774351224 0022260 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/sign');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/signbit.js 0000664 0000000 0000000 00000000177 13774351224 0022767 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.signbit');
var path = require('../../internals/path');
module.exports = path.Math.signbit;
core-js-3.8.2/packages/core-js/features/math/sinh.js 0000664 0000000 0000000 00000000106 13774351224 0022261 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/sinh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/tanh.js 0000664 0000000 0000000 00000000106 13774351224 0022252 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/tanh');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/to-string-tag.js 0000664 0000000 0000000 00000000117 13774351224 0024021 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/trunc.js 0000664 0000000 0000000 00000000107 13774351224 0022454 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/trunc');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/math/umulh.js 0000664 0000000 0000000 00000000173 13774351224 0022456 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.math.umulh');
var path = require('../../internals/path');
module.exports = path.Math.umulh;
core-js-3.8.2/packages/core-js/features/number/ 0000775 0000000 0000000 00000000000 13774351224 0021324 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/number/constructor.js 0000664 0000000 0000000 00000000117 13774351224 0024246 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/epsilon.js 0000664 0000000 0000000 00000000113 13774351224 0023326 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/epsilon');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/from-string.js 0000664 0000000 0000000 00000000212 13774351224 0024124 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.number.from-string');
var path = require('../../internals/path');
module.exports = path.Number.fromString;
core-js-3.8.2/packages/core-js/features/number/index.js 0000664 0000000 0000000 00000000246 13774351224 0022773 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number');
module.exports = parent;
require('../../modules/esnext.number.from-string');
require('../../modules/esnext.number.range');
core-js-3.8.2/packages/core-js/features/number/is-finite.js 0000664 0000000 0000000 00000000115 13774351224 0023546 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-finite');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/is-integer.js 0000664 0000000 0000000 00000000116 13774351224 0023726 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/is-nan.js 0000664 0000000 0000000 00000000112 13774351224 0023041 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-nan');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/is-safe-integer.js 0000664 0000000 0000000 00000000123 13774351224 0024640 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/max-safe-integer.js 0000664 0000000 0000000 00000000124 13774351224 0025013 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/max-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/min-safe-integer.js 0000664 0000000 0000000 00000000124 13774351224 0025011 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/min-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/parse-float.js 0000664 0000000 0000000 00000000117 13774351224 0024076 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/parse-float');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/parse-int.js 0000664 0000000 0000000 00000000115 13774351224 0023561 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/parse-int');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/range.js 0000664 0000000 0000000 00000000177 13774351224 0022763 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.number.range');
var path = require('../../internals/path');
module.exports = path.Number.range;
core-js-3.8.2/packages/core-js/features/number/to-fixed.js 0000664 0000000 0000000 00000000114 13774351224 0023375 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/to-fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/to-precision.js 0000664 0000000 0000000 00000000120 13774351224 0024266 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/to-precision');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0023012 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/number/virtual/index.js 0000664 0000000 0000000 00000000116 13774351224 0024455 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/virtual/to-fixed.js 0000664 0000000 0000000 00000000127 13774351224 0025067 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual/to-fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/number/virtual/to-precision.js 0000664 0000000 0000000 00000000133 13774351224 0025760 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual/to-precision');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/ 0000775 0000000 0000000 00000000000 13774351224 0021302 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/object/assign.js 0000664 0000000 0000000 00000000112 13774351224 0023116 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/assign');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/create.js 0000664 0000000 0000000 00000000112 13774351224 0023075 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/create');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/define-getter.js 0000664 0000000 0000000 00000000121 13774351224 0024354 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-getter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/define-properties.js 0000664 0000000 0000000 00000000125 13774351224 0025262 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-properties');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/define-property.js 0000664 0000000 0000000 00000000123 13774351224 0024750 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/define-setter.js 0000664 0000000 0000000 00000000121 13774351224 0024370 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-setter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/entries.js 0000664 0000000 0000000 00000000113 13774351224 0023304 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/freeze.js 0000664 0000000 0000000 00000000112 13774351224 0023112 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/freeze');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/from-entries.js 0000664 0000000 0000000 00000000120 13774351224 0024243 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/from-entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/get-own-property-descriptor.js 0000664 0000000 0000000 00000000137 13774351224 0027257 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-descriptor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/get-own-property-descriptors.js 0000664 0000000 0000000 00000000140 13774351224 0027434 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-descriptors');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/get-own-property-names.js 0000664 0000000 0000000 00000000132 13774351224 0026177 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-names');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/get-own-property-symbols.js 0000664 0000000 0000000 00000000134 13774351224 0026566 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-symbols');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/get-prototype-of.js 0000664 0000000 0000000 00000000124 13774351224 0025061 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/index.js 0000664 0000000 0000000 00000000347 13774351224 0022753 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object');
require('../../modules/esnext.object.iterate-entries');
require('../../modules/esnext.object.iterate-keys');
require('../../modules/esnext.object.iterate-values');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/is-extensible.js 0000664 0000000 0000000 00000000121 13774351224 0024405 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-extensible');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/is-frozen.js 0000664 0000000 0000000 00000000115 13774351224 0023551 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-frozen');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/is-sealed.js 0000664 0000000 0000000 00000000115 13774351224 0023503 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-sealed');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/is.js 0000664 0000000 0000000 00000000106 13774351224 0022250 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/iterate-entries.js 0000664 0000000 0000000 00000000222 13774351224 0024740 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.object.iterate-entries');
var path = require('../../internals/path');
module.exports = path.Object.iterateEntries;
core-js-3.8.2/packages/core-js/features/object/iterate-keys.js 0000664 0000000 0000000 00000000214 13774351224 0024243 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.object.iterate-keys');
var path = require('../../internals/path');
module.exports = path.Object.iterateKeys;
core-js-3.8.2/packages/core-js/features/object/iterate-values.js 0000664 0000000 0000000 00000000220 13774351224 0024564 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.object.iterate-values');
var path = require('../../internals/path');
module.exports = path.Object.iterateValues;
core-js-3.8.2/packages/core-js/features/object/keys.js 0000664 0000000 0000000 00000000110 13774351224 0022603 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/lookup-getter.js 0000664 0000000 0000000 00000000121 13774351224 0024433 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/lookup-getter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/lookup-setter.js 0000664 0000000 0000000 00000000121 13774351224 0024447 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/lookup-setter');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/prevent-extensions.js 0000664 0000000 0000000 00000000126 13774351224 0025517 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/prevent-extensions');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/seal.js 0000664 0000000 0000000 00000000110 13774351224 0022554 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/seal');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/set-prototype-of.js 0000664 0000000 0000000 00000000124 13774351224 0025075 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/set-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/to-string.js 0000664 0000000 0000000 00000000115 13774351224 0023563 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/object/values.js 0000664 0000000 0000000 00000000112 13774351224 0023131 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/observable/ 0000775 0000000 0000000 00000000000 13774351224 0022160 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/observable/index.js 0000664 0000000 0000000 00000000500 13774351224 0023620 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.observable');
require('../../modules/esnext.symbol.observable');
require('../../modules/es.object.to-string');
require('../../modules/es.string.iterator');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
module.exports = path.Observable;
core-js-3.8.2/packages/core-js/features/parse-float.js 0000664 0000000 0000000 00000000105 13774351224 0022603 0 ustar 00root root 0000000 0000000 var parent = require('../es/parse-float');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/parse-int.js 0000664 0000000 0000000 00000000103 13774351224 0022266 0 ustar 00root root 0000000 0000000 var parent = require('../es/parse-int');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/promise/ 0000775 0000000 0000000 00000000000 13774351224 0021512 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/promise/all-settled.js 0000664 0000000 0000000 00000000247 13774351224 0024265 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('../../modules/esnext.promise.all-settled');
var parent = require('../../es/promise/all-settled');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/promise/any.js 0000664 0000000 0000000 00000000310 13774351224 0022631 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise/any');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.aggregate-error');
require('../../modules/esnext.promise.any');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/promise/finally.js 0000664 0000000 0000000 00000000114 13774351224 0023502 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise/finally');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/promise/index.js 0000664 0000000 0000000 00000000445 13774351224 0023162 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise');
require('../../modules/esnext.aggregate-error');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.promise.all-settled');
require('../../modules/esnext.promise.try');
require('../../modules/esnext.promise.any');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/promise/try.js 0000664 0000000 0000000 00000000534 13774351224 0022670 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.promise');
require('../../modules/esnext.promise.try');
var path = require('../../internals/path');
var Promise = path.Promise;
var promiseTry = Promise['try'];
module.exports = { 'try': function (callbackfn) {
return promiseTry.call(typeof this === 'function' ? this : Promise, callbackfn);
} }['try'];
core-js-3.8.2/packages/core-js/features/queue-microtask.js 0000664 0000000 0000000 00000000115 13774351224 0023505 0 ustar 00root root 0000000 0000000 var parent = require('../stable/queue-microtask');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/ 0000775 0000000 0000000 00000000000 13774351224 0021460 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/reflect/apply.js 0000664 0000000 0000000 00000000112 13774351224 0023135 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/apply');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/construct.js 0000664 0000000 0000000 00000000116 13774351224 0024040 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/construct');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/define-metadata.js 0000664 0000000 0000000 00000000224 13774351224 0025024 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.define-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.defineMetadata;
core-js-3.8.2/packages/core-js/features/reflect/define-property.js 0000664 0000000 0000000 00000000124 13774351224 0025127 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/define-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/delete-metadata.js 0000664 0000000 0000000 00000000224 13774351224 0025034 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.delete-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.deleteMetadata;
core-js-3.8.2/packages/core-js/features/reflect/delete-property.js 0000664 0000000 0000000 00000000124 13774351224 0025137 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/delete-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/get-metadata-keys.js 0000664 0000000 0000000 00000000227 13774351224 0025325 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.get-metadata-keys');
var path = require('../../internals/path');
module.exports = path.Reflect.getMetadataKeys;
core-js-3.8.2/packages/core-js/features/reflect/get-metadata.js 0000664 0000000 0000000 00000000216 13774351224 0024352 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.get-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.getMetadata;
core-js-3.8.2/packages/core-js/features/reflect/get-own-metadata-keys.js 0000664 0000000 0000000 00000000236 13774351224 0026126 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.get-own-metadata-keys');
var path = require('../../internals/path');
module.exports = path.Reflect.getOwnMetadataKeys;
core-js-3.8.2/packages/core-js/features/reflect/get-own-metadata.js 0000664 0000000 0000000 00000000225 13774351224 0025153 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.get-own-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.getOwnMetadata;
core-js-3.8.2/packages/core-js/features/reflect/get-own-property-descriptor.js 0000664 0000000 0000000 00000000140 13774351224 0027427 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get-own-property-descriptor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/get-prototype-of.js 0000664 0000000 0000000 00000000125 13774351224 0025240 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/get.js 0000664 0000000 0000000 00000000110 13774351224 0022565 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/has-metadata.js 0000664 0000000 0000000 00000000216 13774351224 0024346 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.has-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.hasMetadata;
core-js-3.8.2/packages/core-js/features/reflect/has-own-metadata.js 0000664 0000000 0000000 00000000225 13774351224 0025147 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.has-own-metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.hasOwnMetadata;
core-js-3.8.2/packages/core-js/features/reflect/has.js 0000664 0000000 0000000 00000000110 13774351224 0022561 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/has');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/index.js 0000664 0000000 0000000 00000001102 13774351224 0023117 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect');
require('../../modules/esnext.reflect.define-metadata');
require('../../modules/esnext.reflect.delete-metadata');
require('../../modules/esnext.reflect.get-metadata');
require('../../modules/esnext.reflect.get-metadata-keys');
require('../../modules/esnext.reflect.get-own-metadata');
require('../../modules/esnext.reflect.get-own-metadata-keys');
require('../../modules/esnext.reflect.has-metadata');
require('../../modules/esnext.reflect.has-own-metadata');
require('../../modules/esnext.reflect.metadata');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/is-extensible.js 0000664 0000000 0000000 00000000122 13774351224 0024564 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/is-extensible');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/metadata.js 0000664 0000000 0000000 00000000207 13774351224 0023575 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.reflect.metadata');
var path = require('../../internals/path');
module.exports = path.Reflect.metadata;
core-js-3.8.2/packages/core-js/features/reflect/own-keys.js 0000664 0000000 0000000 00000000115 13774351224 0023567 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/own-keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/prevent-extensions.js 0000664 0000000 0000000 00000000127 13774351224 0025676 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/prevent-extensions');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/set-prototype-of.js 0000664 0000000 0000000 00000000125 13774351224 0025254 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/set-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/set.js 0000664 0000000 0000000 00000000110 13774351224 0022601 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/set');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/reflect/to-string-tag.js 0000664 0000000 0000000 00000000120 13774351224 0024506 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.to-string-tag');
module.exports = 'Reflect';
core-js-3.8.2/packages/core-js/features/regexp/ 0000775 0000000 0000000 00000000000 13774351224 0021326 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/regexp/constructor.js 0000664 0000000 0000000 00000000117 13774351224 0024250 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/flags.js 0000664 0000000 0000000 00000000111 13774351224 0022751 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/flags');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/index.js 0000664 0000000 0000000 00000000103 13774351224 0022765 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/match.js 0000664 0000000 0000000 00000000111 13774351224 0022751 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/replace.js 0000664 0000000 0000000 00000000113 13774351224 0023272 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/search.js 0000664 0000000 0000000 00000000112 13774351224 0023123 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/split.js 0000664 0000000 0000000 00000000111 13774351224 0023010 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/sticky.js 0000664 0000000 0000000 00000000112 13774351224 0023164 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/sticky');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/test.js 0000664 0000000 0000000 00000000110 13774351224 0022633 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/test');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/regexp/to-string.js 0000664 0000000 0000000 00000000115 13774351224 0023607 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/set-immediate.js 0000664 0000000 0000000 00000000113 13774351224 0023114 0 ustar 00root root 0000000 0000000 var parent = require('../stable/set-immediate');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/set-interval.js 0000664 0000000 0000000 00000000112 13774351224 0023001 0 ustar 00root root 0000000 0000000 var parent = require('../stable/set-interval');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/set-timeout.js 0000664 0000000 0000000 00000000111 13774351224 0022642 0 ustar 00root root 0000000 0000000 var parent = require('../stable/set-timeout');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/set/ 0000775 0000000 0000000 00000000000 13774351224 0020627 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/set/add-all.js 0000664 0000000 0000000 00000000271 13774351224 0022463 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.add-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'addAll');
core-js-3.8.2/packages/core-js/features/set/delete-all.js 0000664 0000000 0000000 00000000277 13774351224 0023203 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.delete-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'deleteAll');
core-js-3.8.2/packages/core-js/features/set/difference.js 0000664 0000000 0000000 00000000444 13774351224 0023261 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.difference');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'difference');
core-js-3.8.2/packages/core-js/features/set/every.js 0000664 0000000 0000000 00000000266 13774351224 0022323 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.every');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'every');
core-js-3.8.2/packages/core-js/features/set/filter.js 0000664 0000000 0000000 00000000270 13774351224 0022451 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.filter');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'filter');
core-js-3.8.2/packages/core-js/features/set/find.js 0000664 0000000 0000000 00000000264 13774351224 0022107 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.find');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'find');
core-js-3.8.2/packages/core-js/features/set/from.js 0000664 0000000 0000000 00000000653 13774351224 0022134 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Set = path.Set;
var setFrom = Set.from;
module.exports = function from(source, mapFn, thisArg) {
return setFrom.call(typeof this === 'function' ? this : Set, source, mapFn, thisArg);
};
core-js-3.8.2/packages/core-js/features/set/index.js 0000664 0000000 0000000 00000001574 13774351224 0022303 0 ustar 00root root 0000000 0000000 var parent = require('../../es/set');
require('../../modules/esnext.set.from');
require('../../modules/esnext.set.of');
require('../../modules/esnext.set.add-all');
require('../../modules/esnext.set.delete-all');
require('../../modules/esnext.set.every');
require('../../modules/esnext.set.difference');
require('../../modules/esnext.set.filter');
require('../../modules/esnext.set.find');
require('../../modules/esnext.set.intersection');
require('../../modules/esnext.set.is-disjoint-from');
require('../../modules/esnext.set.is-subset-of');
require('../../modules/esnext.set.is-superset-of');
require('../../modules/esnext.set.join');
require('../../modules/esnext.set.map');
require('../../modules/esnext.set.reduce');
require('../../modules/esnext.set.some');
require('../../modules/esnext.set.symmetric-difference');
require('../../modules/esnext.set.union');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/set/intersection.js 0000664 0000000 0000000 00000000304 13774351224 0023670 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.intersection');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'intersection');
core-js-3.8.2/packages/core-js/features/set/is-disjoint-from.js 0000664 0000000 0000000 00000000312 13774351224 0024356 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.is-disjoint-from');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'isDisjointFrom');
core-js-3.8.2/packages/core-js/features/set/is-subset-of.js 0000664 0000000 0000000 00000000446 13774351224 0023511 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.is-subset-of');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'isSubsetOf');
core-js-3.8.2/packages/core-js/features/set/is-superset-of.js 0000664 0000000 0000000 00000000306 13774351224 0024051 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.is-superset-of');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'isSupersetOf');
core-js-3.8.2/packages/core-js/features/set/join.js 0000664 0000000 0000000 00000000264 13774351224 0022126 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.join');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'join');
core-js-3.8.2/packages/core-js/features/set/map.js 0000664 0000000 0000000 00000000262 13774351224 0021742 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.map');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'map');
core-js-3.8.2/packages/core-js/features/set/of.js 0000664 0000000 0000000 00000000577 13774351224 0021602 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.of');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var Set = path.Set;
var setOf = Set.of;
module.exports = function of() {
return setOf.apply(typeof this === 'function' ? this : Set, arguments);
};
core-js-3.8.2/packages/core-js/features/set/reduce.js 0000664 0000000 0000000 00000000270 13774351224 0022433 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.reduce');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'reduce');
core-js-3.8.2/packages/core-js/features/set/some.js 0000664 0000000 0000000 00000000264 13774351224 0022132 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/esnext.set.some');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'some');
core-js-3.8.2/packages/core-js/features/set/symmetric-difference.js 0000664 0000000 0000000 00000000467 13774351224 0025300 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.symmetric-difference');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'symmetricDifference');
core-js-3.8.2/packages/core-js/features/set/union.js 0000664 0000000 0000000 00000000432 13774351224 0022314 0 ustar 00root root 0000000 0000000 require('../../modules/es.set');
require('../../modules/es.string.iterator');
require('../../modules/esnext.set.union');
require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Set', 'union');
core-js-3.8.2/packages/core-js/features/string/ 0000775 0000000 0000000 00000000000 13774351224 0021342 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/string/anchor.js 0000664 0000000 0000000 00000000112 13774351224 0023144 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/anchor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/at.js 0000664 0000000 0000000 00000000225 13774351224 0022303 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.string.at');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('String', 'at');
core-js-3.8.2/packages/core-js/features/string/big.js 0000664 0000000 0000000 00000000107 13774351224 0022437 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/big');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/blink.js 0000664 0000000 0000000 00000000111 13774351224 0022770 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/blink');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/bold.js 0000664 0000000 0000000 00000000110 13774351224 0022610 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/bold');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/code-point-at.js 0000664 0000000 0000000 00000000121 13774351224 0024335 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/code-points.js 0000664 0000000 0000000 00000000207 13774351224 0024123 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.string.code-points');
module.exports = require('../../internals/entry-unbind')('String', 'codePoints');
core-js-3.8.2/packages/core-js/features/string/ends-with.js 0000664 0000000 0000000 00000000115 13774351224 0023577 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/fixed.js 0000664 0000000 0000000 00000000111 13774351224 0022770 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/fontcolor.js 0000664 0000000 0000000 00000000115 13774351224 0023702 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fontcolor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/fontsize.js 0000664 0000000 0000000 00000000114 13774351224 0023535 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fontsize');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/from-code-point.js 0000664 0000000 0000000 00000000123 13774351224 0024676 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/from-code-point');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/includes.js 0000664 0000000 0000000 00000000114 13774351224 0023502 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/index.js 0000664 0000000 0000000 00000000656 13774351224 0023016 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string');
require('../../modules/esnext.string.at');
// TODO: disabled by default because of the conflict with another proposal
// require('../../modules/esnext.string.at-alternative');
require('../../modules/esnext.string.code-points');
// TODO: remove from `core-js@4`
require('../../modules/esnext.string.match-all');
require('../../modules/esnext.string.replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/italics.js 0000664 0000000 0000000 00000000113 13774351224 0023323 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/italics');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/iterator.js 0000664 0000000 0000000 00000000114 13774351224 0023525 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/link.js 0000664 0000000 0000000 00000000110 13774351224 0022625 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/link');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/match-all.js 0000664 0000000 0000000 00000000241 13774351224 0023537 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../modules/esnext.string.match-all');
var parent = require('../../es/string/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/match.js 0000664 0000000 0000000 00000000111 13774351224 0022765 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/pad-end.js 0000664 0000000 0000000 00000000113 13774351224 0023203 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/pad-start.js 0000664 0000000 0000000 00000000115 13774351224 0023574 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/raw.js 0000664 0000000 0000000 00000000107 13774351224 0022467 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/raw');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/repeat.js 0000664 0000000 0000000 00000000112 13774351224 0023152 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/replace-all.js 0000664 0000000 0000000 00000000245 13774351224 0024062 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../modules/esnext.string.replace-all');
var parent = require('../../es/string/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/replace.js 0000664 0000000 0000000 00000000113 13774351224 0023306 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/search.js 0000664 0000000 0000000 00000000112 13774351224 0023137 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/small.js 0000664 0000000 0000000 00000000111 13774351224 0023001 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/small');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/split.js 0000664 0000000 0000000 00000000111 13774351224 0023024 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/starts-with.js 0000664 0000000 0000000 00000000117 13774351224 0024170 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/strike.js 0000664 0000000 0000000 00000000112 13774351224 0023173 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/strike');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/sub.js 0000664 0000000 0000000 00000000107 13774351224 0022467 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/sub');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/sup.js 0000664 0000000 0000000 00000000107 13774351224 0022505 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/sup');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/trim-end.js 0000664 0000000 0000000 00000000114 13774351224 0023413 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/trim-left.js 0000664 0000000 0000000 00000000115 13774351224 0023600 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/trim-right.js 0000664 0000000 0000000 00000000116 13774351224 0023764 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/trim-start.js 0000664 0000000 0000000 00000000116 13774351224 0024004 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/trim.js 0000664 0000000 0000000 00000000110 13774351224 0022643 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0023030 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/string/virtual/anchor.js 0000664 0000000 0000000 00000000125 13774351224 0024636 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/anchor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/at.js 0000664 0000000 0000000 00000000233 13774351224 0023770 0 ustar 00root root 0000000 0000000 require('../../../modules/esnext.string.at');
var entryVirtual = require('../../../internals/entry-virtual');
module.exports = entryVirtual('String').at;
core-js-3.8.2/packages/core-js/features/string/virtual/big.js 0000664 0000000 0000000 00000000122 13774351224 0024122 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/big');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/blink.js 0000664 0000000 0000000 00000000124 13774351224 0024462 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/blink');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/bold.js 0000664 0000000 0000000 00000000123 13774351224 0024302 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/bold');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/code-point-at.js 0000664 0000000 0000000 00000000134 13774351224 0026027 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/code-points.js 0000664 0000000 0000000 00000000213 13774351224 0025606 0 ustar 00root root 0000000 0000000 require('../../../modules/esnext.string.code-points');
module.exports = require('../../../internals/entry-virtual')('String').codePoints;
core-js-3.8.2/packages/core-js/features/string/virtual/ends-with.js 0000664 0000000 0000000 00000000130 13774351224 0025262 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/fixed.js 0000664 0000000 0000000 00000000124 13774351224 0024462 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/fontcolor.js 0000664 0000000 0000000 00000000130 13774351224 0025365 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fontcolor');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/fontsize.js 0000664 0000000 0000000 00000000127 13774351224 0025227 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fontsize');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/includes.js 0000664 0000000 0000000 00000000127 13774351224 0025174 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/index.js 0000664 0000000 0000000 00000000710 13774351224 0024473 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual');
require('../../../modules/esnext.string.at');
// TODO: disabled by default because of the conflict with another proposal
// require('../../../modules/esnext.string.at-alternative');
require('../../../modules/esnext.string.code-points');
// TODO: remove from `core-js@4`
require('../../../modules/esnext.string.match-all');
require('../../../modules/esnext.string.replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/italics.js 0000664 0000000 0000000 00000000126 13774351224 0025015 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/italics');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/iterator.js 0000664 0000000 0000000 00000000127 13774351224 0025217 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/link.js 0000664 0000000 0000000 00000000123 13774351224 0024317 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/link');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/match-all.js 0000664 0000000 0000000 00000000257 13774351224 0025234 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../../modules/esnext.string.match-all');
var parent = require('../../../es/string/virtual/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/pad-end.js 0000664 0000000 0000000 00000000126 13774351224 0024675 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/pad-start.js 0000664 0000000 0000000 00000000130 13774351224 0025257 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/repeat.js 0000664 0000000 0000000 00000000125 13774351224 0024644 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/replace-all.js 0000664 0000000 0000000 00000000263 13774351224 0025550 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../../../modules/esnext.string.replace-all');
var parent = require('../../../es/string/virtual/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/small.js 0000664 0000000 0000000 00000000124 13774351224 0024473 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/small');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/starts-with.js 0000664 0000000 0000000 00000000132 13774351224 0025653 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/strike.js 0000664 0000000 0000000 00000000125 13774351224 0024665 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/strike');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/sub.js 0000664 0000000 0000000 00000000122 13774351224 0024152 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/sub');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/sup.js 0000664 0000000 0000000 00000000122 13774351224 0024170 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/sup');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/trim-end.js 0000664 0000000 0000000 00000000127 13774351224 0025105 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/trim-left.js 0000664 0000000 0000000 00000000130 13774351224 0025263 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/trim-right.js 0000664 0000000 0000000 00000000131 13774351224 0025447 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/trim-start.js 0000664 0000000 0000000 00000000131 13774351224 0025467 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/string/virtual/trim.js 0000664 0000000 0000000 00000000123 13774351224 0024335 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/ 0000775 0000000 0000000 00000000000 13774351224 0021341 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/symbol/async-dispose.js 0000664 0000000 0000000 00000000321 13774351224 0024454 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.symbol.async-dispose');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('asyncDispose');
core-js-3.8.2/packages/core-js/features/symbol/async-iterator.js 0000664 0000000 0000000 00000000122 13774351224 0024636 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/async-iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/description.js 0000664 0000000 0000000 00000000060 13774351224 0024216 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.description');
core-js-3.8.2/packages/core-js/features/symbol/dispose.js 0000664 0000000 0000000 00000000306 13774351224 0023344 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.symbol.dispose');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('dispose');
core-js-3.8.2/packages/core-js/features/symbol/for.js 0000664 0000000 0000000 00000000107 13774351224 0022463 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/for');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/has-instance.js 0000664 0000000 0000000 00000000120 13774351224 0024245 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/has-instance');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/index.js 0000664 0000000 0000000 00000000547 13774351224 0023014 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol');
require('../../modules/esnext.symbol.async-dispose');
require('../../modules/esnext.symbol.dispose');
require('../../modules/esnext.symbol.observable');
require('../../modules/esnext.symbol.pattern-match');
// TODO: Remove from `core-js@4`
require('../../modules/esnext.symbol.replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/is-concat-spreadable.js 0000664 0000000 0000000 00000000130 13774351224 0025651 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/is-concat-spreadable');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/iterator.js 0000664 0000000 0000000 00000000114 13774351224 0023524 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/key-for.js 0000664 0000000 0000000 00000000113 13774351224 0023246 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/key-for');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/match-all.js 0000664 0000000 0000000 00000000115 13774351224 0023536 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/match.js 0000664 0000000 0000000 00000000111 13774351224 0022764 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/observable.js 0000664 0000000 0000000 00000000314 13774351224 0024021 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.symbol.observable');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('observable');
core-js-3.8.2/packages/core-js/features/symbol/pattern-match.js 0000664 0000000 0000000 00000000321 13774351224 0024442 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.symbol.pattern-match');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('patternMatch');
core-js-3.8.2/packages/core-js/features/symbol/replace-all.js 0000664 0000000 0000000 00000000356 13774351224 0024064 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('../../modules/esnext.symbol.replace-all');
var WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');
module.exports = WrappedWellKnownSymbolModule.f('replaceAll');
core-js-3.8.2/packages/core-js/features/symbol/replace.js 0000664 0000000 0000000 00000000113 13774351224 0023305 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/search.js 0000664 0000000 0000000 00000000112 13774351224 0023136 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/species.js 0000664 0000000 0000000 00000000113 13774351224 0023325 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/species');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/split.js 0000664 0000000 0000000 00000000111 13774351224 0023023 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/to-primitive.js 0000664 0000000 0000000 00000000120 13774351224 0024320 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/to-primitive');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/to-string-tag.js 0000664 0000000 0000000 00000000121 13774351224 0024370 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/symbol/unscopables.js 0000664 0000000 0000000 00000000117 13774351224 0024214 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/unscopables');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/ 0000775 0000000 0000000 00000000000 13774351224 0022275 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/typed-array/at.js 0000664 0000000 0000000 00000000060 13774351224 0023233 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.typed-array.at');
core-js-3.8.2/packages/core-js/features/typed-array/copy-within.js 0000664 0000000 0000000 00000000065 13774351224 0025106 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.copy-within');
core-js-3.8.2/packages/core-js/features/typed-array/entries.js 0000664 0000000 0000000 00000000062 13774351224 0024302 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/features/typed-array/every.js 0000664 0000000 0000000 00000000057 13774351224 0023767 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.every');
core-js-3.8.2/packages/core-js/features/typed-array/fill.js 0000664 0000000 0000000 00000000056 13774351224 0023562 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.fill');
core-js-3.8.2/packages/core-js/features/typed-array/filter-out.js 0000664 0000000 0000000 00000000070 13774351224 0024722 0 ustar 00root root 0000000 0000000 require('../../modules/esnext.typed-array.filter-out');
core-js-3.8.2/packages/core-js/features/typed-array/filter.js 0000664 0000000 0000000 00000000060 13774351224 0024114 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.filter');
core-js-3.8.2/packages/core-js/features/typed-array/find-index.js 0000664 0000000 0000000 00000000064 13774351224 0024660 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find-index');
core-js-3.8.2/packages/core-js/features/typed-array/find.js 0000664 0000000 0000000 00000000056 13774351224 0023554 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find');
core-js-3.8.2/packages/core-js/features/typed-array/float32-array.js 0000664 0000000 0000000 00000000126 13774351224 0025220 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/float32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/float64-array.js 0000664 0000000 0000000 00000000126 13774351224 0025225 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/float64-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/for-each.js 0000664 0000000 0000000 00000000062 13774351224 0024315 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.for-each');
core-js-3.8.2/packages/core-js/features/typed-array/from.js 0000664 0000000 0000000 00000000056 13774351224 0023577 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.from');
core-js-3.8.2/packages/core-js/features/typed-array/includes.js 0000664 0000000 0000000 00000000062 13774351224 0024437 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.includes');
core-js-3.8.2/packages/core-js/features/typed-array/index-of.js 0000664 0000000 0000000 00000000062 13774351224 0024342 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.index-of');
core-js-3.8.2/packages/core-js/features/typed-array/index.js 0000664 0000000 0000000 00000000260 13774351224 0023740 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array');
require('../../modules/esnext.typed-array.at');
require('../../modules/esnext.typed-array.filter-out');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/int16-array.js 0000664 0000000 0000000 00000000124 13774351224 0024705 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int16-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/int32-array.js 0000664 0000000 0000000 00000000124 13774351224 0024703 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/int8-array.js 0000664 0000000 0000000 00000000123 13774351224 0024625 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int8-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/iterator.js 0000664 0000000 0000000 00000000062 13774351224 0024462 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/features/typed-array/join.js 0000664 0000000 0000000 00000000056 13774351224 0023573 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.join');
core-js-3.8.2/packages/core-js/features/typed-array/keys.js 0000664 0000000 0000000 00000000062 13774351224 0023604 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/features/typed-array/last-index-of.js 0000664 0000000 0000000 00000000067 13774351224 0025310 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.last-index-of');
core-js-3.8.2/packages/core-js/features/typed-array/map.js 0000664 0000000 0000000 00000000055 13774351224 0023410 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.map');
core-js-3.8.2/packages/core-js/features/typed-array/of.js 0000664 0000000 0000000 00000000054 13774351224 0023236 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.of');
core-js-3.8.2/packages/core-js/features/typed-array/reduce-right.js 0000664 0000000 0000000 00000000066 13774351224 0025217 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce-right');
core-js-3.8.2/packages/core-js/features/typed-array/reduce.js 0000664 0000000 0000000 00000000060 13774351224 0024076 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce');
core-js-3.8.2/packages/core-js/features/typed-array/reverse.js 0000664 0000000 0000000 00000000061 13774351224 0024303 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reverse');
core-js-3.8.2/packages/core-js/features/typed-array/set.js 0000664 0000000 0000000 00000000055 13774351224 0023426 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.set');
core-js-3.8.2/packages/core-js/features/typed-array/slice.js 0000664 0000000 0000000 00000000057 13774351224 0023734 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.slice');
core-js-3.8.2/packages/core-js/features/typed-array/some.js 0000664 0000000 0000000 00000000056 13774351224 0023577 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.some');
core-js-3.8.2/packages/core-js/features/typed-array/sort.js 0000664 0000000 0000000 00000000056 13774351224 0023623 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.sort');
core-js-3.8.2/packages/core-js/features/typed-array/subarray.js 0000664 0000000 0000000 00000000062 13774351224 0024461 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.subarray');
core-js-3.8.2/packages/core-js/features/typed-array/to-locale-string.js 0000664 0000000 0000000 00000000072 13774351224 0026015 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-locale-string');
core-js-3.8.2/packages/core-js/features/typed-array/to-string.js 0000664 0000000 0000000 00000000063 13774351224 0024560 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-string');
core-js-3.8.2/packages/core-js/features/typed-array/uint16-array.js 0000664 0000000 0000000 00000000125 13774351224 0025073 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint16-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/uint32-array.js 0000664 0000000 0000000 00000000125 13774351224 0025071 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/uint8-array.js 0000664 0000000 0000000 00000000124 13774351224 0025013 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint8-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/uint8-clamped-array.js 0000664 0000000 0000000 00000000134 13774351224 0026417 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint8-clamped-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/typed-array/values.js 0000664 0000000 0000000 00000000062 13774351224 0024130 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/features/url-search-params/ 0000775 0000000 0000000 00000000000 13774351224 0023362 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/url-search-params/index.js 0000664 0000000 0000000 00000000122 13774351224 0025022 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/url-search-params');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/url/ 0000775 0000000 0000000 00000000000 13774351224 0020636 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/url/index.js 0000664 0000000 0000000 00000000104 13774351224 0022276 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/url');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/url/to-json.js 0000664 0000000 0000000 00000000114 13774351224 0022561 0 ustar 00root root 0000000 0000000 var parent = require('../../stable/url/to-json');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/weak-map/ 0000775 0000000 0000000 00000000000 13774351224 0021536 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/weak-map/delete-all.js 0000664 0000000 0000000 00000000315 13774351224 0024103 0 ustar 00root root 0000000 0000000 require('../../modules/es.weak-map');
require('../../modules/esnext.weak-map.delete-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('WeakMap', 'deleteAll');
core-js-3.8.2/packages/core-js/features/weak-map/emplace.js 0000664 0000000 0000000 00000000310 13774351224 0023474 0 ustar 00root root 0000000 0000000 require('../../modules/es.weak-map');
require('../../modules/esnext.weak-map.emplace');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('WeakMap', 'emplace');
core-js-3.8.2/packages/core-js/features/weak-map/from.js 0000664 0000000 0000000 00000000715 13774351224 0023042 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.string.iterator');
require('../../modules/es.weak-map');
require('../../modules/esnext.weak-map.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var WeakMap = path.WeakMap;
var weakMapFrom = WeakMap.from;
module.exports = function from(source, mapFn, thisArg) {
return weakMapFrom.call(typeof this === 'function' ? this : WeakMap, source, mapFn, thisArg);
};
core-js-3.8.2/packages/core-js/features/weak-map/index.js 0000664 0000000 0000000 00000000532 13774351224 0023203 0 ustar 00root root 0000000 0000000 var parent = require('../../es/weak-map');
require('../../modules/esnext.weak-map.emplace');
require('../../modules/esnext.weak-map.from');
require('../../modules/esnext.weak-map.of');
require('../../modules/esnext.weak-map.delete-all');
// TODO: remove from `core-js@4`
require('../../modules/esnext.weak-map.upsert');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/weak-map/of.js 0000664 0000000 0000000 00000000641 13774351224 0022501 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.string.iterator');
require('../../modules/es.weak-map');
require('../../modules/esnext.weak-map.of');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var WeakMap = path.WeakMap;
var weakMapOf = WeakMap.of;
module.exports = function of() {
return weakMapOf.apply(typeof this === 'function' ? this : WeakMap, arguments);
};
core-js-3.8.2/packages/core-js/features/weak-map/upsert.js 0000664 0000000 0000000 00000000306 13774351224 0023415 0 ustar 00root root 0000000 0000000 require('../../modules/es.weak-map');
require('../../modules/esnext.weak-map.upsert');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('WeakMap', 'upsert');
core-js-3.8.2/packages/core-js/features/weak-set/ 0000775 0000000 0000000 00000000000 13774351224 0021554 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/features/weak-set/add-all.js 0000664 0000000 0000000 00000000307 13774351224 0023410 0 ustar 00root root 0000000 0000000 require('../../modules/es.weak-set');
require('../../modules/esnext.weak-set.add-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('WeakSet', 'addAll');
core-js-3.8.2/packages/core-js/features/weak-set/delete-all.js 0000664 0000000 0000000 00000000315 13774351224 0024121 0 ustar 00root root 0000000 0000000 require('../../modules/es.weak-set');
require('../../modules/esnext.weak-set.delete-all');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('WeakSet', 'deleteAll');
core-js-3.8.2/packages/core-js/features/weak-set/from.js 0000664 0000000 0000000 00000000715 13774351224 0023060 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.string.iterator');
require('../../modules/es.weak-set');
require('../../modules/esnext.weak-set.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var WeakSet = path.WeakSet;
var weakSetfrom = WeakSet.from;
module.exports = function from(source, mapFn, thisArg) {
return weakSetfrom.call(typeof this === 'function' ? this : WeakSet, source, mapFn, thisArg);
};
core-js-3.8.2/packages/core-js/features/weak-set/index.js 0000664 0000000 0000000 00000000410 13774351224 0023214 0 ustar 00root root 0000000 0000000 var parent = require('../../es/weak-set');
require('../../modules/esnext.weak-set.add-all');
require('../../modules/esnext.weak-set.delete-all');
require('../../modules/esnext.weak-set.from');
require('../../modules/esnext.weak-set.of');
module.exports = parent;
core-js-3.8.2/packages/core-js/features/weak-set/of.js 0000664 0000000 0000000 00000000641 13774351224 0022517 0 ustar 00root root 0000000 0000000 'use strict';
require('../../modules/es.string.iterator');
require('../../modules/es.weak-set');
require('../../modules/esnext.weak-set.of');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');
var WeakSet = path.WeakSet;
var weakSetOf = WeakSet.of;
module.exports = function of() {
return weakSetOf.apply(typeof this === 'function' ? this : WeakSet, arguments);
};
core-js-3.8.2/packages/core-js/index.js 0000664 0000000 0000000 00000000173 13774351224 0017664 0 ustar 00root root 0000000 0000000 require('./es');
require('./proposals');
require('./web');
var path = require('./internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/internals/ 0000775 0000000 0000000 00000000000 13774351224 0020215 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/internals/README.md 0000664 0000000 0000000 00000000077 13774351224 0021500 0 ustar 00root root 0000000 0000000 This folder contains internal parts of `core-js` like helpers.
core-js-3.8.2/packages/core-js/internals/a-function.js 0000664 0000000 0000000 00000000214 13774351224 0022613 0 ustar 00root root 0000000 0000000 module.exports = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
core-js-3.8.2/packages/core-js/internals/a-possible-prototype.js 0000664 0000000 0000000 00000000320 13774351224 0024647 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
module.exports = function (it) {
if (!isObject(it) && it !== null) {
throw TypeError("Can't set " + String(it) + ' as a prototype');
} return it;
};
core-js-3.8.2/packages/core-js/internals/add-to-unscopables.js 0000664 0000000 0000000 00000001232 13774351224 0024235 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
var create = require('../internals/object-create');
var definePropertyModule = require('../internals/object-define-property');
var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;
// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create(null)
});
}
// add a key to Array.prototype[@@unscopables]
module.exports = function (key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
core-js-3.8.2/packages/core-js/internals/advance-string-index.js 0000664 0000000 0000000 00000000430 13774351224 0024562 0 ustar 00root root 0000000 0000000 'use strict';
var charAt = require('../internals/string-multibyte').charAt;
// `AdvanceStringIndex` abstract operation
// https://tc39.es/ecma262/#sec-advancestringindex
module.exports = function (S, index, unicode) {
return index + (unicode ? charAt(S, index).length : 1);
};
core-js-3.8.2/packages/core-js/internals/an-instance.js 0000664 0000000 0000000 00000000271 13774351224 0022753 0 ustar 00root root 0000000 0000000 module.exports = function (it, Constructor, name) {
if (!(it instanceof Constructor)) {
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
} return it;
};
core-js-3.8.2/packages/core-js/internals/an-object.js 0000664 0000000 0000000 00000000264 13774351224 0022417 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
module.exports = function (it) {
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};
core-js-3.8.2/packages/core-js/internals/array-buffer-native.js 0000664 0000000 0000000 00000000130 13774351224 0024416 0 ustar 00root root 0000000 0000000 module.exports = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';
core-js-3.8.2/packages/core-js/internals/array-buffer-view-core.js 0000664 0000000 0000000 00000014176 13774351224 0025047 0 ustar 00root root 0000000 0000000 'use strict';
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var isObject = require('../internals/is-object');
var has = require('../internals/has');
var classof = require('../internals/classof');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var defineProperty = require('../internals/object-define-property').f;
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var wellKnownSymbol = require('../internals/well-known-symbol');
var uid = require('../internals/uid');
var Int8Array = global.Int8Array;
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
var Uint8ClampedArray = global.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
var ObjectPrototype = Object.prototype;
var isPrototypeOf = ObjectPrototype.isPrototypeOf;
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
var TYPED_ARRAY_TAG_REQIRED = false;
var NAME;
var TypedArrayConstructorsList = {
Int8Array: 1,
Uint8Array: 1,
Uint8ClampedArray: 1,
Int16Array: 2,
Uint16Array: 2,
Int32Array: 4,
Uint32Array: 4,
Float32Array: 4,
Float64Array: 8
};
var BigIntArrayConstructorsList = {
BigInt64Array: 8,
BigUint64Array: 8
};
var isView = function isView(it) {
if (!isObject(it)) return false;
var klass = classof(it);
return klass === 'DataView'
|| has(TypedArrayConstructorsList, klass)
|| has(BigIntArrayConstructorsList, klass);
};
var isTypedArray = function (it) {
if (!isObject(it)) return false;
var klass = classof(it);
return has(TypedArrayConstructorsList, klass)
|| has(BigIntArrayConstructorsList, klass);
};
var aTypedArray = function (it) {
if (isTypedArray(it)) return it;
throw TypeError('Target is not a typed array');
};
var aTypedArrayConstructor = function (C) {
if (setPrototypeOf) {
if (isPrototypeOf.call(TypedArray, C)) return C;
} else for (var ARRAY in TypedArrayConstructorsList) if (has(TypedArrayConstructorsList, NAME)) {
var TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && (C === TypedArrayConstructor || isPrototypeOf.call(TypedArrayConstructor, C))) {
return C;
}
} throw TypeError('Target is not a typed array constructor');
};
var exportTypedArrayMethod = function (KEY, property, forced) {
if (!DESCRIPTORS) return;
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
var TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && has(TypedArrayConstructor.prototype, KEY)) {
delete TypedArrayConstructor.prototype[KEY];
}
}
if (!TypedArrayPrototype[KEY] || forced) {
redefine(TypedArrayPrototype, KEY, forced ? property
: NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);
}
};
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
var ARRAY, TypedArrayConstructor;
if (!DESCRIPTORS) return;
if (setPrototypeOf) {
if (forced) for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && has(TypedArrayConstructor, KEY)) {
delete TypedArrayConstructor[KEY];
}
}
if (!TypedArray[KEY] || forced) {
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
try {
return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && Int8Array[KEY] || property);
} catch (error) { /* empty */ }
} else return;
}
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global[ARRAY];
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
redefine(TypedArrayConstructor, KEY, property);
}
}
};
for (NAME in TypedArrayConstructorsList) {
if (!global[NAME]) NATIVE_ARRAY_BUFFER_VIEWS = false;
}
// WebKit bug - typed arrays constructors prototype is Object.prototype
if (!NATIVE_ARRAY_BUFFER_VIEWS || typeof TypedArray != 'function' || TypedArray === Function.prototype) {
// eslint-disable-next-line no-shadow
TypedArray = function TypedArray() {
throw TypeError('Incorrect invocation');
};
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);
}
}
if (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {
TypedArrayPrototype = TypedArray.prototype;
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);
}
}
// WebKit bug - one more object in Uint8ClampedArray prototype chain
if (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
}
if (DESCRIPTORS && !has(TypedArrayPrototype, TO_STRING_TAG)) {
TYPED_ARRAY_TAG_REQIRED = true;
defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () {
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
} });
for (NAME in TypedArrayConstructorsList) if (global[NAME]) {
createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);
}
}
module.exports = {
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
aTypedArray: aTypedArray,
aTypedArrayConstructor: aTypedArrayConstructor,
exportTypedArrayMethod: exportTypedArrayMethod,
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
isView: isView,
isTypedArray: isTypedArray,
TypedArray: TypedArray,
TypedArrayPrototype: TypedArrayPrototype
};
core-js-3.8.2/packages/core-js/internals/array-buffer.js 0000664 0000000 0000000 00000021624 13774351224 0023145 0 ustar 00root root 0000000 0000000 'use strict';
var global = require('../internals/global');
var DESCRIPTORS = require('../internals/descriptors');
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var fails = require('../internals/fails');
var anInstance = require('../internals/an-instance');
var toInteger = require('../internals/to-integer');
var toLength = require('../internals/to-length');
var toIndex = require('../internals/to-index');
var IEEE754 = require('../internals/ieee754');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var defineProperty = require('../internals/object-define-property').f;
var arrayFill = require('../internals/array-fill');
var setToStringTag = require('../internals/set-to-string-tag');
var InternalStateModule = require('../internals/internal-state');
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var ARRAY_BUFFER = 'ArrayBuffer';
var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH = 'Wrong length';
var WRONG_INDEX = 'Wrong index';
var NativeArrayBuffer = global[ARRAY_BUFFER];
var $ArrayBuffer = NativeArrayBuffer;
var $DataView = global[DATA_VIEW];
var $DataViewPrototype = $DataView && $DataView[PROTOTYPE];
var ObjectPrototype = Object.prototype;
var RangeError = global.RangeError;
var packIEEE754 = IEEE754.pack;
var unpackIEEE754 = IEEE754.unpack;
var packInt8 = function (number) {
return [number & 0xFF];
};
var packInt16 = function (number) {
return [number & 0xFF, number >> 8 & 0xFF];
};
var packInt32 = function (number) {
return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];
};
var unpackInt32 = function (buffer) {
return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];
};
var packFloat32 = function (number) {
return packIEEE754(number, 23, 4);
};
var packFloat64 = function (number) {
return packIEEE754(number, 52, 8);
};
var addGetter = function (Constructor, key) {
defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState(this)[key]; } });
};
var get = function (view, count, index, isLittleEndian) {
var intIndex = toIndex(index);
var store = getInternalState(view);
if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
var bytes = getInternalState(store.buffer).bytes;
var start = intIndex + store.byteOffset;
var pack = bytes.slice(start, start + count);
return isLittleEndian ? pack : pack.reverse();
};
var set = function (view, count, index, conversion, value, isLittleEndian) {
var intIndex = toIndex(index);
var store = getInternalState(view);
if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);
var bytes = getInternalState(store.buffer).bytes;
var start = intIndex + store.byteOffset;
var pack = conversion(+value);
for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1];
};
if (!NATIVE_ARRAY_BUFFER) {
$ArrayBuffer = function ArrayBuffer(length) {
anInstance(this, $ArrayBuffer, ARRAY_BUFFER);
var byteLength = toIndex(length);
setInternalState(this, {
bytes: arrayFill.call(new Array(byteLength), 0),
byteLength: byteLength
});
if (!DESCRIPTORS) this.byteLength = byteLength;
};
$DataView = function DataView(buffer, byteOffset, byteLength) {
anInstance(this, $DataView, DATA_VIEW);
anInstance(buffer, $ArrayBuffer, DATA_VIEW);
var bufferLength = getInternalState(buffer).byteLength;
var offset = toInteger(byteOffset);
if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset');
byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);
setInternalState(this, {
buffer: buffer,
byteLength: byteLength,
byteOffset: offset
});
if (!DESCRIPTORS) {
this.buffer = buffer;
this.byteLength = byteLength;
this.byteOffset = offset;
}
};
if (DESCRIPTORS) {
addGetter($ArrayBuffer, 'byteLength');
addGetter($DataView, 'buffer');
addGetter($DataView, 'byteLength');
addGetter($DataView, 'byteOffset');
}
redefineAll($DataView[PROTOTYPE], {
getInt8: function getInt8(byteOffset) {
return get(this, 1, byteOffset)[0] << 24 >> 24;
},
getUint8: function getUint8(byteOffset) {
return get(this, 1, byteOffset)[0];
},
getInt16: function getInt16(byteOffset /* , littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
return (bytes[1] << 8 | bytes[0]) << 16 >> 16;
},
getUint16: function getUint16(byteOffset /* , littleEndian */) {
var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset /* , littleEndian */) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined));
},
getUint32: function getUint32(byteOffset /* , littleEndian */) {
return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0;
},
getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23);
},
getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52);
},
setInt8: function setInt8(byteOffset, value) {
set(this, 1, byteOffset, packInt8, value);
},
setUint8: function setUint8(byteOffset, value) {
set(this, 1, byteOffset, packInt8, value);
},
setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
},
setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);
},
setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
},
setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);
},
setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined);
},
setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined);
}
});
} else {
if (!fails(function () {
NativeArrayBuffer(1);
}) || !fails(function () {
new NativeArrayBuffer(-1); // eslint-disable-line no-new
}) || fails(function () {
new NativeArrayBuffer(); // eslint-disable-line no-new
new NativeArrayBuffer(1.5); // eslint-disable-line no-new
new NativeArrayBuffer(NaN); // eslint-disable-line no-new
return NativeArrayBuffer.name != ARRAY_BUFFER;
})) {
$ArrayBuffer = function ArrayBuffer(length) {
anInstance(this, $ArrayBuffer);
return new NativeArrayBuffer(toIndex(length));
};
var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer[PROTOTYPE];
for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {
if (!((key = keys[j++]) in $ArrayBuffer)) {
createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);
}
}
ArrayBufferPrototype.constructor = $ArrayBuffer;
}
// WebKit bug - the same parent prototype for typed arrays and data view
if (setPrototypeOf && getPrototypeOf($DataViewPrototype) !== ObjectPrototype) {
setPrototypeOf($DataViewPrototype, ObjectPrototype);
}
// iOS Safari 7.x bug
var testView = new $DataView(new $ArrayBuffer(2));
var nativeSetInt8 = $DataViewPrototype.setInt8;
testView.setInt8(0, 2147483648);
testView.setInt8(1, 2147483649);
if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll($DataViewPrototype, {
setInt8: function setInt8(byteOffset, value) {
nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
},
setUint8: function setUint8(byteOffset, value) {
nativeSetInt8.call(this, byteOffset, value << 24 >> 24);
}
}, { unsafe: true });
}
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
setToStringTag($DataView, DATA_VIEW);
module.exports = {
ArrayBuffer: $ArrayBuffer,
DataView: $DataView
};
core-js-3.8.2/packages/core-js/internals/array-copy-within.js 0000664 0000000 0000000 00000001702 13774351224 0024141 0 ustar 00root root 0000000 0000000 'use strict';
var toObject = require('../internals/to-object');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toLength = require('../internals/to-length');
var min = Math.min;
// `Array.prototype.copyWithin` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.copywithin
module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
var O = toObject(this);
var len = toLength(O.length);
var to = toAbsoluteIndex(target, len);
var from = toAbsoluteIndex(start, len);
var end = arguments.length > 2 ? arguments[2] : undefined;
var count = min((end === undefined ? len : toAbsoluteIndex(end, len)) - from, len - to);
var inc = 1;
if (from < to && to < from + count) {
inc = -1;
from += count - 1;
to += count - 1;
}
while (count-- > 0) {
if (from in O) O[to] = O[from];
else delete O[to];
to += inc;
from += inc;
} return O;
};
core-js-3.8.2/packages/core-js/internals/array-fill.js 0000664 0000000 0000000 00000001342 13774351224 0022615 0 ustar 00root root 0000000 0000000 'use strict';
var toObject = require('../internals/to-object');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toLength = require('../internals/to-length');
// `Array.prototype.fill` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.fill
module.exports = function fill(value /* , start = 0, end = @length */) {
var O = toObject(this);
var length = toLength(O.length);
var argumentsLength = arguments.length;
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
var end = argumentsLength > 2 ? arguments[2] : undefined;
var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
while (endPos > index) O[index++] = value;
return O;
};
core-js-3.8.2/packages/core-js/internals/array-for-each.js 0000664 0000000 0000000 00000001221 13774351224 0023347 0 ustar 00root root 0000000 0000000 'use strict';
var $forEach = require('../internals/array-iteration').forEach;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('forEach');
var USES_TO_LENGTH = arrayMethodUsesToLength('forEach');
// `Array.prototype.forEach` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.foreach
module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
} : [].forEach;
core-js-3.8.2/packages/core-js/internals/array-from.js 0000664 0000000 0000000 00000003454 13774351224 0022640 0 ustar 00root root 0000000 0000000 'use strict';
var bind = require('../internals/function-bind-context');
var toObject = require('../internals/to-object');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');
var isArrayIteratorMethod = require('../internals/is-array-iterator-method');
var toLength = require('../internals/to-length');
var createProperty = require('../internals/create-property');
var getIteratorMethod = require('../internals/get-iterator-method');
// `Array.from` method implementation
// https://tc39.es/ecma262/#sec-array.from
module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
var O = toObject(arrayLike);
var C = typeof this == 'function' ? this : Array;
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var iteratorMethod = getIteratorMethod(O);
var index = 0;
var length, result, step, iterator, next, value;
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
// if the target is not iterable or it's an array with the default iterator - use a simple case
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
iterator = iteratorMethod.call(O);
next = iterator.next;
result = new C();
for (;!(step = next.call(iterator)).done; index++) {
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
createProperty(result, index, value);
}
} else {
length = toLength(O.length);
result = new C(length);
for (;length > index; index++) {
value = mapping ? mapfn(O[index], index) : O[index];
createProperty(result, index, value);
}
}
result.length = index;
return result;
};
core-js-3.8.2/packages/core-js/internals/array-includes.js 0000664 0000000 0000000 00000002365 13774351224 0023503 0 ustar 00root root 0000000 0000000 var toIndexedObject = require('../internals/to-indexed-object');
var toLength = require('../internals/to-length');
var toAbsoluteIndex = require('../internals/to-absolute-index');
// `Array.prototype.{ indexOf, includes }` methods implementation
var createMethod = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIndexedObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) {
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
module.exports = {
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
includes: createMethod(true),
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: createMethod(false)
};
core-js-3.8.2/packages/core-js/internals/array-iteration.js 0000664 0000000 0000000 00000005352 13774351224 0023672 0 ustar 00root root 0000000 0000000 var bind = require('../internals/function-bind-context');
var IndexedObject = require('../internals/indexed-object');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var arraySpeciesCreate = require('../internals/array-species-create');
var push = [].push;
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
var createMethod = function (TYPE) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var IS_FILTER_OUT = TYPE == 7;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
return function ($this, callbackfn, that, specificCreate) {
var O = toObject($this);
var self = IndexedObject(O);
var boundFunction = bind(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var create = specificCreate || arraySpeciesCreate;
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
var value, result;
for (;length > index; index++) if (NO_HOLES || index in self) {
value = self[index];
result = boundFunction(value, index, O);
if (TYPE) {
if (IS_MAP) target[index] = result; // map
else if (result) switch (TYPE) {
case 3: return true; // some
case 5: return value; // find
case 6: return index; // findIndex
case 2: push.call(target, value); // filter
} else switch (TYPE) {
case 4: return false; // every
case 7: push.call(target, value); // filterOut
}
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
};
};
module.exports = {
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
forEach: createMethod(0),
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
map: createMethod(1),
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
filter: createMethod(2),
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
some: createMethod(3),
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
every: createMethod(4),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
find: createMethod(5),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
findIndex: createMethod(6),
// `Array.prototype.filterOut` method
// https://github.com/tc39/proposal-array-filtering
filterOut: createMethod(7)
};
core-js-3.8.2/packages/core-js/internals/array-last-index-of.js 0000664 0000000 0000000 00000002641 13774351224 0024344 0 ustar 00root root 0000000 0000000 'use strict';
var toIndexedObject = require('../internals/to-indexed-object');
var toInteger = require('../internals/to-integer');
var toLength = require('../internals/to-length');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var min = Math.min;
var nativeLastIndexOf = [].lastIndexOf;
var NEGATIVE_ZERO = !!nativeLastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf');
// For preventing possible almost infinite loop in non-standard implementations, test the forward version of the method
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
var FORCED = NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH;
// `Array.prototype.lastIndexOf` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.lastindexof
module.exports = FORCED ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
// convert -0 to +0
if (NEGATIVE_ZERO) return nativeLastIndexOf.apply(this, arguments) || 0;
var O = toIndexedObject(this);
var length = toLength(O.length);
var index = length - 1;
if (arguments.length > 1) index = min(index, toInteger(arguments[1]));
if (index < 0) index = length + index;
for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0;
return -1;
} : nativeLastIndexOf;
core-js-3.8.2/packages/core-js/internals/array-method-has-species-support.js 0000664 0000000 0000000 00000001241 13774351224 0027061 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
var wellKnownSymbol = require('../internals/well-known-symbol');
var V8_VERSION = require('../internals/engine-v8-version');
var SPECIES = wellKnownSymbol('species');
module.exports = function (METHOD_NAME) {
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/677
return V8_VERSION >= 51 || !fails(function () {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES] = function () {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
core-js-3.8.2/packages/core-js/internals/array-method-is-strict.js 0000664 0000000 0000000 00000000501 13774351224 0025062 0 ustar 00root root 0000000 0000000 'use strict';
var fails = require('../internals/fails');
module.exports = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call,no-throw-literal
method.call(null, argument || function () { throw 1; }, 1);
});
};
core-js-3.8.2/packages/core-js/internals/array-method-uses-to-length.js 0000664 0000000 0000000 00000001576 13774351224 0026034 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var fails = require('../internals/fails');
var has = require('../internals/has');
var defineProperty = Object.defineProperty;
var cache = {};
var thrower = function (it) { throw it; };
module.exports = function (METHOD_NAME, options) {
if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
if (!options) options = {};
var method = [][METHOD_NAME];
var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
var argument0 = has(options, 0) ? options[0] : thrower;
var argument1 = has(options, 1) ? options[1] : undefined;
return cache[METHOD_NAME] = !!method && !fails(function () {
if (ACCESSORS && !DESCRIPTORS) return true;
var O = { length: -1 };
if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
else O[1] = 1;
method.call(O, argument0, argument1);
});
};
core-js-3.8.2/packages/core-js/internals/array-reduce.js 0000664 0000000 0000000 00000002457 13774351224 0023146 0 ustar 00root root 0000000 0000000 var aFunction = require('../internals/a-function');
var toObject = require('../internals/to-object');
var IndexedObject = require('../internals/indexed-object');
var toLength = require('../internals/to-length');
// `Array.prototype.{ reduce, reduceRight }` methods implementation
var createMethod = function (IS_RIGHT) {
return function (that, callbackfn, argumentsLength, memo) {
aFunction(callbackfn);
var O = toObject(that);
var self = IndexedObject(O);
var length = toLength(O.length);
var index = IS_RIGHT ? length - 1 : 0;
var i = IS_RIGHT ? -1 : 1;
if (argumentsLength < 2) while (true) {
if (index in self) {
memo = self[index];
index += i;
break;
}
index += i;
if (IS_RIGHT ? index < 0 : length <= index) {
throw TypeError('Reduce of empty array with no initial value');
}
}
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
memo = callbackfn(memo, self[index], index, O);
}
return memo;
};
};
module.exports = {
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
left: createMethod(false),
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
right: createMethod(true)
};
core-js-3.8.2/packages/core-js/internals/array-species-create.js 0000664 0000000 0000000 00000001312 13774351224 0024560 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
var isArray = require('../internals/is-array');
var wellKnownSymbol = require('../internals/well-known-symbol');
var SPECIES = wellKnownSymbol('species');
// `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
module.exports = function (originalArray, length) {
var C;
if (isArray(originalArray)) {
C = originalArray.constructor;
// cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
else if (isObject(C)) {
C = C[SPECIES];
if (C === null) C = undefined;
}
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
};
core-js-3.8.2/packages/core-js/internals/async-iterator-create-proxy.js 0000664 0000000 0000000 00000003767 13774351224 0026154 0 ustar 00root root 0000000 0000000 'use strict';
var path = require('../internals/path');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var create = require('../internals/object-create');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var wellKnownSymbol = require('../internals/well-known-symbol');
var InternalStateModule = require('../internals/internal-state');
var getBuiltIn = require('../internals/get-built-in');
var Promise = getBuiltIn('Promise');
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.get;
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var $return = function (value) {
var iterator = getInternalState(this).iterator;
var $$return = iterator['return'];
return $$return === undefined
? Promise.resolve({ done: true, value: value })
: anObject($$return.call(iterator, value));
};
var $throw = function (value) {
var iterator = getInternalState(this).iterator;
var $$throw = iterator['throw'];
return $$throw === undefined
? Promise.reject(value)
: $$throw.call(iterator, value);
};
module.exports = function (nextHandler, IS_ITERATOR) {
var AsyncIteratorProxy = function AsyncIterator(state) {
state.next = aFunction(state.iterator.next);
state.done = false;
setInternalState(this, state);
};
AsyncIteratorProxy.prototype = redefineAll(create(path.AsyncIterator.prototype), {
next: function next(arg) {
var state = getInternalState(this);
if (state.done) return Promise.resolve({ done: true, value: undefined });
try {
return Promise.resolve(anObject(nextHandler.call(state, arg, Promise)));
} catch (error) {
return Promise.reject(error);
}
},
'return': $return,
'throw': $throw
});
if (!IS_ITERATOR) {
createNonEnumerableProperty(AsyncIteratorProxy.prototype, TO_STRING_TAG, 'Generator');
}
return AsyncIteratorProxy;
};
core-js-3.8.2/packages/core-js/internals/async-iterator-iteration.js 0000664 0000000 0000000 00000004631 13774351224 0025517 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var getBuiltIn = require('../internals/get-built-in');
var Promise = getBuiltIn('Promise');
var push = [].push;
var createMethod = function (TYPE) {
var IS_TO_ARRAY = TYPE == 0;
var IS_FOR_EACH = TYPE == 1;
var IS_EVERY = TYPE == 2;
var IS_SOME = TYPE == 3;
return function (iterator, fn) {
anObject(iterator);
var next = aFunction(iterator.next);
var array = IS_TO_ARRAY ? [] : undefined;
if (!IS_TO_ARRAY) aFunction(fn);
return new Promise(function (resolve, reject) {
var closeIteration = function (method, argument) {
try {
var returnMethod = iterator['return'];
if (returnMethod !== undefined) {
return Promise.resolve(returnMethod.call(iterator)).then(function () {
method(argument);
}, function (error) {
reject(error);
});
}
} catch (error2) {
return reject(error2);
} method(argument);
};
var onError = function (error) {
closeIteration(reject, error);
};
var loop = function () {
try {
Promise.resolve(anObject(next.call(iterator))).then(function (step) {
try {
if (anObject(step).done) {
resolve(IS_TO_ARRAY ? array : IS_SOME ? false : IS_EVERY || undefined);
} else {
var value = step.value;
if (IS_TO_ARRAY) {
push.call(array, value);
loop();
} else {
Promise.resolve(fn(value)).then(function (result) {
if (IS_FOR_EACH) {
loop();
} else if (IS_EVERY) {
result ? loop() : closeIteration(resolve, false);
} else {
result ? closeIteration(resolve, IS_SOME || value) : loop();
}
}, onError);
}
}
} catch (error) { onError(error); }
}, onError);
} catch (error2) { onError(error2); }
};
loop();
});
};
};
module.exports = {
toArray: createMethod(0),
forEach: createMethod(1),
every: createMethod(2),
some: createMethod(3),
find: createMethod(4)
};
core-js-3.8.2/packages/core-js/internals/async-iterator-prototype.js 0000664 0000000 0000000 00000003002 13774351224 0025555 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var shared = require('../internals/shared-store');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var has = require('../internals/has');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_PURE = require('../internals/is-pure');
var USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR';
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
var AsyncIterator = global.AsyncIterator;
var PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype;
var AsyncIteratorPrototype, prototype;
if (!IS_PURE) {
if (PassedAsyncIteratorPrototype) {
AsyncIteratorPrototype = PassedAsyncIteratorPrototype;
} else if (typeof AsyncIterator == 'function') {
AsyncIteratorPrototype = AsyncIterator.prototype;
} else if (shared[USE_FUNCTION_CONSTRUCTOR] || global[USE_FUNCTION_CONSTRUCTOR]) {
try {
// eslint-disable-next-line no-new-func
prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')())));
if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype;
} catch (error) { /* empty */ }
}
}
if (!AsyncIteratorPrototype) AsyncIteratorPrototype = {};
if (!has(AsyncIteratorPrototype, ASYNC_ITERATOR)) {
createNonEnumerableProperty(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {
return this;
});
}
module.exports = AsyncIteratorPrototype;
core-js-3.8.2/packages/core-js/internals/call-with-safe-iteration-closing.js 0000664 0000000 0000000 00000000653 13774351224 0027007 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var iteratorClose = require('../internals/iterator-close');
// call something on iterator step with safe closing on error
module.exports = function (iterator, fn, value, ENTRIES) {
try {
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (error) {
iteratorClose(iterator);
throw error;
}
};
core-js-3.8.2/packages/core-js/internals/check-correctness-of-iteration.js 0000664 0000000 0000000 00000001650 13774351224 0026560 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
var ITERATOR = wellKnownSymbol('iterator');
var SAFE_CLOSING = false;
try {
var called = 0;
var iteratorWithReturn = {
next: function () {
return { done: !!called++ };
},
'return': function () {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[ITERATOR] = function () {
return this;
};
// eslint-disable-next-line no-throw-literal
Array.from(iteratorWithReturn, function () { throw 2; });
} catch (error) { /* empty */ }
module.exports = function (exec, SKIP_CLOSING) {
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
var ITERATION_SUPPORT = false;
try {
var object = {};
object[ITERATOR] = function () {
return {
next: function () {
return { done: ITERATION_SUPPORT = true };
}
};
};
exec(object);
} catch (error) { /* empty */ }
return ITERATION_SUPPORT;
};
core-js-3.8.2/packages/core-js/internals/classof-raw.js 0000664 0000000 0000000 00000000152 13774351224 0022772 0 ustar 00root root 0000000 0000000 var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
core-js-3.8.2/packages/core-js/internals/classof.js 0000664 0000000 0000000 00000001761 13774351224 0022212 0 ustar 00root root 0000000 0000000 var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
var classofRaw = require('../internals/classof-raw');
var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (error) { /* empty */ }
};
// getting tag from ES6+ `Object.prototype.toString`
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
var O, tag, result;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
// builtinTag case
: CORRECT_ARGUMENTS ? classofRaw(O)
// ES3 arguments fallback
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
};
core-js-3.8.2/packages/core-js/internals/collection-add-all.js 0000664 0000000 0000000 00000000603 13774351224 0024201 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
// https://github.com/tc39/collection-methods
module.exports = function (/* ...elements */) {
var set = anObject(this);
var adder = aFunction(set.add);
for (var k = 0, len = arguments.length; k < len; k++) {
adder.call(set, arguments[k]);
}
return set;
};
core-js-3.8.2/packages/core-js/internals/collection-delete-all.js 0000664 0000000 0000000 00000001016 13774351224 0024712 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
// https://github.com/tc39/collection-methods
module.exports = function (/* ...elements */) {
var collection = anObject(this);
var remover = aFunction(collection['delete']);
var allDeleted = true;
var wasDeleted;
for (var k = 0, len = arguments.length; k < len; k++) {
wasDeleted = remover.call(collection, arguments[k]);
allDeleted = allDeleted && wasDeleted;
}
return !!allDeleted;
};
core-js-3.8.2/packages/core-js/internals/collection-from.js 0000664 0000000 0000000 00000001524 13774351224 0023651 0 ustar 00root root 0000000 0000000 'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var iterate = require('../internals/iterate');
module.exports = function from(source /* , mapFn, thisArg */) {
var length = arguments.length;
var mapFn = length > 1 ? arguments[1] : undefined;
var mapping, array, n, boundFunction;
aFunction(this);
mapping = mapFn !== undefined;
if (mapping) aFunction(mapFn);
if (source == undefined) return new this();
array = [];
if (mapping) {
n = 0;
boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined, 2);
iterate(source, function (nextItem) {
array.push(boundFunction(nextItem, n++));
});
} else {
iterate(source, array.push, { that: array });
}
return new this(array);
};
core-js-3.8.2/packages/core-js/internals/collection-of.js 0000664 0000000 0000000 00000000352 13774351224 0023310 0 ustar 00root root 0000000 0000000 'use strict';
// https://tc39.github.io/proposal-setmap-offrom/
module.exports = function of() {
var length = arguments.length;
var A = new Array(length);
while (length--) A[length] = arguments[length];
return new this(A);
};
core-js-3.8.2/packages/core-js/internals/collection-strong.js 0000664 0000000 0000000 00000015136 13774351224 0024226 0 ustar 00root root 0000000 0000000 'use strict';
var defineProperty = require('../internals/object-define-property').f;
var create = require('../internals/object-create');
var redefineAll = require('../internals/redefine-all');
var bind = require('../internals/function-bind-context');
var anInstance = require('../internals/an-instance');
var iterate = require('../internals/iterate');
var defineIterator = require('../internals/define-iterator');
var setSpecies = require('../internals/set-species');
var DESCRIPTORS = require('../internals/descriptors');
var fastKey = require('../internals/internal-metadata').fastKey;
var InternalStateModule = require('../internals/internal-state');
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: undefined,
last: undefined,
size: 0
});
if (!DESCRIPTORS) that.size = 0;
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
});
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define = function (that, key, value) {
var state = getInternalState(that);
var entry = getEntry(that, key);
var previous, index;
// change existing entry
if (entry) {
entry.value = value;
// create new entry
} else {
state.last = entry = {
index: index = fastKey(key, true),
key: key,
value: value,
previous: previous = state.last,
next: undefined,
removed: false
};
if (!state.first) state.first = entry;
if (previous) previous.next = entry;
if (DESCRIPTORS) state.size++;
else that.size++;
// add to index
if (index !== 'F') state.index[index] = entry;
} return that;
};
var getEntry = function (that, key) {
var state = getInternalState(that);
// fast case
var index = fastKey(key);
var entry;
if (index !== 'F') return state.index[index];
// frozen object case
for (entry = state.first; entry; entry = entry.next) {
if (entry.key == key) return entry;
}
};
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
var that = this;
var state = getInternalState(that);
var data = state.index;
var entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous) entry.previous = entry.previous.next = undefined;
delete data[entry.index];
entry = entry.next;
}
state.first = state.last = undefined;
if (DESCRIPTORS) state.size = 0;
else that.size = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = this;
var state = getInternalState(that);
var entry = getEntry(that, key);
if (entry) {
var next = entry.next;
var prev = entry.previous;
delete state.index[entry.index];
entry.removed = true;
if (prev) prev.next = next;
if (next) next.previous = prev;
if (state.first == entry) state.first = next;
if (state.last == entry) state.last = prev;
if (DESCRIPTORS) state.size--;
else that.size--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /* , that = undefined */) {
var state = getInternalState(this);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var entry;
while (entry = entry ? entry.next : state.first) {
boundFunction(entry.value, entry.key, this);
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(this, key);
}
});
redefineAll(C.prototype, IS_MAP ? {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = getEntry(this, key);
return entry && entry.value;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return define(this, key === 0 ? 0 : key, value);
}
} : {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value) {
return define(this, value = value === 0 ? 0 : value, value);
}
});
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
get: function () {
return getInternalState(this).size;
}
});
return C;
},
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
setInternalState(this, {
type: ITERATOR_NAME,
target: iterated,
state: getInternalCollectionState(iterated),
kind: kind,
last: undefined
});
}, function () {
var state = getInternalIteratorState(this);
var kind = state.kind;
var entry = state.last;
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
// get next entry
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
// or finish the iteration
state.target = undefined;
return { value: undefined, done: true };
}
// return step by kind
if (kind == 'keys') return { value: entry.key, done: false };
if (kind == 'values') return { value: entry.value, done: false };
return { value: [entry.key, entry.value], done: false };
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(CONSTRUCTOR_NAME);
}
};
core-js-3.8.2/packages/core-js/internals/collection-weak.js 0000664 0000000 0000000 00000007473 13774351224 0023646 0 ustar 00root root 0000000 0000000 'use strict';
var redefineAll = require('../internals/redefine-all');
var getWeakData = require('../internals/internal-metadata').getWeakData;
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var anInstance = require('../internals/an-instance');
var iterate = require('../internals/iterate');
var ArrayIterationModule = require('../internals/array-iteration');
var $has = require('../internals/has');
var InternalStateModule = require('../internals/internal-state');
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
var find = ArrayIterationModule.find;
var findIndex = ArrayIterationModule.findIndex;
var id = 0;
// fallback for uncaught frozen keys
var uncaughtFrozenStore = function (store) {
return store.frozen || (store.frozen = new UncaughtFrozenStore());
};
var UncaughtFrozenStore = function () {
this.entries = [];
};
var findUncaughtFrozen = function (store, key) {
return find(store.entries, function (it) {
return it[0] === key;
});
};
UncaughtFrozenStore.prototype = {
get: function (key) {
var entry = findUncaughtFrozen(this, key);
if (entry) return entry[1];
},
has: function (key) {
return !!findUncaughtFrozen(this, key);
},
set: function (key, value) {
var entry = findUncaughtFrozen(this, key);
if (entry) entry[1] = value;
else this.entries.push([key, value]);
},
'delete': function (key) {
var index = findIndex(this.entries, function (it) {
return it[0] === key;
});
if (~index) this.entries.splice(index, 1);
return !!~index;
}
};
module.exports = {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
id: id++,
frozen: undefined
});
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
});
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define = function (that, key, value) {
var state = getInternalState(that);
var data = getWeakData(anObject(key), true);
if (data === true) uncaughtFrozenStore(state).set(key, value);
else data[state.id] = value;
return that;
};
redefineAll(C.prototype, {
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
'delete': function (key) {
var state = getInternalState(this);
if (!isObject(key)) return false;
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
return data && $has(data, state.id) && delete data[state.id];
},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
has: function has(key) {
var state = getInternalState(this);
if (!isObject(key)) return false;
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state).has(key);
return data && $has(data, state.id);
}
});
redefineAll(C.prototype, IS_MAP ? {
// 23.3.3.3 WeakMap.prototype.get(key)
get: function get(key) {
var state = getInternalState(this);
if (isObject(key)) {
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state).get(key);
return data ? data[state.id] : undefined;
}
},
// 23.3.3.5 WeakMap.prototype.set(key, value)
set: function set(key, value) {
return define(this, key, value);
}
} : {
// 23.4.3.1 WeakSet.prototype.add(value)
add: function add(value) {
return define(this, value, true);
}
});
return C;
}
};
core-js-3.8.2/packages/core-js/internals/collection.js 0000664 0000000 0000000 00000010323 13774351224 0022705 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var isForced = require('../internals/is-forced');
var redefine = require('../internals/redefine');
var InternalMetadataModule = require('../internals/internal-metadata');
var iterate = require('../internals/iterate');
var anInstance = require('../internals/an-instance');
var isObject = require('../internals/is-object');
var fails = require('../internals/fails');
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
var setToStringTag = require('../internals/set-to-string-tag');
var inheritIfRequired = require('../internals/inherit-if-required');
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
var ADDER = IS_MAP ? 'set' : 'add';
var NativeConstructor = global[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function (KEY) {
var nativeMethod = NativePrototype[KEY];
redefine(NativePrototype, KEY,
KEY == 'add' ? function add(value) {
nativeMethod.call(this, value === 0 ? 0 : value);
return this;
} : KEY == 'delete' ? function (key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'get' ? function get(key) {
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'has' ? function has(key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : function set(key, value) {
nativeMethod.call(this, key === 0 ? 0 : key, value);
return this;
}
);
};
// eslint-disable-next-line max-len
if (isForced(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
new NativeConstructor().entries().next();
})))) {
// create collection constructor
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.REQUIRED = true;
} else if (isForced(CONSTRUCTOR_NAME, true)) {
var instance = new Constructor();
// early implementations not supports chaining
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
// most early implementations doesn't supports iterables, most modern - not close it correctly
// eslint-disable-next-line no-new
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
// for early implementations -0 and +0 not the same
var BUGGY_ZERO = !IS_WEAK && fails(function () {
// V8 ~ Chromium 42- fails only with 5+ elements
var $instance = new NativeConstructor();
var index = 5;
while (index--) $instance[ADDER](index, index);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
Constructor = wrapper(function (dummy, iterable) {
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
return that;
});
Constructor.prototype = NativePrototype;
NativePrototype.constructor = Constructor;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod('delete');
fixMethod('has');
IS_MAP && fixMethod('get');
}
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
// weak collections should not contains .clear method
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
}
exported[CONSTRUCTOR_NAME] = Constructor;
$({ global: true, forced: Constructor != NativeConstructor }, exported);
setToStringTag(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
core-js-3.8.2/packages/core-js/internals/composite-key.js 0000664 0000000 0000000 00000002576 13774351224 0023355 0 ustar 00root root 0000000 0000000 // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
var Map = require('../modules/es.map');
var WeakMap = require('../modules/es.weak-map');
var create = require('../internals/object-create');
var isObject = require('../internals/is-object');
var Node = function () {
// keys
this.object = null;
this.symbol = null;
// child nodes
this.primitives = null;
this.objectsByIndex = create(null);
};
Node.prototype.get = function (key, initializer) {
return this[key] || (this[key] = initializer());
};
Node.prototype.next = function (i, it, IS_OBJECT) {
var store = IS_OBJECT
? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap())
: this.primitives || (this.primitives = new Map());
var entry = store.get(it);
if (!entry) store.set(it, entry = new Node());
return entry;
};
var root = new Node();
module.exports = function () {
var active = root;
var length = arguments.length;
var i, it;
// for prevent leaking, start from objects
for (i = 0; i < length; i++) {
if (isObject(it = arguments[i])) active = active.next(i, it, true);
}
if (this === Object && active === root) throw TypeError('Composite keys must contain a non-primitive component');
for (i = 0; i < length; i++) {
if (!isObject(it = arguments[i])) active = active.next(i, it, false);
} return active;
};
core-js-3.8.2/packages/core-js/internals/copy-constructor-properties.js 0000664 0000000 0000000 00000001150 13774351224 0026277 0 ustar 00root root 0000000 0000000 var has = require('../internals/has');
var ownKeys = require('../internals/own-keys');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var definePropertyModule = require('../internals/object-define-property');
module.exports = function (target, source) {
var keys = ownKeys(source);
var defineProperty = definePropertyModule.f;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
};
core-js-3.8.2/packages/core-js/internals/correct-is-regexp-logic.js 0000664 0000000 0000000 00000000556 13774351224 0025216 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
var MATCH = wellKnownSymbol('match');
module.exports = function (METHOD_NAME) {
var regexp = /./;
try {
'/./'[METHOD_NAME](regexp);
} catch (error1) {
try {
regexp[MATCH] = false;
return '/./'[METHOD_NAME](regexp);
} catch (error2) { /* empty */ }
} return false;
};
core-js-3.8.2/packages/core-js/internals/correct-prototype-getter.js 0000664 0000000 0000000 00000000320 13774351224 0025542 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
module.exports = !fails(function () {
function F() { /* empty */ }
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
});
core-js-3.8.2/packages/core-js/internals/create-html.js 0000664 0000000 0000000 00000000731 13774351224 0022761 0 ustar 00root root 0000000 0000000 var requireObjectCoercible = require('../internals/require-object-coercible');
var quot = /"/g;
// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
// https://tc39.es/ecma262/#sec-createhtml
module.exports = function (string, tag, attribute, value) {
var S = String(requireObjectCoercible(string));
var p1 = '<' + tag;
if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
return p1 + '>' + S + '' + tag + '>';
};
core-js-3.8.2/packages/core-js/internals/create-iterator-constructor.js 0000664 0000000 0000000 00000001352 13774351224 0026231 0 ustar 00root root 0000000 0000000 'use strict';
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;
var create = require('../internals/object-create');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var setToStringTag = require('../internals/set-to-string-tag');
var Iterators = require('../internals/iterators');
var returnThis = function () { return this; };
module.exports = function (IteratorConstructor, NAME, next) {
var TO_STRING_TAG = NAME + ' Iterator';
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
Iterators[TO_STRING_TAG] = returnThis;
return IteratorConstructor;
};
core-js-3.8.2/packages/core-js/internals/create-non-enumerable-property.js 0000664 0000000 0000000 00000000666 13774351224 0026615 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var definePropertyModule = require('../internals/object-define-property');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
module.exports = DESCRIPTORS ? function (object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
core-js-3.8.2/packages/core-js/internals/create-property-descriptor.js 0000664 0000000 0000000 00000000255 13774351224 0026056 0 ustar 00root root 0000000 0000000 module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
core-js-3.8.2/packages/core-js/internals/create-property.js 0000664 0000000 0000000 00000000721 13774351224 0023700 0 ustar 00root root 0000000 0000000 'use strict';
var toPrimitive = require('../internals/to-primitive');
var definePropertyModule = require('../internals/object-define-property');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
module.exports = function (object, key, value) {
var propertyKey = toPrimitive(key);
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
else object[propertyKey] = value;
};
core-js-3.8.2/packages/core-js/internals/date-to-iso-string.js 0000664 0000000 0000000 00000002344 13774351224 0024207 0 ustar 00root root 0000000 0000000 'use strict';
var fails = require('../internals/fails');
var padStart = require('../internals/string-pad').start;
var abs = Math.abs;
var DatePrototype = Date.prototype;
var getTime = DatePrototype.getTime;
var nativeDateToISOString = DatePrototype.toISOString;
// `Date.prototype.toISOString` method implementation
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
// PhantomJS / old WebKit fails here:
module.exports = (fails(function () {
return nativeDateToISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
}) || !fails(function () {
nativeDateToISOString.call(new Date(NaN));
})) ? function toISOString() {
if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
var date = this;
var year = date.getUTCFullYear();
var milliseconds = date.getUTCMilliseconds();
var sign = year < 0 ? '-' : year > 9999 ? '+' : '';
return sign + padStart(abs(year), sign ? 6 : 4, 0) +
'-' + padStart(date.getUTCMonth() + 1, 2, 0) +
'-' + padStart(date.getUTCDate(), 2, 0) +
'T' + padStart(date.getUTCHours(), 2, 0) +
':' + padStart(date.getUTCMinutes(), 2, 0) +
':' + padStart(date.getUTCSeconds(), 2, 0) +
'.' + padStart(milliseconds, 3, 0) +
'Z';
} : nativeDateToISOString;
core-js-3.8.2/packages/core-js/internals/date-to-primitive.js 0000664 0000000 0000000 00000000507 13774351224 0024120 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
var toPrimitive = require('../internals/to-primitive');
module.exports = function (hint) {
if (hint !== 'string' && hint !== 'number' && hint !== 'default') {
throw TypeError('Incorrect hint');
} return toPrimitive(anObject(this), hint !== 'number');
};
core-js-3.8.2/packages/core-js/internals/define-iterator.js 0000664 0000000 0000000 00000007712 13774351224 0023643 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var setToStringTag = require('../internals/set-to-string-tag');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_PURE = require('../internals/is-pure');
var Iterators = require('../internals/iterators');
var IteratorsCore = require('../internals/iterators-core');
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () { return this; };
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
switch (KIND) {
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
} return function () { return new IteratorConstructor(this); };
};
var TO_STRING_TAG = NAME + ' Iterator';
var INCORRECT_VALUES_NAME = false;
var IterablePrototype = Iterable.prototype;
var nativeIterator = IterablePrototype[ITERATOR]
|| IterablePrototype['@@iterator']
|| DEFAULT && IterablePrototype[DEFAULT];
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
var CurrentIteratorPrototype, methods, KEY;
// fix native
if (anyNativeIterator) {
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
if (setPrototypeOf) {
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
} else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
}
}
// Set @@toStringTag to native iterators
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() { return nativeIterator.call(this); };
}
// define iterator
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
}
Iterators[NAME] = defaultIterator;
// export additional methods
if (DEFAULT) {
methods = {
values: getIterationMethod(VALUES),
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
entries: getIterationMethod(ENTRIES)
};
if (FORCED) for (KEY in methods) {
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
redefine(IterablePrototype, KEY, methods[KEY]);
}
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
}
return methods;
};
core-js-3.8.2/packages/core-js/internals/define-well-known-symbol.js 0000664 0000000 0000000 00000000665 13774351224 0025412 0 ustar 00root root 0000000 0000000 var path = require('../internals/path');
var has = require('../internals/has');
var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
var defineProperty = require('../internals/object-define-property').f;
module.exports = function (NAME) {
var Symbol = path.Symbol || (path.Symbol = {});
if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
value: wrappedWellKnownSymbolModule.f(NAME)
});
};
core-js-3.8.2/packages/core-js/internals/descriptors.js 0000664 0000000 0000000 00000000342 13774351224 0023113 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
// Detect IE8's incomplete defineProperty implementation
module.exports = !fails(function () {
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
core-js-3.8.2/packages/core-js/internals/document-create-element.js 0000664 0000000 0000000 00000000524 13774351224 0025262 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var isObject = require('../internals/is-object');
var document = global.document;
// typeof document.createElement is 'object' in old IE
var EXISTS = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return EXISTS ? document.createElement(it) : {};
};
core-js-3.8.2/packages/core-js/internals/dom-iterables.js 0000664 0000000 0000000 00000001361 13774351224 0023303 0 ustar 00root root 0000000 0000000 // iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
module.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
core-js-3.8.2/packages/core-js/internals/engine-is-ios.js 0000664 0000000 0000000 00000000201 13774351224 0023212 0 ustar 00root root 0000000 0000000 var userAgent = require('../internals/engine-user-agent');
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
core-js-3.8.2/packages/core-js/internals/engine-is-node.js 0000664 0000000 0000000 00000000230 13774351224 0023347 0 ustar 00root root 0000000 0000000 var classof = require('../internals/classof-raw');
var global = require('../internals/global');
module.exports = classof(global.process) == 'process';
core-js-3.8.2/packages/core-js/internals/engine-is-webos-webkit.js 0000664 0000000 0000000 00000000163 13774351224 0025031 0 ustar 00root root 0000000 0000000 var userAgent = require('../internals/engine-user-agent');
module.exports = /web0s(?!.*chrome)/i.test(userAgent);
core-js-3.8.2/packages/core-js/internals/engine-user-agent.js 0000664 0000000 0000000 00000000165 13774351224 0024072 0 ustar 00root root 0000000 0000000 var getBuiltIn = require('../internals/get-built-in');
module.exports = getBuiltIn('navigator', 'userAgent') || '';
core-js-3.8.2/packages/core-js/internals/engine-v8-version.js 0000664 0000000 0000000 00000001020 13774351224 0024027 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var userAgent = require('../internals/engine-user-agent');
var process = global.process;
var versions = process && process.versions;
var v8 = versions && versions.v8;
var match, version;
if (v8) {
match = v8.split('.');
version = match[0] + match[1];
} else if (userAgent) {
match = userAgent.match(/Edge\/(\d+)/);
if (!match || match[1] >= 74) {
match = userAgent.match(/Chrome\/(\d+)/);
if (match) version = match[1];
}
}
module.exports = version && +version;
core-js-3.8.2/packages/core-js/internals/entry-unbind.js 0000664 0000000 0000000 00000000404 13774351224 0023167 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var bind = require('../internals/function-bind-context');
var call = Function.call;
module.exports = function (CONSTRUCTOR, METHOD, length) {
return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);
};
core-js-3.8.2/packages/core-js/internals/entry-virtual.js 0000664 0000000 0000000 00000000203 13774351224 0023373 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
module.exports = function (CONSTRUCTOR) {
return global[CONSTRUCTOR].prototype;
};
core-js-3.8.2/packages/core-js/internals/enum-bug-keys.js 0000664 0000000 0000000 00000000262 13774351224 0023243 0 ustar 00root root 0000000 0000000 // IE8- don't enum bug keys
module.exports = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf'
];
core-js-3.8.2/packages/core-js/internals/export.js 0000664 0000000 0000000 00000004727 13774351224 0022106 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var setGlobal = require('../internals/set-global');
var copyConstructorProperties = require('../internals/copy-constructor-properties');
var isForced = require('../internals/is-forced');
/*
options.target - name of the target object
options.global - target is the global object
options.stat - export as static methods of target
options.proto - export as prototype methods of target
options.real - real prototype method for the `pure` version
options.forced - export even if the native feature is available
options.bind - bind methods to the target, required for the `pure` version
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
options.unsafe - use the simple assignment of property instead of delete + defineProperty
options.sham - add a flag to not completely full polyfills
options.enumerable - export as enumerable property
options.noTargetGet - prevent calling a getter on target
*/
module.exports = function (options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global;
} else if (STATIC) {
target = global[TARGET] || setGlobal(TARGET, {});
} else {
target = (global[TARGET] || {}).prototype;
}
if (target) for (key in source) {
sourceProperty = source[key];
if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor(target, key);
targetProperty = descriptor && descriptor.value;
} else targetProperty = target[key];
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contained in target
if (!FORCED && targetProperty !== undefined) {
if (typeof sourceProperty === typeof targetProperty) continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
// add a flag to not completely full polyfills
if (options.sham || (targetProperty && targetProperty.sham)) {
createNonEnumerableProperty(sourceProperty, 'sham', true);
}
// extend global
redefine(target, key, sourceProperty, options);
}
};
core-js-3.8.2/packages/core-js/internals/fails.js 0000664 0000000 0000000 00000000154 13774351224 0021651 0 ustar 00root root 0000000 0000000 module.exports = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
core-js-3.8.2/packages/core-js/internals/fix-regexp-well-known-symbol-logic.js 0000664 0000000 0000000 00000011067 13774351224 0027327 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: Remove from `core-js@4` since it's moved to entry points
require('../modules/es.regexp.exec');
var redefine = require('../internals/redefine');
var fails = require('../internals/fails');
var wellKnownSymbol = require('../internals/well-known-symbol');
var regexpExec = require('../internals/regexp-exec');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var SPECIES = wellKnownSymbol('species');
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
// #replace needs built-in support for named groups.
// #match works fine because it just return the exec results, even if it has
// a "grops" property.
var re = /./;
re.exec = function () {
var result = [];
result.groups = { a: '7' };
return result;
};
return ''.replace(re, '$') !== '7';
});
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
return 'a'.replace(/./, '$0') === '$0';
})();
var REPLACE = wellKnownSymbol('replace');
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
if (/./[REPLACE]) {
return /./[REPLACE]('a', '$0') === '';
}
return false;
})();
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
var re = /(?:)/;
var originalExec = re.exec;
re.exec = function () { return originalExec.apply(this, arguments); };
var result = 'ab'.split(re);
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
});
module.exports = function (KEY, length, exec, sham) {
var SYMBOL = wellKnownSymbol(KEY);
var DELEGATES_TO_SYMBOL = !fails(function () {
// String methods call symbol-named RegEp methods
var O = {};
O[SYMBOL] = function () { return 7; };
return ''[KEY](O) != 7;
});
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
// Symbol-named RegExp methods call .exec
var execCalled = false;
var re = /a/;
if (KEY === 'split') {
// We can't use real regex here since it causes deoptimization
// and serious performance degradation in V8
// https://github.com/zloirock/core-js/issues/306
re = {};
// RegExp[@@split] doesn't call the regex's exec method, but first creates
// a new one. We need to return the patched regex when creating the new one.
re.constructor = {};
re.constructor[SPECIES] = function () { return re; };
re.flags = '';
re[SYMBOL] = /./[SYMBOL];
}
re.exec = function () { execCalled = true; return null; };
re[SYMBOL]('');
return !execCalled;
});
if (
!DELEGATES_TO_SYMBOL ||
!DELEGATES_TO_EXEC ||
(KEY === 'replace' && !(
REPLACE_SUPPORTS_NAMED_GROUPS &&
REPLACE_KEEPS_$0 &&
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
)) ||
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
if (regexp.exec === regexpExec) {
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
// The native String method already delegates to @@method (this
// polyfilled function), leasing to infinite recursion.
// We avoid it by directly calling the native @@method method.
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
}
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
}
return { done: false };
}, {
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
});
var stringMethod = methods[0];
var regexMethod = methods[1];
redefine(String.prototype, KEY, stringMethod);
redefine(RegExp.prototype, SYMBOL, length == 2
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
? function (string, arg) { return regexMethod.call(string, this, arg); }
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
: function (string) { return regexMethod.call(string, this); }
);
}
if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
};
core-js-3.8.2/packages/core-js/internals/flatten-into-array.js 0000664 0000000 0000000 00000002124 13774351224 0024272 0 ustar 00root root 0000000 0000000 'use strict';
var isArray = require('../internals/is-array');
var toLength = require('../internals/to-length');
var bind = require('../internals/function-bind-context');
// `FlattenIntoArray` abstract operation
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
var targetIndex = start;
var sourceIndex = 0;
var mapFn = mapper ? bind(mapper, thisArg, 3) : false;
var element;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
if (depth > 0 && isArray(element)) {
targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
} else {
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
};
module.exports = flattenIntoArray;
core-js-3.8.2/packages/core-js/internals/freezing.js 0000664 0000000 0000000 00000000222 13774351224 0022360 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
module.exports = !fails(function () {
return Object.isExtensible(Object.preventExtensions({}));
});
core-js-3.8.2/packages/core-js/internals/function-bind-context.js 0000664 0000000 0000000 00000001127 13774351224 0024775 0 ustar 00root root 0000000 0000000 var aFunction = require('../internals/a-function');
// optional / simple context binding
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 0: return function () {
return fn.call(that);
};
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
core-js-3.8.2/packages/core-js/internals/function-bind.js 0000664 0000000 0000000 00000002044 13774351224 0023312 0 ustar 00root root 0000000 0000000 'use strict';
var aFunction = require('../internals/a-function');
var isObject = require('../internals/is-object');
var slice = [].slice;
var factories = {};
var construct = function (C, argsLength, args) {
if (!(argsLength in factories)) {
for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
// eslint-disable-next-line no-new-func
factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
} return factories[argsLength](C, args);
};
// `Function.prototype.bind` method implementation
// https://tc39.es/ecma262/#sec-function.prototype.bind
module.exports = Function.bind || function bind(that /* , ...args */) {
var fn = aFunction(this);
var partArgs = slice.call(arguments, 1);
var boundFunction = function bound(/* args... */) {
var args = partArgs.concat(slice.call(arguments));
return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
};
if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
return boundFunction;
};
core-js-3.8.2/packages/core-js/internals/get-async-iterator-method.js 0000664 0000000 0000000 00000000506 13774351224 0025553 0 ustar 00root root 0000000 0000000 var getIteratorMethod = require('../internals/get-iterator-method');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
module.exports = function (it) {
var method = it[ASYNC_ITERATOR];
return method === undefined ? getIteratorMethod(it) : method;
};
core-js-3.8.2/packages/core-js/internals/get-built-in.js 0000664 0000000 0000000 00000000662 13774351224 0023057 0 ustar 00root root 0000000 0000000 var path = require('../internals/path');
var global = require('../internals/global');
var aFunction = function (variable) {
return typeof variable == 'function' ? variable : undefined;
};
module.exports = function (namespace, method) {
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
};
core-js-3.8.2/packages/core-js/internals/get-iterator-method.js 0000664 0000000 0000000 00000000527 13774351224 0024443 0 ustar 00root root 0000000 0000000 var classof = require('../internals/classof');
var Iterators = require('../internals/iterators');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
core-js-3.8.2/packages/core-js/internals/get-iterator.js 0000664 0000000 0000000 00000000533 13774351224 0023162 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var getIteratorMethod = require('../internals/get-iterator-method');
module.exports = function (it) {
var iteratorMethod = getIteratorMethod(it);
if (typeof iteratorMethod != 'function') {
throw TypeError(String(it) + ' is not iterable');
} return anObject(iteratorMethod.call(it));
};
core-js-3.8.2/packages/core-js/internals/get-map-iterator.js 0000664 0000000 0000000 00000000364 13774351224 0023737 0 ustar 00root root 0000000 0000000 var IS_PURE = require('../internals/is-pure');
var getIterator = require('../internals/get-iterator');
module.exports = IS_PURE ? getIterator : function (it) {
// eslint-disable-next-line no-undef
return Map.prototype.entries.call(it);
};
core-js-3.8.2/packages/core-js/internals/get-set-iterator.js 0000664 0000000 0000000 00000000363 13774351224 0023754 0 ustar 00root root 0000000 0000000 var IS_PURE = require('../internals/is-pure');
var getIterator = require('../internals/get-iterator');
module.exports = IS_PURE ? getIterator : function (it) {
// eslint-disable-next-line no-undef
return Set.prototype.values.call(it);
};
core-js-3.8.2/packages/core-js/internals/get-substitution.js 0000664 0000000 0000000 00000002504 13774351224 0024105 0 ustar 00root root 0000000 0000000 var toObject = require('../internals/to-object');
var floor = Math.floor;
var replace = ''.replace;
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
// https://tc39.es/ecma262/#sec-getsubstitution
module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
var tailPos = position + matched.length;
var m = captures.length;
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
if (namedCaptures !== undefined) {
namedCaptures = toObject(namedCaptures);
symbols = SUBSTITUTION_SYMBOLS;
}
return replace.call(replacement, symbols, function (match, ch) {
var capture;
switch (ch.charAt(0)) {
case '$': return '$';
case '&': return matched;
case '`': return str.slice(0, position);
case "'": return str.slice(tailPos);
case '<':
capture = namedCaptures[ch.slice(1, -1)];
break;
default: // \d\d?
var n = +ch;
if (n === 0) return match;
if (n > m) {
var f = floor(n / 10);
if (f === 0) return match;
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
return match;
}
capture = captures[n - 1];
}
return capture === undefined ? '' : capture;
});
};
core-js-3.8.2/packages/core-js/internals/global.js 0000664 0000000 0000000 00000000765 13774351224 0022023 0 ustar 00root root 0000000 0000000 var check = function (it) {
return it && it.Math == Math && it;
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
module.exports =
// eslint-disable-next-line no-undef
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
check(typeof self == 'object' && self) ||
check(typeof global == 'object' && global) ||
// eslint-disable-next-line no-new-func
(function () { return this; })() || Function('return this')();
core-js-3.8.2/packages/core-js/internals/has.js 0000664 0000000 0000000 00000000171 13774351224 0021325 0 ustar 00root root 0000000 0000000 var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
core-js-3.8.2/packages/core-js/internals/hidden-keys.js 0000664 0000000 0000000 00000000025 13774351224 0022754 0 ustar 00root root 0000000 0000000 module.exports = {};
core-js-3.8.2/packages/core-js/internals/host-report-errors.js 0000664 0000000 0000000 00000000337 13774351224 0024356 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
module.exports = function (a, b) {
var console = global.console;
if (console && console.error) {
arguments.length === 1 ? console.error(a) : console.error(a, b);
}
};
core-js-3.8.2/packages/core-js/internals/html.js 0000664 0000000 0000000 00000000164 13774351224 0021520 0 ustar 00root root 0000000 0000000 var getBuiltIn = require('../internals/get-built-in');
module.exports = getBuiltIn('document', 'documentElement');
core-js-3.8.2/packages/core-js/internals/ie8-dom-define.js 0000664 0000000 0000000 00000000572 13774351224 0023251 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var fails = require('../internals/fails');
var createElement = require('../internals/document-create-element');
// Thank's IE8 for his funny defineProperty
module.exports = !DESCRIPTORS && !fails(function () {
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
core-js-3.8.2/packages/core-js/internals/ieee754.js 0000664 0000000 0000000 00000005420 13774351224 0021723 0 ustar 00root root 0000000 0000000 // IEEE754 conversions based on https://github.com/feross/ieee754
// eslint-disable-next-line no-shadow-restricted-names
var Infinity = 1 / 0;
var abs = Math.abs;
var pow = Math.pow;
var floor = Math.floor;
var log = Math.log;
var LN2 = Math.LN2;
var pack = function (number, mantissaLength, bytes) {
var buffer = new Array(bytes);
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;
var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
var index = 0;
var exponent, mantissa, c;
number = abs(number);
// eslint-disable-next-line no-self-compare
if (number != number || number === Infinity) {
// eslint-disable-next-line no-self-compare
mantissa = number != number ? 1 : 0;
exponent = eMax;
} else {
exponent = floor(log(number) / LN2);
if (number * (c = pow(2, -exponent)) < 1) {
exponent--;
c *= 2;
}
if (exponent + eBias >= 1) {
number += rt / c;
} else {
number += rt * pow(2, 1 - eBias);
}
if (number * c >= 2) {
exponent++;
c /= 2;
}
if (exponent + eBias >= eMax) {
mantissa = 0;
exponent = eMax;
} else if (exponent + eBias >= 1) {
mantissa = (number * c - 1) * pow(2, mantissaLength);
exponent = exponent + eBias;
} else {
mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);
exponent = 0;
}
}
for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
exponent = exponent << mantissaLength | mantissa;
exponentLength += mantissaLength;
for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
buffer[--index] |= sign * 128;
return buffer;
};
var unpack = function (buffer, mantissaLength) {
var bytes = buffer.length;
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var nBits = exponentLength - 7;
var index = bytes - 1;
var sign = buffer[index--];
var exponent = sign & 127;
var mantissa;
sign >>= 7;
for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
mantissa = exponent & (1 << -nBits) - 1;
exponent >>= -nBits;
nBits += mantissaLength;
for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
if (exponent === 0) {
exponent = 1 - eBias;
} else if (exponent === eMax) {
return mantissa ? NaN : sign ? -Infinity : Infinity;
} else {
mantissa = mantissa + pow(2, mantissaLength);
exponent = exponent - eBias;
} return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);
};
module.exports = {
pack: pack,
unpack: unpack
};
core-js-3.8.2/packages/core-js/internals/indexed-object.js 0000664 0000000 0000000 00000000767 13774351224 0023451 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
var classof = require('../internals/classof-raw');
var split = ''.split;
// fallback for non-array-like ES3 and non-enumerable old V8 strings
module.exports = fails(function () {
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
return !Object('z').propertyIsEnumerable(0);
}) ? function (it) {
return classof(it) == 'String' ? split.call(it, '') : Object(it);
} : Object;
core-js-3.8.2/packages/core-js/internals/inherit-if-required.js 0000664 0000000 0000000 00000001265 13774351224 0024433 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
var setPrototypeOf = require('../internals/object-set-prototype-of');
// makes subclassing work correct for wrapped built-ins
module.exports = function ($this, dummy, Wrapper) {
var NewTarget, NewTargetPrototype;
if (
// it can work only with native `setPrototypeOf`
setPrototypeOf &&
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
typeof (NewTarget = dummy.constructor) == 'function' &&
NewTarget !== Wrapper &&
isObject(NewTargetPrototype = NewTarget.prototype) &&
NewTargetPrototype !== Wrapper.prototype
) setPrototypeOf($this, NewTargetPrototype);
return $this;
};
core-js-3.8.2/packages/core-js/internals/inspect-source.js 0000664 0000000 0000000 00000000522 13774351224 0023515 0 ustar 00root root 0000000 0000000 var store = require('../internals/shared-store');
var functionToString = Function.toString;
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
if (typeof store.inspectSource != 'function') {
store.inspectSource = function (it) {
return functionToString.call(it);
};
}
module.exports = store.inspectSource;
core-js-3.8.2/packages/core-js/internals/internal-metadata.js 0000664 0000000 0000000 00000003346 13774351224 0024153 0 ustar 00root root 0000000 0000000 var hiddenKeys = require('../internals/hidden-keys');
var isObject = require('../internals/is-object');
var has = require('../internals/has');
var defineProperty = require('../internals/object-define-property').f;
var uid = require('../internals/uid');
var FREEZING = require('../internals/freezing');
var METADATA = uid('meta');
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var setMetadata = function (it) {
defineProperty(it, METADATA, { value: {
objectID: 'O' + ++id, // object ID
weakData: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return a primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMetadata(it);
// return object ID
} return it[METADATA].objectID;
};
var getWeakData = function (it, create) {
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMetadata(it);
// return the store of weak collections IDs
} return it[METADATA].weakData;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
return it;
};
var meta = module.exports = {
REQUIRED: false,
fastKey: fastKey,
getWeakData: getWeakData,
onFreeze: onFreeze
};
hiddenKeys[METADATA] = true;
core-js-3.8.2/packages/core-js/internals/internal-state.js 0000664 0000000 0000000 00000003222 13774351224 0023504 0 ustar 00root root 0000000 0000000 var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
var global = require('../internals/global');
var isObject = require('../internals/is-object');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var objectHas = require('../internals/has');
var shared = require('../internals/shared-store');
var sharedKey = require('../internals/shared-key');
var hiddenKeys = require('../internals/hidden-keys');
var WeakMap = global.WeakMap;
var set, get, has;
var enforce = function (it) {
return has(it) ? get(it) : set(it, {});
};
var getterFor = function (TYPE) {
return function (it) {
var state;
if (!isObject(it) || (state = get(it)).type !== TYPE) {
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
if (NATIVE_WEAK_MAP) {
var store = shared.state || (shared.state = new WeakMap());
var wmget = store.get;
var wmhas = store.has;
var wmset = store.set;
set = function (it, metadata) {
metadata.facade = it;
wmset.call(store, it, metadata);
return metadata;
};
get = function (it) {
return wmget.call(store, it) || {};
};
has = function (it) {
return wmhas.call(store, it);
};
} else {
var STATE = sharedKey('state');
hiddenKeys[STATE] = true;
set = function (it, metadata) {
metadata.facade = it;
createNonEnumerableProperty(it, STATE, metadata);
return metadata;
};
get = function (it) {
return objectHas(it, STATE) ? it[STATE] : {};
};
has = function (it) {
return objectHas(it, STATE);
};
}
module.exports = {
set: set,
get: get,
has: has,
enforce: enforce,
getterFor: getterFor
};
core-js-3.8.2/packages/core-js/internals/is-array-iterator-method.js 0000664 0000000 0000000 00000000551 13774351224 0025410 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
var Iterators = require('../internals/iterators');
var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;
// check on default Array iterator
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};
core-js-3.8.2/packages/core-js/internals/is-array.js 0000664 0000000 0000000 00000000333 13774351224 0022301 0 ustar 00root root 0000000 0000000 var classof = require('../internals/classof-raw');
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
module.exports = Array.isArray || function isArray(arg) {
return classof(arg) == 'Array';
};
core-js-3.8.2/packages/core-js/internals/is-forced.js 0000664 0000000 0000000 00000001075 13774351224 0022431 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
var replacement = /#|\.prototype\./;
var isForced = function (feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true
: value == NATIVE ? false
: typeof detection == 'function' ? fails(detection)
: !!detection;
};
var normalize = isForced.normalize = function (string) {
return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';
module.exports = isForced;
core-js-3.8.2/packages/core-js/internals/is-integer.js 0000664 0000000 0000000 00000000422 13774351224 0022617 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
var floor = Math.floor;
// `Number.isInteger` method implementation
// https://tc39.es/ecma262/#sec-number.isinteger
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};
core-js-3.8.2/packages/core-js/internals/is-iterable.js 0000664 0000000 0000000 00000000652 13774351224 0022756 0 ustar 00root root 0000000 0000000 var classof = require('../internals/classof');
var wellKnownSymbol = require('../internals/well-known-symbol');
var Iterators = require('../internals/iterators');
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
var O = Object(it);
return O[ITERATOR] !== undefined
|| '@@iterator' in O
// eslint-disable-next-line no-prototype-builtins
|| Iterators.hasOwnProperty(classof(O));
};
core-js-3.8.2/packages/core-js/internals/is-object.js 0000664 0000000 0000000 00000000156 13774351224 0022434 0 ustar 00root root 0000000 0000000 module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
core-js-3.8.2/packages/core-js/internals/is-pure.js 0000664 0000000 0000000 00000000030 13774351224 0022130 0 ustar 00root root 0000000 0000000 module.exports = false;
core-js-3.8.2/packages/core-js/internals/is-regexp.js 0000664 0000000 0000000 00000000664 13774351224 0022464 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
var classof = require('../internals/classof-raw');
var wellKnownSymbol = require('../internals/well-known-symbol');
var MATCH = wellKnownSymbol('match');
// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
module.exports = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
};
core-js-3.8.2/packages/core-js/internals/iterate.js 0000664 0000000 0000000 00000004011 13774351224 0022204 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var isArrayIteratorMethod = require('../internals/is-array-iterator-method');
var toLength = require('../internals/to-length');
var bind = require('../internals/function-bind-context');
var getIteratorMethod = require('../internals/get-iterator-method');
var iteratorClose = require('../internals/iterator-close');
var Result = function (stopped, result) {
this.stopped = stopped;
this.result = result;
};
module.exports = function (iterable, unboundFunction, options) {
var that = options && options.that;
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
var INTERRUPTED = !!(options && options.INTERRUPTED);
var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
var iterator, iterFn, index, length, result, next, step;
var stop = function (condition) {
if (iterator) iteratorClose(iterator);
return new Result(true, condition);
};
var callFn = function (value) {
if (AS_ENTRIES) {
anObject(value);
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
} return INTERRUPTED ? fn(value, stop) : fn(value);
};
if (IS_ITERATOR) {
iterator = iterable;
} else {
iterFn = getIteratorMethod(iterable);
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
// optimisation for array iterators
if (isArrayIteratorMethod(iterFn)) {
for (index = 0, length = toLength(iterable.length); length > index; index++) {
result = callFn(iterable[index]);
if (result && result instanceof Result) return result;
} return new Result(false);
}
iterator = iterFn.call(iterable);
}
next = iterator.next;
while (!(step = next.call(iterator)).done) {
try {
result = callFn(step.value);
} catch (error) {
iteratorClose(iterator);
throw error;
}
if (typeof result == 'object' && result && result instanceof Result) return result;
} return new Result(false);
};
core-js-3.8.2/packages/core-js/internals/iterator-close.js 0000664 0000000 0000000 00000000346 13774351224 0023512 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
module.exports = function (iterator) {
var returnMethod = iterator['return'];
if (returnMethod !== undefined) {
return anObject(returnMethod.call(iterator)).value;
}
};
core-js-3.8.2/packages/core-js/internals/iterator-create-proxy.js 0000664 0000000 0000000 00000003342 13774351224 0025026 0 ustar 00root root 0000000 0000000 'use strict';
var path = require('../internals/path');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var create = require('../internals/object-create');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var wellKnownSymbol = require('../internals/well-known-symbol');
var InternalStateModule = require('../internals/internal-state');
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.get;
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var $return = function (value) {
var iterator = getInternalState(this).iterator;
var $$return = iterator['return'];
return $$return === undefined ? { done: true, value: value } : anObject($$return.call(iterator, value));
};
var $throw = function (value) {
var iterator = getInternalState(this).iterator;
var $$throw = iterator['throw'];
if ($$throw === undefined) throw value;
return $$throw.call(iterator, value);
};
module.exports = function (nextHandler, IS_ITERATOR) {
var IteratorProxy = function Iterator(state) {
state.next = aFunction(state.iterator.next);
state.done = false;
setInternalState(this, state);
};
IteratorProxy.prototype = redefineAll(create(path.Iterator.prototype), {
next: function next() {
var state = getInternalState(this);
var result = state.done ? undefined : nextHandler.apply(state, arguments);
return { done: state.done, value: result };
},
'return': $return,
'throw': $throw
});
if (!IS_ITERATOR) {
createNonEnumerableProperty(IteratorProxy.prototype, TO_STRING_TAG, 'Generator');
}
return IteratorProxy;
};
core-js-3.8.2/packages/core-js/internals/iterators-core.js 0000664 0000000 0000000 00000002500 13774351224 0023512 0 ustar 00root root 0000000 0000000 'use strict';
var getPrototypeOf = require('../internals/object-get-prototype-of');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var has = require('../internals/has');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_PURE = require('../internals/is-pure');
var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;
var returnThis = function () { return this; };
// `%IteratorPrototype%` object
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
if ([].keys) {
arrayIterator = [].keys();
// Safari 8 has buggy iterators w/o `next`
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
else {
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
}
}
if (IteratorPrototype == undefined) IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
}
module.exports = {
IteratorPrototype: IteratorPrototype,
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};
core-js-3.8.2/packages/core-js/internals/iterators.js 0000664 0000000 0000000 00000000025 13774351224 0022564 0 ustar 00root root 0000000 0000000 module.exports = {};
core-js-3.8.2/packages/core-js/internals/map-emplace.js 0000664 0000000 0000000 00000000615 13774351224 0022736 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
// `Map.prototype.emplace` method
// https://github.com/thumbsupep/proposal-upsert
module.exports = function emplace(key, handler) {
var map = anObject(this);
var value = (map.has(key) && 'update' in handler)
? handler.update(map.get(key), key, map)
: handler.insert(key, map);
map.set(key, value);
return value;
};
core-js-3.8.2/packages/core-js/internals/map-upsert.js 0000664 0000000 0000000 00000001321 13774351224 0022645 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
// `Map.prototype.upsert` method
// https://github.com/thumbsupep/proposal-upsert
module.exports = function upsert(key, updateFn /* , insertFn */) {
var map = anObject(this);
var insertFn = arguments.length > 2 ? arguments[2] : undefined;
var value;
if (typeof updateFn != 'function' && typeof insertFn != 'function') {
throw TypeError('At least one callback required');
}
if (map.has(key)) {
value = map.get(key);
if (typeof updateFn == 'function') {
value = updateFn(value);
map.set(key, value);
}
} else if (typeof insertFn == 'function') {
value = insertFn();
map.set(key, value);
} return value;
};
core-js-3.8.2/packages/core-js/internals/math-expm1.js 0000664 0000000 0000000 00000000673 13774351224 0022542 0 ustar 00root root 0000000 0000000 var nativeExpm1 = Math.expm1;
var exp = Math.exp;
// `Math.expm1` method implementation
// https://tc39.es/ecma262/#sec-math.expm1
module.exports = (!nativeExpm1
// Old FF bug
|| nativeExpm1(10) > 22025.465794806719 || nativeExpm1(10) < 22025.4657948067165168
// Tor Browser bug
|| nativeExpm1(-2e-17) != -2e-17
) ? function expm1(x) {
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp(x) - 1;
} : nativeExpm1;
core-js-3.8.2/packages/core-js/internals/math-fround.js 0000664 0000000 0000000 00000001435 13774351224 0023002 0 ustar 00root root 0000000 0000000 var sign = require('../internals/math-sign');
var abs = Math.abs;
var pow = Math.pow;
var EPSILON = pow(2, -52);
var EPSILON32 = pow(2, -23);
var MAX32 = pow(2, 127) * (2 - EPSILON32);
var MIN32 = pow(2, -126);
var roundTiesToEven = function (n) {
return n + 1 / EPSILON - 1 / EPSILON;
};
// `Math.fround` method implementation
// https://tc39.es/ecma262/#sec-math.fround
module.exports = Math.fround || function fround(x) {
var $abs = abs(x);
var $sign = sign(x);
var a, result;
if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a = (1 + EPSILON32 / EPSILON) * $abs;
result = a - (a - $abs);
// eslint-disable-next-line no-self-compare
if (result > MAX32 || result != result) return $sign * Infinity;
return $sign * result;
};
core-js-3.8.2/packages/core-js/internals/math-log1p.js 0000664 0000000 0000000 00000000340 13774351224 0022521 0 ustar 00root root 0000000 0000000 var log = Math.log;
// `Math.log1p` method implementation
// https://tc39.es/ecma262/#sec-math.log1p
module.exports = Math.log1p || function log1p(x) {
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : log(1 + x);
};
core-js-3.8.2/packages/core-js/internals/math-scale.js 0000664 0000000 0000000 00000001055 13774351224 0022572 0 ustar 00root root 0000000 0000000 // `Math.scale` method implementation
// https://rwaldron.github.io/proposal-math-extensions/
module.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {
if (
arguments.length === 0
/* eslint-disable no-self-compare */
|| x != x
|| inLow != inLow
|| inHigh != inHigh
|| outLow != outLow
|| outHigh != outHigh
/* eslint-enable no-self-compare */
) return NaN;
if (x === Infinity || x === -Infinity) return x;
return (x - inLow) * (outHigh - outLow) / (inHigh - inLow) + outLow;
};
core-js-3.8.2/packages/core-js/internals/math-sign.js 0000664 0000000 0000000 00000000350 13774351224 0022440 0 ustar 00root root 0000000 0000000 // `Math.sign` method implementation
// https://tc39.es/ecma262/#sec-math.sign
module.exports = Math.sign || function sign(x) {
// eslint-disable-next-line no-self-compare
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
core-js-3.8.2/packages/core-js/internals/microtask.js 0000664 0000000 0000000 00000005157 13774351224 0022557 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var macrotask = require('../internals/task').set;
var IS_IOS = require('../internals/engine-is-ios');
var IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');
var IS_NODE = require('../internals/engine-is-node');
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
var document = global.document;
var process = global.process;
var Promise = global.Promise;
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var flush, head, last, notify, toggle, node, promise, then;
// modern engines have queueMicrotask method
if (!queueMicrotask) {
flush = function () {
var parent, fn;
if (IS_NODE && (parent = process.domain)) parent.exit();
while (head) {
fn = head.fn;
head = head.next;
try {
fn();
} catch (error) {
if (head) notify();
else last = undefined;
throw error;
}
} last = undefined;
if (parent) parent.enter();
};
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
toggle = true;
node = document.createTextNode('');
new MutationObserver(flush).observe(node, { characterData: true });
notify = function () {
node.data = toggle = !toggle;
};
// environments with maybe non-completely correct, but existent Promise
} else if (Promise && Promise.resolve) {
// Promise.resolve without an argument throws an error in LG WebOS 2
promise = Promise.resolve(undefined);
then = promise.then;
notify = function () {
then.call(promise, flush);
};
// Node.js without promises
} else if (IS_NODE) {
notify = function () {
process.nextTick(flush);
};
// for other environments - macrotask based on:
// - setImmediate
// - MessageChannel
// - window.postMessag
// - onreadystatechange
// - setTimeout
} else {
notify = function () {
// strange IE + webpack dev server bug - use .call(global)
macrotask.call(global, flush);
};
}
}
module.exports = queueMicrotask || function (fn) {
var task = { fn: fn, next: undefined };
if (last) last.next = task;
if (!head) {
head = task;
notify();
} last = task;
};
core-js-3.8.2/packages/core-js/internals/native-promise-constructor.js 0000664 0000000 0000000 00000000117 13774351224 0026077 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
module.exports = global.Promise;
core-js-3.8.2/packages/core-js/internals/native-symbol.js 0000664 0000000 0000000 00000000363 13774351224 0023346 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});
core-js-3.8.2/packages/core-js/internals/native-url.js 0000664 0000000 0000000 00000002200 13774351224 0022633 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_PURE = require('../internals/is-pure');
var ITERATOR = wellKnownSymbol('iterator');
module.exports = !fails(function () {
var url = new URL('b?a=1&b=2&c=3', 'http://a');
var searchParams = url.searchParams;
var result = '';
url.pathname = 'c%20d';
searchParams.forEach(function (value, key) {
searchParams['delete']('b');
result += key + value;
});
return (IS_PURE && !url.toJSON)
|| !searchParams.sort
|| url.href !== 'http://a/c%20d?a=1&c=3'
|| searchParams.get('c') !== '3'
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|| !searchParams[ITERATOR]
// throws in Edge
|| new URL('https://a@b').username !== 'a'
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
// not punycoded in Edge
|| new URL('http://тест').host !== 'xn--e1aybc'
// not escaped in Chrome 62-
|| new URL('http://a#б').hash !== '#%D0%B1'
// fails in Chrome 66-
|| result !== 'a1c3'
// throws in Safari
|| new URL('http://x', undefined).host !== 'x';
});
core-js-3.8.2/packages/core-js/internals/native-weak-map.js 0000664 0000000 0000000 00000000347 13774351224 0023545 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var inspectSource = require('../internals/inspect-source');
var WeakMap = global.WeakMap;
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
core-js-3.8.2/packages/core-js/internals/new-promise-capability.js 0000664 0000000 0000000 00000001012 13774351224 0025131 0 ustar 00root root 0000000 0000000 'use strict';
var aFunction = require('../internals/a-function');
var PromiseCapability = function (C) {
var resolve, reject;
this.promise = new C(function ($$resolve, $$reject) {
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aFunction(resolve);
this.reject = aFunction(reject);
};
// 25.4.1.5 NewPromiseCapability(C)
module.exports.f = function (C) {
return new PromiseCapability(C);
};
core-js-3.8.2/packages/core-js/internals/not-a-regexp.js 0000664 0000000 0000000 00000000302 13774351224 0023054 0 ustar 00root root 0000000 0000000 var isRegExp = require('../internals/is-regexp');
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};
core-js-3.8.2/packages/core-js/internals/number-is-finite.js 0000664 0000000 0000000 00000000426 13774351224 0023732 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var globalIsFinite = global.isFinite;
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
module.exports = Number.isFinite || function isFinite(it) {
return typeof it == 'number' && globalIsFinite(it);
};
core-js-3.8.2/packages/core-js/internals/number-parse-float.js 0000664 0000000 0000000 00000001060 13774351224 0024253 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var trim = require('../internals/string-trim').trim;
var whitespaces = require('../internals/whitespaces');
var $parseFloat = global.parseFloat;
var FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity;
// `parseFloat` method
// https://tc39.es/ecma262/#sec-parsefloat-string
module.exports = FORCED ? function parseFloat(string) {
var trimmedString = trim(String(string));
var result = $parseFloat(trimmedString);
return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;
} : $parseFloat;
core-js-3.8.2/packages/core-js/internals/number-parse-int.js 0000664 0000000 0000000 00000001051 13774351224 0023740 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var trim = require('../internals/string-trim').trim;
var whitespaces = require('../internals/whitespaces');
var $parseInt = global.parseInt;
var hex = /^[+-]?0[Xx]/;
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;
// `parseInt` method
// https://tc39.es/ecma262/#sec-parseint-string-radix
module.exports = FORCED ? function parseInt(string, radix) {
var S = trim(String(string));
return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
} : $parseInt;
core-js-3.8.2/packages/core-js/internals/object-assign.js 0000664 0000000 0000000 00000004023 13774351224 0023302 0 ustar 00root root 0000000 0000000 'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var fails = require('../internals/fails');
var objectKeys = require('../internals/object-keys');
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
var toObject = require('../internals/to-object');
var IndexedObject = require('../internals/indexed-object');
var nativeAssign = Object.assign;
var defineProperty = Object.defineProperty;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
module.exports = !nativeAssign || fails(function () {
// should have correct order of operations (Edge bug)
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
enumerable: true,
get: function () {
defineProperty(this, 'b', {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1) return true;
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
var propertyIsEnumerable = propertyIsEnumerableModule.f;
while (argumentsLength > index) {
var S = IndexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
} : nativeAssign;
core-js-3.8.2/packages/core-js/internals/object-create.js 0000664 0000000 0000000 00000005473 13774351224 0023273 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var defineProperties = require('../internals/object-define-properties');
var enumBugKeys = require('../internals/enum-bug-keys');
var hiddenKeys = require('../internals/hidden-keys');
var html = require('../internals/html');
var documentCreateElement = require('../internals/document-create-element');
var sharedKey = require('../internals/shared-key');
var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');
var EmptyConstructor = function () { /* empty */ };
var scriptTag = function (content) {
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
var NullProtoObjectViaActiveX = function (activeXDocument) {
activeXDocument.write(scriptTag(''));
activeXDocument.close();
var temp = activeXDocument.parentWindow.Object;
activeXDocument = null; // avoid memory leak
return temp;
};
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var NullProtoObjectViaIFrame = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = documentCreateElement('iframe');
var JS = 'java' + SCRIPT + ':';
var iframeDocument;
iframe.style.display = 'none';
html.appendChild(iframe);
// https://github.com/zloirock/core-js/issues/475
iframe.src = String(JS);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(scriptTag('document.F=Object'));
iframeDocument.close();
return iframeDocument.F;
};
// Check for document.domain and active x support
// No need to use active x approach when document.domain is not set
// see https://github.com/es-shims/es5-shim/issues/150
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
// avoid IE GC bug
var activeXDocument;
var NullProtoObject = function () {
try {
/* global ActiveXObject */
activeXDocument = document.domain && new ActiveXObject('htmlfile');
} catch (error) { /* ignore */ }
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
var length = enumBugKeys.length;
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
EmptyConstructor[PROTOTYPE] = anObject(O);
result = new EmptyConstructor();
EmptyConstructor[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = NullProtoObject();
return Properties === undefined ? result : defineProperties(result, Properties);
};
core-js-3.8.2/packages/core-js/internals/object-define-properties.js 0000664 0000000 0000000 00000001200 13774351224 0025434 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var definePropertyModule = require('../internals/object-define-property');
var anObject = require('../internals/an-object');
var objectKeys = require('../internals/object-keys');
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
var length = keys.length;
var index = 0;
var key;
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
return O;
};
core-js-3.8.2/packages/core-js/internals/object-define-property.js 0000664 0000000 0000000 00000001436 13774351224 0025137 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
var anObject = require('../internals/an-object');
var toPrimitive = require('../internals/to-primitive');
var nativeDefineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return nativeDefineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
core-js-3.8.2/packages/core-js/internals/object-get-own-property-descriptor.js 0000664 0000000 0000000 00000001742 13774351224 0027441 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var toIndexedObject = require('../internals/to-indexed-object');
var toPrimitive = require('../internals/to-primitive');
var has = require('../internals/has');
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define');
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
return nativeGetOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
};
core-js-3.8.2/packages/core-js/internals/object-get-own-property-names-external.js 0000664 0000000 0000000 00000001341 13774351224 0030201 0 ustar 00root root 0000000 0000000 var toIndexedObject = require('../internals/to-indexed-object');
var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
try {
return nativeGetOwnPropertyNames(it);
} catch (error) {
return windowNames.slice();
}
};
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
module.exports.f = function getOwnPropertyNames(it) {
return windowNames && toString.call(it) == '[object Window]'
? getWindowNames(it)
: nativeGetOwnPropertyNames(toIndexedObject(it));
};
core-js-3.8.2/packages/core-js/internals/object-get-own-property-names.js 0000664 0000000 0000000 00000000633 13774351224 0026364 0 ustar 00root root 0000000 0000000 var internalObjectKeys = require('../internals/object-keys-internal');
var enumBugKeys = require('../internals/enum-bug-keys');
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return internalObjectKeys(O, hiddenKeys);
};
core-js-3.8.2/packages/core-js/internals/object-get-own-property-symbols.js 0000664 0000000 0000000 00000000052 13774351224 0026744 0 ustar 00root root 0000000 0000000 exports.f = Object.getOwnPropertySymbols;
core-js-3.8.2/packages/core-js/internals/object-get-prototype-of.js 0000664 0000000 0000000 00000001302 13774351224 0025237 0 ustar 00root root 0000000 0000000 var has = require('../internals/has');
var toObject = require('../internals/to-object');
var sharedKey = require('../internals/shared-key');
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
var IE_PROTO = sharedKey('IE_PROTO');
var ObjectPrototype = Object.prototype;
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
O = toObject(O);
if (has(O, IE_PROTO)) return O[IE_PROTO];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectPrototype : null;
};
core-js-3.8.2/packages/core-js/internals/object-iterator.js 0000664 0000000 0000000 00000002440 13774351224 0023650 0 ustar 00root root 0000000 0000000 'use strict';
var InternalStateModule = require('../internals/internal-state');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var has = require('../internals/has');
var objectKeys = require('../internals/object-keys');
var toObject = require('../internals/to-object');
var OBJECT_ITERATOR = 'Object Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(OBJECT_ITERATOR);
module.exports = createIteratorConstructor(function ObjectIterator(source, mode) {
var object = toObject(source);
setInternalState(this, {
type: OBJECT_ITERATOR,
mode: mode,
object: object,
keys: objectKeys(object),
index: 0
});
}, 'Object', function next() {
var state = getInternalState(this);
var keys = state.keys;
while (true) {
if (keys === null || state.index >= keys.length) {
state.object = state.keys = null;
return { value: undefined, done: true };
}
var key = keys[state.index++];
var object = state.object;
if (!has(object, key)) continue;
switch (state.mode) {
case 'keys': return { value: key, done: false };
case 'values': return { value: object[key], done: false };
} /* entries */ return { value: [key, object[key]], done: false };
}
});
core-js-3.8.2/packages/core-js/internals/object-keys-internal.js 0000664 0000000 0000000 00000001106 13774351224 0024602 0 ustar 00root root 0000000 0000000 var has = require('../internals/has');
var toIndexedObject = require('../internals/to-indexed-object');
var indexOf = require('../internals/array-includes').indexOf;
var hiddenKeys = require('../internals/hidden-keys');
module.exports = function (object, names) {
var O = toIndexedObject(object);
var i = 0;
var result = [];
var key;
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~indexOf(result, key) || result.push(key);
}
return result;
};
core-js-3.8.2/packages/core-js/internals/object-keys.js 0000664 0000000 0000000 00000000450 13774351224 0022771 0 ustar 00root root 0000000 0000000 var internalObjectKeys = require('../internals/object-keys-internal');
var enumBugKeys = require('../internals/enum-bug-keys');
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
module.exports = Object.keys || function keys(O) {
return internalObjectKeys(O, enumBugKeys);
};
core-js-3.8.2/packages/core-js/internals/object-property-is-enumerable.js 0000664 0000000 0000000 00000001107 13774351224 0026430 0 ustar 00root root 0000000 0000000 'use strict';
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor(this, V);
return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;
core-js-3.8.2/packages/core-js/internals/object-prototype-accessors-forced.js 0000664 0000000 0000000 00000000724 13774351224 0027312 0 ustar 00root root 0000000 0000000 'use strict';
var IS_PURE = require('../internals/is-pure');
var global = require('../internals/global');
var fails = require('../internals/fails');
// Forced replacement object prototype accessors methods
module.exports = IS_PURE || !fails(function () {
var key = Math.random();
// In FF throws only define methods
// eslint-disable-next-line no-undef, no-useless-call
__defineSetter__.call(null, key, function () { /* empty */ });
delete global[key];
});
core-js-3.8.2/packages/core-js/internals/object-set-prototype-of.js 0000664 0000000 0000000 00000001524 13774351224 0025261 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var aPossiblePrototype = require('../internals/a-possible-prototype');
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
setter.call(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error) { /* empty */ }
return function setPrototypeOf(O, proto) {
anObject(O);
aPossiblePrototype(proto);
if (CORRECT_SETTER) setter.call(O, proto);
else O.__proto__ = proto;
return O;
};
}() : undefined);
core-js-3.8.2/packages/core-js/internals/object-to-array.js 0000664 0000000 0000000 00000001714 13774351224 0023560 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var objectKeys = require('../internals/object-keys');
var toIndexedObject = require('../internals/to-indexed-object');
var propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;
// `Object.{ entries, values }` methods implementation
var createMethod = function (TO_ENTRIES) {
return function (it) {
var O = toIndexedObject(it);
var keys = objectKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) {
key = keys[i++];
if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
}
}
return result;
};
};
module.exports = {
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
entries: createMethod(true),
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
values: createMethod(false)
};
core-js-3.8.2/packages/core-js/internals/object-to-string.js 0000664 0000000 0000000 00000000563 13774351224 0023751 0 ustar 00root root 0000000 0000000 'use strict';
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
var classof = require('../internals/classof');
// `Object.prototype.toString` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.tostring
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
return '[object ' + classof(this) + ']';
};
core-js-3.8.2/packages/core-js/internals/own-keys.js 0000664 0000000 0000000 00000001150 13774351224 0022324 0 ustar 00root root 0000000 0000000 var getBuiltIn = require('../internals/get-built-in');
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
var anObject = require('../internals/an-object');
// all object keys, includes non-enumerable and symbols
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
var keys = getOwnPropertyNamesModule.f(anObject(it));
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
};
core-js-3.8.2/packages/core-js/internals/path.js 0000664 0000000 0000000 00000000107 13774351224 0021505 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
module.exports = global;
core-js-3.8.2/packages/core-js/internals/perform.js 0000664 0000000 0000000 00000000234 13774351224 0022224 0 ustar 00root root 0000000 0000000 module.exports = function (exec) {
try {
return { error: false, value: exec() };
} catch (error) {
return { error: true, value: error };
}
};
core-js-3.8.2/packages/core-js/internals/promise-resolve.js 0000664 0000000 0000000 00000000653 13774351224 0023712 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var newPromiseCapability = require('../internals/new-promise-capability');
module.exports = function (C, x) {
anObject(C);
if (isObject(x) && x.constructor === C) return x;
var promiseCapability = newPromiseCapability.f(C);
var resolve = promiseCapability.resolve;
resolve(x);
return promiseCapability.promise;
};
core-js-3.8.2/packages/core-js/internals/range-iterator.js 0000664 0000000 0000000 00000006365 13774351224 0023510 0 ustar 00root root 0000000 0000000 'use strict';
var InternalStateModule = require('../internals/internal-state');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var isObject = require('../internals/is-object');
var defineProperties = require('../internals/object-define-properties');
var DESCRIPTORS = require('../internals/descriptors');
var INCORRECT_RANGE = 'Incorrect Number.range arguments';
var RANGE_ITERATOR = 'RangeIterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(RANGE_ITERATOR);
var $RangeIterator = createIteratorConstructor(function RangeIterator(start, end, option, type, zero, one) {
if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) {
throw new TypeError(INCORRECT_RANGE);
}
if (start === Infinity || start === -Infinity) {
throw new RangeError(INCORRECT_RANGE);
}
var ifIncrease = end > start;
var inclusiveEnd = false;
var step;
if (option === undefined) {
step = undefined;
} else if (isObject(option)) {
step = option.step;
inclusiveEnd = !!option.inclusive;
} else if (typeof option == type) {
step = option;
} else {
throw new TypeError(INCORRECT_RANGE);
}
if (step == null) {
step = ifIncrease ? one : -one;
}
if (typeof step != type) {
throw new TypeError(INCORRECT_RANGE);
}
if (step === Infinity || step === -Infinity || (step === zero && start !== end)) {
throw new RangeError(INCORRECT_RANGE);
}
// eslint-disable-next-line no-self-compare
var hitsEnd = start != start || end != end || step != step || (end > start) !== (step > zero);
setInternalState(this, {
type: RANGE_ITERATOR,
start: start,
end: end,
step: step,
inclusiveEnd: inclusiveEnd,
hitsEnd: hitsEnd,
currentCount: zero,
zero: zero
});
if (!DESCRIPTORS) {
this.start = start;
this.end = end;
this.step = step;
this.inclusive = inclusiveEnd;
}
}, RANGE_ITERATOR, function next() {
var state = getInternalState(this);
if (state.hitsEnd) return { value: undefined, done: true };
var start = state.start;
var end = state.end;
var step = state.step;
var currentYieldingValue = start + (step * state.currentCount++);
if (currentYieldingValue === end) state.hitsEnd = true;
var inclusiveEnd = state.inclusiveEnd;
var endCondition;
if (end > start) {
endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end;
} else {
endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue;
}
if (endCondition) {
return { value: undefined, done: state.hitsEnd = true };
} return { value: currentYieldingValue, done: false };
});
var getter = function (fn) {
return { get: fn, set: function () { /* empty */ }, configurable: true, enumerable: false };
};
if (DESCRIPTORS) {
defineProperties($RangeIterator.prototype, {
start: getter(function () {
return getInternalState(this).start;
}),
end: getter(function () {
return getInternalState(this).end;
}),
inclusive: getter(function () {
return getInternalState(this).inclusiveEnd;
}),
step: getter(function () {
return getInternalState(this).step;
})
});
}
module.exports = $RangeIterator;
core-js-3.8.2/packages/core-js/internals/redefine-all.js 0000664 0000000 0000000 00000000272 13774351224 0023103 0 ustar 00root root 0000000 0000000 var redefine = require('../internals/redefine');
module.exports = function (target, src, options) {
for (var key in src) redefine(target, key, src[key], options);
return target;
};
core-js-3.8.2/packages/core-js/internals/redefine.js 0000664 0000000 0000000 00000003065 13774351224 0022340 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var has = require('../internals/has');
var setGlobal = require('../internals/set-global');
var inspectSource = require('../internals/inspect-source');
var InternalStateModule = require('../internals/internal-state');
var getInternalState = InternalStateModule.get;
var enforceInternalState = InternalStateModule.enforce;
var TEMPLATE = String(String).split('String');
(module.exports = function (O, key, value, options) {
var unsafe = options ? !!options.unsafe : false;
var simple = options ? !!options.enumerable : false;
var noTargetGet = options ? !!options.noTargetGet : false;
var state;
if (typeof value == 'function') {
if (typeof key == 'string' && !has(value, 'name')) {
createNonEnumerableProperty(value, 'name', key);
}
state = enforceInternalState(value);
if (!state.source) {
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
}
}
if (O === global) {
if (simple) O[key] = value;
else setGlobal(key, value);
return;
} else if (!unsafe) {
delete O[key];
} else if (!noTargetGet && O[key]) {
simple = true;
}
if (simple) O[key] = value;
else createNonEnumerableProperty(O, key, value);
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, 'toString', function toString() {
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
});
core-js-3.8.2/packages/core-js/internals/reflect-metadata.js 0000664 0000000 0000000 00000003534 13774351224 0023762 0 ustar 00root root 0000000 0000000 // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
var Map = require('../modules/es.map');
var WeakMap = require('../modules/es.weak-map');
var shared = require('../internals/shared');
var metadata = shared('metadata');
var store = metadata.store || (metadata.store = new WeakMap());
var getOrCreateMetadataMap = function (target, targetKey, create) {
var targetMetadata = store.get(target);
if (!targetMetadata) {
if (!create) return;
store.set(target, targetMetadata = new Map());
}
var keyMetadata = targetMetadata.get(targetKey);
if (!keyMetadata) {
if (!create) return;
targetMetadata.set(targetKey, keyMetadata = new Map());
} return keyMetadata;
};
var ordinaryHasOwnMetadata = function (MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? false : metadataMap.has(MetadataKey);
};
var ordinaryGetOwnMetadata = function (MetadataKey, O, P) {
var metadataMap = getOrCreateMetadataMap(O, P, false);
return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);
};
var ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {
getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);
};
var ordinaryOwnMetadataKeys = function (target, targetKey) {
var metadataMap = getOrCreateMetadataMap(target, targetKey, false);
var keys = [];
if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });
return keys;
};
var toMetadataKey = function (it) {
return it === undefined || typeof it == 'symbol' ? it : String(it);
};
module.exports = {
store: store,
getMap: getOrCreateMetadataMap,
has: ordinaryHasOwnMetadata,
get: ordinaryGetOwnMetadata,
set: ordinaryDefineOwnMetadata,
keys: ordinaryOwnMetadataKeys,
toKey: toMetadataKey
};
core-js-3.8.2/packages/core-js/internals/regexp-exec-abstract.js 0000664 0000000 0000000 00000001117 13774351224 0024570 0 ustar 00root root 0000000 0000000 var classof = require('./classof-raw');
var regexpExec = require('./regexp-exec');
// `RegExpExec` abstract operation
// https://tc39.es/ecma262/#sec-regexpexec
module.exports = function (R, S) {
var exec = R.exec;
if (typeof exec === 'function') {
var result = exec.call(R, S);
if (typeof result !== 'object') {
throw TypeError('RegExp exec method returned something other than an Object or null');
}
return result;
}
if (classof(R) !== 'RegExp') {
throw TypeError('RegExp#exec called on incompatible receiver');
}
return regexpExec.call(R, S);
};
core-js-3.8.2/packages/core-js/internals/regexp-exec.js 0000664 0000000 0000000 00000005400 13774351224 0022766 0 ustar 00root root 0000000 0000000 'use strict';
var regexpFlags = require('./regexp-flags');
var stickyHelpers = require('./regexp-sticky-helpers');
var nativeExec = RegExp.prototype.exec;
// This always refers to the native implementation, because the
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
// which loads this file before patching the method.
var nativeReplace = String.prototype.replace;
var patchedExec = nativeExec;
var UPDATES_LAST_INDEX_WRONG = (function () {
var re1 = /a/;
var re2 = /b*/g;
nativeExec.call(re1, 'a');
nativeExec.call(re2, 'a');
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
// nonparticipating capturing group, copied from es5-shim's String#split patch.
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
var sticky = UNSUPPORTED_Y && re.sticky;
var flags = regexpFlags.call(re);
var source = re.source;
var charsAdded = 0;
var strCopy = str;
if (sticky) {
flags = flags.replace('y', '');
if (flags.indexOf('g') === -1) {
flags += 'g';
}
strCopy = String(str).slice(re.lastIndex);
// Support anchored sticky behavior.
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
source = '(?: ' + source + ')';
strCopy = ' ' + strCopy;
charsAdded++;
}
// ^(? + rx + ) is needed, in combination with some str slicing, to
// simulate the 'y' flag.
reCopy = new RegExp('^(?:' + source + ')', flags);
}
if (NPCG_INCLUDED) {
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
}
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
match = nativeExec.call(sticky ? reCopy : re, strCopy);
if (sticky) {
if (match) {
match.input = match.input.slice(charsAdded);
match[0] = match[0].slice(charsAdded);
match.index = re.lastIndex;
re.lastIndex += match[0].length;
} else re.lastIndex = 0;
} else if (UPDATES_LAST_INDEX_WRONG && match) {
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
}
if (NPCG_INCLUDED && match && match.length > 1) {
// Fix browsers whose `exec` methods don't consistently return `undefined`
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
nativeReplace.call(match[0], reCopy, function () {
for (i = 1; i < arguments.length - 2; i++) {
if (arguments[i] === undefined) match[i] = undefined;
}
});
}
return match;
};
}
module.exports = patchedExec;
core-js-3.8.2/packages/core-js/internals/regexp-flags.js 0000664 0000000 0000000 00000000745 13774351224 0023145 0 ustar 00root root 0000000 0000000 'use strict';
var anObject = require('../internals/an-object');
// `RegExp.prototype.flags` getter implementation
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
module.exports = function () {
var that = anObject(this);
var result = '';
if (that.global) result += 'g';
if (that.ignoreCase) result += 'i';
if (that.multiline) result += 'm';
if (that.dotAll) result += 's';
if (that.unicode) result += 'u';
if (that.sticky) result += 'y';
return result;
};
core-js-3.8.2/packages/core-js/internals/regexp-sticky-helpers.js 0000664 0000000 0000000 00000001134 13774351224 0025010 0 ustar 00root root 0000000 0000000 'use strict';
var fails = require('./fails');
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
// so we use an intermediate function.
function RE(s, f) {
return RegExp(s, f);
}
exports.UNSUPPORTED_Y = fails(function () {
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var re = RE('a', 'y');
re.lastIndex = 2;
return re.exec('abcd') != null;
});
exports.BROKEN_CARET = fails(function () {
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
var re = RE('^r', 'gy');
re.lastIndex = 2;
return re.exec('str') != null;
});
core-js-3.8.2/packages/core-js/internals/require-object-coercible.js 0000664 0000000 0000000 00000000335 13774351224 0025421 0 ustar 00root root 0000000 0000000 // `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
core-js-3.8.2/packages/core-js/internals/same-value-zero.js 0000664 0000000 0000000 00000000316 13774351224 0023567 0 ustar 00root root 0000000 0000000 // `SameValueZero` abstract operation
// https://tc39.es/ecma262/#sec-samevaluezero
module.exports = function (x, y) {
// eslint-disable-next-line no-self-compare
return x === y || x != x && y != y;
};
core-js-3.8.2/packages/core-js/internals/same-value.js 0000664 0000000 0000000 00000000361 13774351224 0022612 0 ustar 00root root 0000000 0000000 // `SameValue` abstract operation
// https://tc39.es/ecma262/#sec-samevalue
module.exports = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
core-js-3.8.2/packages/core-js/internals/set-global.js 0000664 0000000 0000000 00000000460 13774351224 0022604 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
module.exports = function (key, value) {
try {
createNonEnumerableProperty(global, key, value);
} catch (error) {
global[key] = value;
} return value;
};
core-js-3.8.2/packages/core-js/internals/set-species.js 0000664 0000000 0000000 00000001176 13774351224 0023004 0 ustar 00root root 0000000 0000000 'use strict';
var getBuiltIn = require('../internals/get-built-in');
var definePropertyModule = require('../internals/object-define-property');
var wellKnownSymbol = require('../internals/well-known-symbol');
var DESCRIPTORS = require('../internals/descriptors');
var SPECIES = wellKnownSymbol('species');
module.exports = function (CONSTRUCTOR_NAME) {
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
var defineProperty = definePropertyModule.f;
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
defineProperty(Constructor, SPECIES, {
configurable: true,
get: function () { return this; }
});
}
};
core-js-3.8.2/packages/core-js/internals/set-to-string-tag.js 0000664 0000000 0000000 00000000651 13774351224 0024045 0 ustar 00root root 0000000 0000000 var defineProperty = require('../internals/object-define-property').f;
var has = require('../internals/has');
var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
module.exports = function (it, TAG, STATIC) {
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
}
};
core-js-3.8.2/packages/core-js/internals/shared-key.js 0000664 0000000 0000000 00000000304 13774351224 0022604 0 ustar 00root root 0000000 0000000 var shared = require('../internals/shared');
var uid = require('../internals/uid');
var keys = shared('keys');
module.exports = function (key) {
return keys[key] || (keys[key] = uid(key));
};
core-js-3.8.2/packages/core-js/internals/shared-store.js 0000664 0000000 0000000 00000000323 13774351224 0023151 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var setGlobal = require('../internals/set-global');
var SHARED = '__core-js_shared__';
var store = global[SHARED] || setGlobal(SHARED, {});
module.exports = store;
core-js-3.8.2/packages/core-js/internals/shared.js 0000664 0000000 0000000 00000000540 13774351224 0022020 0 ustar 00root root 0000000 0000000 var IS_PURE = require('../internals/is-pure');
var store = require('../internals/shared-store');
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.8.2',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
});
core-js-3.8.2/packages/core-js/internals/species-constructor.js 0000664 0000000 0000000 00000000775 13774351224 0024602 0 ustar 00root root 0000000 0000000 var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var wellKnownSymbol = require('../internals/well-known-symbol');
var SPECIES = wellKnownSymbol('species');
// `SpeciesConstructor` abstract operation
// https://tc39.es/ecma262/#sec-speciesconstructor
module.exports = function (O, defaultConstructor) {
var C = anObject(O).constructor;
var S;
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
};
core-js-3.8.2/packages/core-js/internals/string-html-forced.js 0000664 0000000 0000000 00000000502 13774351224 0024260 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
// check the existence of a method, lowercase
// of a tag and escaping quotes in arguments
module.exports = function (METHOD_NAME) {
return fails(function () {
var test = ''[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
core-js-3.8.2/packages/core-js/internals/string-multibyte.js 0000664 0000000 0000000 00000002167 13774351224 0024103 0 ustar 00root root 0000000 0000000 var toInteger = require('../internals/to-integer');
var requireObjectCoercible = require('../internals/require-object-coercible');
// `String.prototype.{ codePointAt, at }` methods implementation
var createMethod = function (CONVERT_TO_STRING) {
return function ($this, pos) {
var S = String(requireObjectCoercible($this));
var position = toInteger(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
first = S.charCodeAt(position);
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
? CONVERT_TO_STRING ? S.charAt(position) : first
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
};
};
module.exports = {
// `String.prototype.codePointAt` method
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
codeAt: createMethod(false),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt: createMethod(true)
};
core-js-3.8.2/packages/core-js/internals/string-pad-webkit-bug.js 0000664 0000000 0000000 00000000367 13774351224 0024667 0 ustar 00root root 0000000 0000000 // https://github.com/zloirock/core-js/issues/280
var userAgent = require('../internals/engine-user-agent');
// eslint-disable-next-line unicorn/no-unsafe-regex
module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
core-js-3.8.2/packages/core-js/internals/string-pad.js 0000664 0000000 0000000 00000002347 13774351224 0022631 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-string-pad-start-end
var toLength = require('../internals/to-length');
var repeat = require('../internals/string-repeat');
var requireObjectCoercible = require('../internals/require-object-coercible');
var ceil = Math.ceil;
// `String.prototype.{ padStart, padEnd }` methods implementation
var createMethod = function (IS_END) {
return function ($this, maxLength, fillString) {
var S = String(requireObjectCoercible($this));
var stringLength = S.length;
var fillStr = fillString === undefined ? ' ' : String(fillString);
var intMaxLength = toLength(maxLength);
var fillLen, stringFiller;
if (intMaxLength <= stringLength || fillStr == '') return S;
fillLen = intMaxLength - stringLength;
stringFiller = repeat.call(fillStr, ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);
return IS_END ? S + stringFiller : stringFiller + S;
};
};
module.exports = {
// `String.prototype.padStart` method
// https://tc39.es/ecma262/#sec-string.prototype.padstart
start: createMethod(false),
// `String.prototype.padEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.padend
end: createMethod(true)
};
core-js-3.8.2/packages/core-js/internals/string-punycode-to-ascii.js 0000664 0000000 0000000 00000012153 13774351224 0025415 0 ustar 00root root 0000000 0000000 'use strict';
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
var base = 36;
var tMin = 1;
var tMax = 26;
var skew = 38;
var damp = 700;
var initialBias = 72;
var initialN = 128; // 0x80
var delimiter = '-'; // '\x2D'
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
var baseMinusTMin = base - tMin;
var floor = Math.floor;
var stringFromCharCode = String.fromCharCode;
/**
* Creates an array containing the numeric code points of each Unicode
* character in the string. While JavaScript uses UCS-2 internally,
* this function will convert a pair of surrogate halves (each of which
* UCS-2 exposes as separate characters) into a single code point,
* matching UTF-16.
*/
var ucs2decode = function (string) {
var output = [];
var counter = 0;
var length = string.length;
while (counter < length) {
var value = string.charCodeAt(counter++);
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
// It's a high surrogate, and there is a next character.
var extra = string.charCodeAt(counter++);
if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
} else {
// It's an unmatched surrogate; only append this code unit, in case the
// next code unit is the high surrogate of a surrogate pair.
output.push(value);
counter--;
}
} else {
output.push(value);
}
}
return output;
};
/**
* Converts a digit/integer into a basic code point.
*/
var digitToBasic = function (digit) {
// 0..25 map to ASCII a..z or A..Z
// 26..35 map to ASCII 0..9
return digit + 22 + 75 * (digit < 26);
};
/**
* Bias adaptation function as per section 3.4 of RFC 3492.
* https://tools.ietf.org/html/rfc3492#section-3.4
*/
var adapt = function (delta, numPoints, firstTime) {
var k = 0;
delta = firstTime ? floor(delta / damp) : delta >> 1;
delta += floor(delta / numPoints);
for (; delta > baseMinusTMin * tMax >> 1; k += base) {
delta = floor(delta / baseMinusTMin);
}
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
};
/**
* Converts a string of Unicode symbols (e.g. a domain name label) to a
* Punycode string of ASCII-only symbols.
*/
// eslint-disable-next-line max-statements
var encode = function (input) {
var output = [];
// Convert the input in UCS-2 to an array of Unicode code points.
input = ucs2decode(input);
// Cache the length.
var inputLength = input.length;
// Initialize the state.
var n = initialN;
var delta = 0;
var bias = initialBias;
var i, currentValue;
// Handle the basic code points.
for (i = 0; i < input.length; i++) {
currentValue = input[i];
if (currentValue < 0x80) {
output.push(stringFromCharCode(currentValue));
}
}
var basicLength = output.length; // number of basic code points.
var handledCPCount = basicLength; // number of code points that have been handled;
// Finish the basic string with a delimiter unless it's empty.
if (basicLength) {
output.push(delimiter);
}
// Main encoding loop:
while (handledCPCount < inputLength) {
// All non-basic code points < n have been handled already. Find the next larger one:
var m = maxInt;
for (i = 0; i < input.length; i++) {
currentValue = input[i];
if (currentValue >= n && currentValue < m) {
m = currentValue;
}
}
// Increase `delta` enough to advance the decoder's state to , but guard against overflow.
var handledCPCountPlusOne = handledCPCount + 1;
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
throw RangeError(OVERFLOW_ERROR);
}
delta += (m - n) * handledCPCountPlusOne;
n = m;
for (i = 0; i < input.length; i++) {
currentValue = input[i];
if (currentValue < n && ++delta > maxInt) {
throw RangeError(OVERFLOW_ERROR);
}
if (currentValue == n) {
// Represent delta as a generalized variable-length integer.
var q = delta;
for (var k = base; /* no condition */; k += base) {
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
if (q < t) break;
var qMinusT = q - t;
var baseMinusT = base - t;
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
q = floor(qMinusT / baseMinusT);
}
output.push(stringFromCharCode(digitToBasic(q)));
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
delta = 0;
++handledCPCount;
}
}
++delta;
++n;
}
return output.join('');
};
module.exports = function (input) {
var encoded = [];
var labels = input.toLowerCase().replace(regexSeparators, '\u002E').split('.');
var i, label;
for (i = 0; i < labels.length; i++) {
label = labels[i];
encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);
}
return encoded.join('.');
};
core-js-3.8.2/packages/core-js/internals/string-repeat.js 0000664 0000000 0000000 00000001075 13774351224 0023342 0 ustar 00root root 0000000 0000000 'use strict';
var toInteger = require('../internals/to-integer');
var requireObjectCoercible = require('../internals/require-object-coercible');
// `String.prototype.repeat` method implementation
// https://tc39.es/ecma262/#sec-string.prototype.repeat
module.exports = ''.repeat || function repeat(count) {
var str = String(requireObjectCoercible(this));
var result = '';
var n = toInteger(count);
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
return result;
};
core-js-3.8.2/packages/core-js/internals/string-trim-forced.js 0000664 0000000 0000000 00000000647 13774351224 0024301 0 ustar 00root root 0000000 0000000 var fails = require('../internals/fails');
var whitespaces = require('../internals/whitespaces');
var non = '\u200B\u0085\u180E';
// check that a method works with the correct list
// of whitespaces and has a correct name
module.exports = function (METHOD_NAME) {
return fails(function () {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
core-js-3.8.2/packages/core-js/internals/string-trim.js 0000664 0000000 0000000 00000002042 13774351224 0023030 0 ustar 00root root 0000000 0000000 var requireObjectCoercible = require('../internals/require-object-coercible');
var whitespaces = require('../internals/whitespaces');
var whitespace = '[' + whitespaces + ']';
var ltrim = RegExp('^' + whitespace + whitespace + '*');
var rtrim = RegExp(whitespace + whitespace + '*$');
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
var createMethod = function (TYPE) {
return function ($this) {
var string = String(requireObjectCoercible($this));
if (TYPE & 1) string = string.replace(ltrim, '');
if (TYPE & 2) string = string.replace(rtrim, '');
return string;
};
};
module.exports = {
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
start: createMethod(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimend
end: createMethod(2),
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
trim: createMethod(3)
};
core-js-3.8.2/packages/core-js/internals/task.js 0000664 0000000 0000000 00000005630 13774351224 0021521 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var fails = require('../internals/fails');
var bind = require('../internals/function-bind-context');
var html = require('../internals/html');
var createElement = require('../internals/document-create-element');
var IS_IOS = require('../internals/engine-is-ios');
var IS_NODE = require('../internals/engine-is-node');
var location = global.location;
var set = global.setImmediate;
var clear = global.clearImmediate;
var process = global.process;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var defer, channel, port;
var run = function (id) {
// eslint-disable-next-line no-prototype-builtins
if (queue.hasOwnProperty(id)) {
var fn = queue[id];
delete queue[id];
fn();
}
};
var runner = function (id) {
return function () {
run(id);
};
};
var listener = function (event) {
run(event.data);
};
var post = function (id) {
// old engines have not location.origin
global.postMessage(id + '', location.protocol + '//' + location.host);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!set || !clear) {
set = function setImmediate(fn) {
var args = [];
var i = 1;
while (arguments.length > i) args.push(arguments[i++]);
queue[++counter] = function () {
// eslint-disable-next-line no-new-func
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
};
defer(counter);
return counter;
};
clear = function clearImmediate(id) {
delete queue[id];
};
// Node.js 0.8-
if (IS_NODE) {
defer = function (id) {
process.nextTick(runner(id));
};
// Sphere (JS game engine) Dispatch API
} else if (Dispatch && Dispatch.now) {
defer = function (id) {
Dispatch.now(runner(id));
};
// Browsers with MessageChannel, includes WebWorkers
// except iOS - https://github.com/zloirock/core-js/issues/624
} else if (MessageChannel && !IS_IOS) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
defer = bind(port.postMessage, port, 1);
// Browsers with postMessage, skip WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
} else if (
global.addEventListener &&
typeof postMessage == 'function' &&
!global.importScripts &&
location && location.protocol !== 'file:' &&
!fails(post)
) {
defer = post;
global.addEventListener('message', listener, false);
// IE8-
} else if (ONREADYSTATECHANGE in createElement('script')) {
defer = function (id) {
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
html.removeChild(this);
run(id);
};
};
// Rest old browsers
} else {
defer = function (id) {
setTimeout(runner(id), 0);
};
}
}
module.exports = {
set: set,
clear: clear
};
core-js-3.8.2/packages/core-js/internals/this-number-value.js 0000664 0000000 0000000 00000000465 13774351224 0024127 0 ustar 00root root 0000000 0000000 var classof = require('../internals/classof-raw');
// `thisNumberValue` abstract operation
// https://tc39.es/ecma262/#sec-thisnumbervalue
module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
};
core-js-3.8.2/packages/core-js/internals/to-absolute-index.js 0000664 0000000 0000000 00000000667 13774351224 0024127 0 ustar 00root root 0000000 0000000 var toInteger = require('../internals/to-integer');
var max = Math.max;
var min = Math.min;
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
module.exports = function (index, length) {
var integer = toInteger(index);
return integer < 0 ? max(integer + length, 0) : min(integer, length);
};
core-js-3.8.2/packages/core-js/internals/to-index.js 0000664 0000000 0000000 00000000611 13774351224 0022300 0 ustar 00root root 0000000 0000000 var toInteger = require('../internals/to-integer');
var toLength = require('../internals/to-length');
// `ToIndex` abstract operation
// https://tc39.es/ecma262/#sec-toindex
module.exports = function (it) {
if (it === undefined) return 0;
var number = toInteger(it);
var length = toLength(number);
if (number !== length) throw RangeError('Wrong length or index');
return length;
};
core-js-3.8.2/packages/core-js/internals/to-indexed-object.js 0000664 0000000 0000000 00000000435 13774351224 0024061 0 ustar 00root root 0000000 0000000 // toObject with fallback for non-array-like ES3 strings
var IndexedObject = require('../internals/indexed-object');
var requireObjectCoercible = require('../internals/require-object-coercible');
module.exports = function (it) {
return IndexedObject(requireObjectCoercible(it));
};
core-js-3.8.2/packages/core-js/internals/to-integer.js 0000664 0000000 0000000 00000000371 13774351224 0022631 0 ustar 00root root 0000000 0000000 var ceil = Math.ceil;
var floor = Math.floor;
// `ToInteger` abstract operation
// https://tc39.es/ecma262/#sec-tointeger
module.exports = function (argument) {
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
};
core-js-3.8.2/packages/core-js/internals/to-length.js 0000664 0000000 0000000 00000000451 13774351224 0022454 0 ustar 00root root 0000000 0000000 var toInteger = require('../internals/to-integer');
var min = Math.min;
// `ToLength` abstract operation
// https://tc39.es/ecma262/#sec-tolength
module.exports = function (argument) {
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};
core-js-3.8.2/packages/core-js/internals/to-object.js 0000664 0000000 0000000 00000000367 13774351224 0022447 0 ustar 00root root 0000000 0000000 var requireObjectCoercible = require('../internals/require-object-coercible');
// `ToObject` abstract operation
// https://tc39.es/ecma262/#sec-toobject
module.exports = function (argument) {
return Object(requireObjectCoercible(argument));
};
core-js-3.8.2/packages/core-js/internals/to-offset.js 0000664 0000000 0000000 00000000340 13774351224 0022456 0 ustar 00root root 0000000 0000000 var toPositiveInteger = require('../internals/to-positive-integer');
module.exports = function (it, BYTES) {
var offset = toPositiveInteger(it);
if (offset % BYTES) throw RangeError('Wrong offset');
return offset;
};
core-js-3.8.2/packages/core-js/internals/to-positive-integer.js 0000664 0000000 0000000 00000000321 13774351224 0024464 0 ustar 00root root 0000000 0000000 var toInteger = require('../internals/to-integer');
module.exports = function (it) {
var result = toInteger(it);
if (result < 0) throw RangeError("The argument can't be less than 0");
return result;
};
core-js-3.8.2/packages/core-js/internals/to-primitive.js 0000664 0000000 0000000 00000001404 13774351224 0023202 0 ustar 00root root 0000000 0000000 var isObject = require('../internals/is-object');
// `ToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-toprimitive
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (input, PREFERRED_STRING) {
if (!isObject(input)) return input;
var fn, val;
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
throw TypeError("Can't convert object to primitive value");
};
core-js-3.8.2/packages/core-js/internals/to-string-tag-support.js 0000664 0000000 0000000 00000000322 13774351224 0024761 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';
core-js-3.8.2/packages/core-js/internals/typed-array-constructor.js 0000664 0000000 0000000 00000022726 13774351224 0025410 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var DESCRIPTORS = require('../internals/descriptors');
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var ArrayBufferModule = require('../internals/array-buffer');
var anInstance = require('../internals/an-instance');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var toLength = require('../internals/to-length');
var toIndex = require('../internals/to-index');
var toOffset = require('../internals/to-offset');
var toPrimitive = require('../internals/to-primitive');
var has = require('../internals/has');
var classof = require('../internals/classof');
var isObject = require('../internals/is-object');
var create = require('../internals/object-create');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var typedArrayFrom = require('../internals/typed-array-from');
var forEach = require('../internals/array-iteration').forEach;
var setSpecies = require('../internals/set-species');
var definePropertyModule = require('../internals/object-define-property');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var InternalStateModule = require('../internals/internal-state');
var inheritIfRequired = require('../internals/inherit-if-required');
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var round = Math.round;
var RangeError = global.RangeError;
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
var DataView = ArrayBufferModule.DataView;
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
var TypedArray = ArrayBufferViewCore.TypedArray;
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var isTypedArray = ArrayBufferViewCore.isTypedArray;
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
var WRONG_LENGTH = 'Wrong length';
var fromList = function (C, list) {
var index = 0;
var length = list.length;
var result = new (aTypedArrayConstructor(C))(length);
while (length > index) result[index] = list[index++];
return result;
};
var addGetter = function (it, key) {
nativeDefineProperty(it, key, { get: function () {
return getInternalState(this)[key];
} });
};
var isArrayBuffer = function (it) {
var klass;
return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
};
var isTypedArrayIndex = function (target, key) {
return isTypedArray(target)
&& typeof key != 'symbol'
&& key in target
&& String(+key) == String(key);
};
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
return isTypedArrayIndex(target, key = toPrimitive(key, true))
? createPropertyDescriptor(2, target[key])
: nativeGetOwnPropertyDescriptor(target, key);
};
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
if (isTypedArrayIndex(target, key = toPrimitive(key, true))
&& isObject(descriptor)
&& has(descriptor, 'value')
&& !has(descriptor, 'get')
&& !has(descriptor, 'set')
// TODO: add validation descriptor w/o calling accessors
&& !descriptor.configurable
&& (!has(descriptor, 'writable') || descriptor.writable)
&& (!has(descriptor, 'enumerable') || descriptor.enumerable)
) {
target[key] = descriptor.value;
return target;
} return nativeDefineProperty(target, key, descriptor);
};
if (DESCRIPTORS) {
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
definePropertyModule.f = wrappedDefineProperty;
addGetter(TypedArrayPrototype, 'buffer');
addGetter(TypedArrayPrototype, 'byteOffset');
addGetter(TypedArrayPrototype, 'byteLength');
addGetter(TypedArrayPrototype, 'length');
}
$({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
defineProperty: wrappedDefineProperty
});
module.exports = function (TYPE, wrapper, CLAMPED) {
var BYTES = TYPE.match(/\d+$/)[0] / 8;
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
var GETTER = 'get' + TYPE;
var SETTER = 'set' + TYPE;
var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];
var TypedArrayConstructor = NativeTypedArrayConstructor;
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
var exported = {};
var getter = function (that, index) {
var data = getInternalState(that);
return data.view[GETTER](index * BYTES + data.byteOffset, true);
};
var setter = function (that, index, value) {
var data = getInternalState(that);
if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
data.view[SETTER](index * BYTES + data.byteOffset, value, true);
};
var addElement = function (that, index) {
nativeDefineProperty(that, index, {
get: function () {
return getter(this, index);
},
set: function (value) {
return setter(this, index, value);
},
enumerable: true
});
};
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
var index = 0;
var byteOffset = 0;
var buffer, byteLength, length;
if (!isObject(data)) {
length = toIndex(data);
byteLength = length * BYTES;
buffer = new ArrayBuffer(byteLength);
} else if (isArrayBuffer(data)) {
buffer = data;
byteOffset = toOffset(offset, BYTES);
var $len = data.byteLength;
if ($length === undefined) {
if ($len % BYTES) throw RangeError(WRONG_LENGTH);
byteLength = $len - byteOffset;
if (byteLength < 0) throw RangeError(WRONG_LENGTH);
} else {
byteLength = toLength($length) * BYTES;
if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);
}
length = byteLength / BYTES;
} else if (isTypedArray(data)) {
return fromList(TypedArrayConstructor, data);
} else {
return typedArrayFrom.call(TypedArrayConstructor, data);
}
setInternalState(that, {
buffer: buffer,
byteOffset: byteOffset,
byteLength: byteLength,
length: length,
view: new DataView(buffer)
});
while (index < length) addElement(that, index++);
});
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
return inheritIfRequired(function () {
if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
if (isArrayBuffer(data)) return $length !== undefined
? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)
: typedArrayOffset !== undefined
? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
: new NativeTypedArrayConstructor(data);
if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
return typedArrayFrom.call(TypedArrayConstructor, data);
}(), dummy, TypedArrayConstructor);
});
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {
if (!(key in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
}
});
TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
}
if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
}
if (TYPED_ARRAY_TAG) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
}
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
$({
global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS
}, exported);
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
}
if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
}
setSpecies(CONSTRUCTOR_NAME);
};
} else module.exports = function () { /* empty */ };
core-js-3.8.2/packages/core-js/internals/typed-array-constructors-require-wrappers.js 0000664 0000000 0000000 00000001534 13774351224 0031100 0 ustar 00root root 0000000 0000000 /* eslint-disable no-new */
var global = require('../internals/global');
var fails = require('../internals/fails');
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
var NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;
var ArrayBuffer = global.ArrayBuffer;
var Int8Array = global.Int8Array;
module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
Int8Array(1);
}) || !fails(function () {
new Int8Array(-1);
}) || !checkCorrectnessOfIteration(function (iterable) {
new Int8Array();
new Int8Array(null);
new Int8Array(1.5);
new Int8Array(iterable);
}, true) || fails(function () {
// Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
});
core-js-3.8.2/packages/core-js/internals/typed-array-from.js 0000664 0000000 0000000 00000002342 13774351224 0023756 0 ustar 00root root 0000000 0000000 var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var getIteratorMethod = require('../internals/get-iterator-method');
var isArrayIteratorMethod = require('../internals/is-array-iterator-method');
var bind = require('../internals/function-bind-context');
var aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor;
module.exports = function from(source /* , mapfn, thisArg */) {
var O = toObject(source);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var iteratorMethod = getIteratorMethod(O);
var i, length, result, step, iterator, next;
if (iteratorMethod != undefined && !isArrayIteratorMethod(iteratorMethod)) {
iterator = iteratorMethod.call(O);
next = iterator.next;
O = [];
while (!(step = next.call(iterator)).done) {
O.push(step.value);
}
}
if (mapping && argumentsLength > 2) {
mapfn = bind(mapfn, arguments[2], 2);
}
length = toLength(O.length);
result = new (aTypedArrayConstructor(this))(length);
for (i = 0; length > i; i++) {
result[i] = mapping ? mapfn(O[i], i) : O[i];
}
return result;
};
core-js-3.8.2/packages/core-js/internals/uid.js 0000664 0000000 0000000 00000000261 13774351224 0021333 0 ustar 00root root 0000000 0000000 var id = 0;
var postfix = Math.random();
module.exports = function (key) {
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};
core-js-3.8.2/packages/core-js/internals/use-symbol-as-uid.js 0000664 0000000 0000000 00000000344 13774351224 0024033 0 ustar 00root root 0000000 0000000 var NATIVE_SYMBOL = require('../internals/native-symbol');
module.exports = NATIVE_SYMBOL
// eslint-disable-next-line no-undef
&& !Symbol.sham
// eslint-disable-next-line no-undef
&& typeof Symbol.iterator == 'symbol';
core-js-3.8.2/packages/core-js/internals/well-known-symbol-wrapped.js 0000664 0000000 0000000 00000000137 13774351224 0025614 0 ustar 00root root 0000000 0000000 var wellKnownSymbol = require('../internals/well-known-symbol');
exports.f = wellKnownSymbol;
core-js-3.8.2/packages/core-js/internals/well-known-symbol.js 0000664 0000000 0000000 00000001360 13774351224 0024153 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var shared = require('../internals/shared');
var has = require('../internals/has');
var uid = require('../internals/uid');
var NATIVE_SYMBOL = require('../internals/native-symbol');
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
var WellKnownSymbolsStore = shared('wks');
var Symbol = global.Symbol;
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
module.exports = function (name) {
if (!has(WellKnownSymbolsStore, name)) {
if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
} return WellKnownSymbolsStore[name];
};
core-js-3.8.2/packages/core-js/internals/whitespaces.js 0000664 0000000 0000000 00000000374 13774351224 0023076 0 ustar 00root root 0000000 0000000 // a string of all valid unicode whitespaces
// eslint-disable-next-line max-len
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
core-js-3.8.2/packages/core-js/modules/ 0000775 0000000 0000000 00000000000 13774351224 0017666 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/modules/README.md 0000664 0000000 0000000 00000000244 13774351224 0021145 0 ustar 00root root 0000000 0000000 This folder contains implementations of polyfills. It's not recommended to include in your projects directly if you don't completely understand what are you doing.
core-js-3.8.2/packages/core-js/modules/es.aggregate-error.js 0000664 0000000 0000000 00000002610 13774351224 0023706 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var setPrototypeOf = require('../internals/object-set-prototype-of');
var create = require('../internals/object-create');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var iterate = require('../internals/iterate');
var $AggregateError = function AggregateError(errors, message) {
var that = this;
if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);
if (setPrototypeOf) {
// eslint-disable-next-line unicorn/error-message
that = setPrototypeOf(new Error(undefined), getPrototypeOf(that));
}
if (message !== undefined) createNonEnumerableProperty(that, 'message', String(message));
var errorsArray = [];
iterate(errors, errorsArray.push, { that: errorsArray });
createNonEnumerableProperty(that, 'errors', errorsArray);
return that;
};
$AggregateError.prototype = create(Error.prototype, {
constructor: createPropertyDescriptor(5, $AggregateError),
message: createPropertyDescriptor(5, ''),
name: createPropertyDescriptor(5, 'AggregateError')
});
// `AggregateError` constructor
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
$({ global: true }, {
AggregateError: $AggregateError
});
core-js-3.8.2/packages/core-js/modules/es.array-buffer.constructor.js 0000664 0000000 0000000 00000001054 13774351224 0025603 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var arrayBufferModule = require('../internals/array-buffer');
var setSpecies = require('../internals/set-species');
var ARRAY_BUFFER = 'ArrayBuffer';
var ArrayBuffer = arrayBufferModule[ARRAY_BUFFER];
var NativeArrayBuffer = global[ARRAY_BUFFER];
// `ArrayBuffer` constructor
// https://tc39.es/ecma262/#sec-arraybuffer-constructor
$({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {
ArrayBuffer: ArrayBuffer
});
setSpecies(ARRAY_BUFFER);
core-js-3.8.2/packages/core-js/modules/es.array-buffer.is-view.js 0000664 0000000 0000000 00000000615 13774351224 0024603 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
// `ArrayBuffer.isView` method
// https://tc39.es/ecma262/#sec-arraybuffer.isview
$({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
isView: ArrayBufferViewCore.isView
});
core-js-3.8.2/packages/core-js/modules/es.array-buffer.slice.js 0000664 0000000 0000000 00000002733 13774351224 0024322 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var fails = require('../internals/fails');
var ArrayBufferModule = require('../internals/array-buffer');
var anObject = require('../internals/an-object');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toLength = require('../internals/to-length');
var speciesConstructor = require('../internals/species-constructor');
var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
var DataView = ArrayBufferModule.DataView;
var nativeArrayBufferSlice = ArrayBuffer.prototype.slice;
var INCORRECT_SLICE = fails(function () {
return !new ArrayBuffer(2).slice(1, undefined).byteLength;
});
// `ArrayBuffer.prototype.slice` method
// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
$({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
slice: function slice(start, end) {
if (nativeArrayBufferSlice !== undefined && end === undefined) {
return nativeArrayBufferSlice.call(anObject(this), start); // FF fix
}
var length = anObject(this).byteLength;
var first = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first));
var viewSource = new DataView(this);
var viewTarget = new DataView(result);
var index = 0;
while (first < fin) {
viewTarget.setUint8(index++, viewSource.getUint8(first++));
} return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.concat.js 0000664 0000000 0000000 00000004532 13774351224 0023222 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var fails = require('../internals/fails');
var isArray = require('../internals/is-array');
var isObject = require('../internals/is-object');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var createProperty = require('../internals/create-property');
var arraySpeciesCreate = require('../internals/array-species-create');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var wellKnownSymbol = require('../internals/well-known-symbol');
var V8_VERSION = require('../internals/engine-v8-version');
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/679
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
var array = [];
array[IS_CONCAT_SPREADABLE] = false;
return array.concat()[0] !== array;
});
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
var isConcatSpreadable = function (O) {
if (!isObject(O)) return false;
var spreadable = O[IS_CONCAT_SPREADABLE];
return spreadable !== undefined ? !!spreadable : isArray(O);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, forced: FORCED }, {
concat: function concat(arg) { // eslint-disable-line no-unused-vars
var O = toObject(this);
var A = arraySpeciesCreate(O, 0);
var n = 0;
var i, k, length, len, E;
for (i = -1, length = arguments.length; i < length; i++) {
E = i === -1 ? O : arguments[i];
if (isConcatSpreadable(E)) {
len = toLength(E.length);
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
} else {
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
createProperty(A, n++, E);
}
}
A.length = n;
return A;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.copy-within.js 0000664 0000000 0000000 00000000654 13774351224 0024226 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var copyWithin = require('../internals/array-copy-within');
var addToUnscopables = require('../internals/add-to-unscopables');
// `Array.prototype.copyWithin` method
// https://tc39.es/ecma262/#sec-array.prototype.copywithin
$({ target: 'Array', proto: true }, {
copyWithin: copyWithin
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('copyWithin');
core-js-3.8.2/packages/core-js/modules/es.array.every.js 0000664 0000000 0000000 00000001267 13774351224 0023107 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $every = require('../internals/array-iteration').every;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('every');
var USES_TO_LENGTH = arrayMethodUsesToLength('every');
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
every: function every(callbackfn /* , thisArg */) {
return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.fill.js 0000664 0000000 0000000 00000000601 13774351224 0022672 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fill = require('../internals/array-fill');
var addToUnscopables = require('../internals/add-to-unscopables');
// `Array.prototype.fill` method
// https://tc39.es/ecma262/#sec-array.prototype.fill
$({ target: 'Array', proto: true }, {
fill: fill
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('fill');
core-js-3.8.2/packages/core-js/modules/es.array.filter.js 0000664 0000000 0000000 00000001436 13774351224 0023240 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $filter = require('../internals/array-iteration').filter;
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
// Edge 14- issue
var USES_TO_LENGTH = arrayMethodUsesToLength('filter');
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
filter: function filter(callbackfn /* , thisArg */) {
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.find-index.js 0000664 0000000 0000000 00000001642 13774351224 0023777 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $findIndex = require('../internals/array-iteration').findIndex;
var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var FIND_INDEX = 'findIndex';
var SKIPS_HOLES = true;
var USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);
// Shouldn't skip holes
if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findindex
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
findIndex: function findIndex(callbackfn /* , that = undefined */) {
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND_INDEX);
core-js-3.8.2/packages/core-js/modules/es.array.find.js 0000664 0000000 0000000 00000001534 13774351224 0022672 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $find = require('../internals/array-iteration').find;
var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var FIND = 'find';
var SKIPS_HOLES = true;
var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
// Shouldn't skip holes
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
find: function find(callbackfn /* , that = undefined */) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND);
core-js-3.8.2/packages/core-js/modules/es.array.flat-map.js 0000664 0000000 0000000 00000001457 13774351224 0023457 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var flattenIntoArray = require('../internals/flatten-into-array');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var aFunction = require('../internals/a-function');
var arraySpeciesCreate = require('../internals/array-species-create');
// `Array.prototype.flatMap` method
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
$({ target: 'Array', proto: true }, {
flatMap: function flatMap(callbackfn /* , thisArg */) {
var O = toObject(this);
var sourceLen = toLength(O.length);
var A;
aFunction(callbackfn);
A = arraySpeciesCreate(O, 0);
A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
return A;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.flat.js 0000664 0000000 0000000 00000001453 13774351224 0022700 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var flattenIntoArray = require('../internals/flatten-into-array');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var toInteger = require('../internals/to-integer');
var arraySpeciesCreate = require('../internals/array-species-create');
// `Array.prototype.flat` method
// https://tc39.es/ecma262/#sec-array.prototype.flat
$({ target: 'Array', proto: true }, {
flat: function flat(/* depthArg = 1 */) {
var depthArg = arguments.length ? arguments[0] : undefined;
var O = toObject(this);
var sourceLen = toLength(O.length);
var A = arraySpeciesCreate(O, 0);
A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
return A;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.for-each.js 0000664 0000000 0000000 00000000445 13774351224 0023436 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var forEach = require('../internals/array-for-each');
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
forEach: forEach
});
core-js-3.8.2/packages/core-js/modules/es.array.from.js 0000664 0000000 0000000 00000000661 13774351224 0022715 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var from = require('../internals/array-from');
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
Array.from(iterable);
});
// `Array.from` method
// https://tc39.es/ecma262/#sec-array.from
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
from: from
});
core-js-3.8.2/packages/core-js/modules/es.array.includes.js 0000664 0000000 0000000 00000001360 13774351224 0023555 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $includes = require('../internals/array-includes').includes;
var addToUnscopables = require('../internals/add-to-unscopables');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
includes: function includes(el /* , fromIndex = 0 */) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('includes');
core-js-3.8.2/packages/core-js/modules/es.array.index-of.js 0000664 0000000 0000000 00000001706 13774351224 0023464 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $indexOf = require('../internals/array-includes').indexOf;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var nativeIndexOf = [].indexOf;
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
return NEGATIVE_ZERO
// convert -0 to +0
? nativeIndexOf.apply(this, arguments) || 0
: $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.is-array.js 0000664 0000000 0000000 00000000335 13774351224 0023477 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isArray = require('../internals/is-array');
// `Array.isArray` method
// https://tc39.es/ecma262/#sec-array.isarray
$({ target: 'Array', stat: true }, {
isArray: isArray
});
core-js-3.8.2/packages/core-js/modules/es.array.iterator.js 0000664 0000000 0000000 00000004151 13774351224 0023601 0 ustar 00root root 0000000 0000000 'use strict';
var toIndexedObject = require('../internals/to-indexed-object');
var addToUnscopables = require('../internals/add-to-unscopables');
var Iterators = require('../internals/iterators');
var InternalStateModule = require('../internals/internal-state');
var defineIterator = require('../internals/define-iterator');
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
// `Array.prototype.entries` method
// https://tc39.es/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.es/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.es/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.es/ecma262/#sec-createarrayiterator
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
setInternalState(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject(iterated), // target
index: 0, // next index
kind: kind // kind
});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
}, function () {
var state = getInternalState(this);
var target = state.target;
var kind = state.kind;
var index = state.index++;
if (!target || index >= target.length) {
state.target = undefined;
return { value: undefined, done: true };
}
if (kind == 'keys') return { value: index, done: false };
if (kind == 'values') return { value: target[index], done: false };
return { value: [index, target[index]], done: false };
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
Iterators.Arguments = Iterators.Array;
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
core-js-3.8.2/packages/core-js/modules/es.array.join.js 0000664 0000000 0000000 00000001247 13774351224 0022712 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IndexedObject = require('../internals/indexed-object');
var toIndexedObject = require('../internals/to-indexed-object');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var nativeJoin = [].join;
var ES3_STRINGS = IndexedObject != Object;
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
// `Array.prototype.join` method
// https://tc39.es/ecma262/#sec-array.prototype.join
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
join: function join(separator) {
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.last-index-of.js 0000664 0000000 0000000 00000000471 13774351224 0024423 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var lastIndexOf = require('../internals/array-last-index-of');
// `Array.prototype.lastIndexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.lastindexof
$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
lastIndexOf: lastIndexOf
});
core-js-3.8.2/packages/core-js/modules/es.array.map.js 0000664 0000000 0000000 00000001400 13774351224 0022517 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $map = require('../internals/array-iteration').map;
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
// FF49- issue
var USES_TO_LENGTH = arrayMethodUsesToLength('map');
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
map: function map(callbackfn /* , thisArg */) {
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.of.js 0000664 0000000 0000000 00000001373 13774351224 0022357 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var fails = require('../internals/fails');
var createProperty = require('../internals/create-property');
var ISNT_GENERIC = fails(function () {
function F() { /* empty */ }
return !(Array.of.call(F) instanceof F);
});
// `Array.of` method
// https://tc39.es/ecma262/#sec-array.of
// WebKit Array.of isn't generic
$({ target: 'Array', stat: true, forced: ISNT_GENERIC }, {
of: function of(/* ...args */) {
var index = 0;
var argumentsLength = arguments.length;
var result = new (typeof this == 'function' ? this : Array)(argumentsLength);
while (argumentsLength > index) createProperty(result, index, arguments[index++]);
result.length = argumentsLength;
return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.reduce-right.js 0000664 0000000 0000000 00000002251 13774351224 0024331 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $reduceRight = require('../internals/array-reduce').right;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var CHROME_VERSION = require('../internals/engine-v8-version');
var IS_NODE = require('../internals/engine-is-node');
var STRICT_METHOD = arrayMethodIsStrict('reduceRight');
// For preventing possible almost infinite loop in non-standard implementations, test the forward version of the method
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });
// Chrome 80-82 has a critical bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH || CHROME_BUG }, {
reduceRight: function reduceRight(callbackfn /* , initialValue */) {
return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.reduce.js 0000664 0000000 0000000 00000002015 13774351224 0023214 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $reduce = require('../internals/array-reduce').left;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var CHROME_VERSION = require('../internals/engine-v8-version');
var IS_NODE = require('../internals/engine-is-node');
var STRICT_METHOD = arrayMethodIsStrict('reduce');
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });
// Chrome 80-82 has a critical bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH || CHROME_BUG }, {
reduce: function reduce(callbackfn /* , initialValue */) {
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.reverse.js 0000664 0000000 0000000 00000001111 13774351224 0023414 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var isArray = require('../internals/is-array');
var nativeReverse = [].reverse;
var test = [1, 2];
// `Array.prototype.reverse` method
// https://tc39.es/ecma262/#sec-array.prototype.reverse
// fix for Safari 12.0 bug
// https://bugs.webkit.org/show_bug.cgi?id=188794
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
reverse: function reverse() {
// eslint-disable-next-line no-self-assign
if (isArray(this)) this.length = this.length;
return nativeReverse.call(this);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.slice.js 0000664 0000000 0000000 00000004201 13774351224 0023043 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var isObject = require('../internals/is-object');
var isArray = require('../internals/is-array');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toLength = require('../internals/to-length');
var toIndexedObject = require('../internals/to-indexed-object');
var createProperty = require('../internals/create-property');
var wellKnownSymbol = require('../internals/well-known-symbol');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
var USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
var SPECIES = wellKnownSymbol('species');
var nativeSlice = [].slice;
var max = Math.max;
// `Array.prototype.slice` method
// https://tc39.es/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
slice: function slice(start, end) {
var O = toIndexedObject(this);
var length = toLength(O.length);
var k = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
var Constructor, result, n;
if (isArray(O)) {
Constructor = O.constructor;
// cross-realm fallback
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
Constructor = undefined;
} else if (isObject(Constructor)) {
Constructor = Constructor[SPECIES];
if (Constructor === null) Constructor = undefined;
}
if (Constructor === Array || Constructor === undefined) {
return nativeSlice.call(O, k, fin);
}
}
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
result.length = n;
return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.some.js 0000664 0000000 0000000 00000001256 13774351224 0022716 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $some = require('../internals/array-iteration').some;
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var STRICT_METHOD = arrayMethodIsStrict('some');
var USES_TO_LENGTH = arrayMethodUsesToLength('some');
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
some: function some(callbackfn /* , thisArg */) {
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.array.sort.js 0000664 0000000 0000000 00000001637 13774351224 0022745 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var toObject = require('../internals/to-object');
var fails = require('../internals/fails');
var arrayMethodIsStrict = require('../internals/array-method-is-strict');
var test = [];
var nativeSort = test.sort;
// IE8-
var FAILS_ON_UNDEFINED = fails(function () {
test.sort(undefined);
});
// V8 bug
var FAILS_ON_NULL = fails(function () {
test.sort(null);
});
// Old WebKit
var STRICT_METHOD = arrayMethodIsStrict('sort');
var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD;
// `Array.prototype.sort` method
// https://tc39.es/ecma262/#sec-array.prototype.sort
$({ target: 'Array', proto: true, forced: FORCED }, {
sort: function sort(comparefn) {
return comparefn === undefined
? nativeSort.call(toObject(this))
: nativeSort.call(toObject(this), aFunction(comparefn));
}
});
core-js-3.8.2/packages/core-js/modules/es.array.species.js 0000664 0000000 0000000 00000000235 13774351224 0023402 0 ustar 00root root 0000000 0000000 var setSpecies = require('../internals/set-species');
// `Array[@@species]` getter
// https://tc39.es/ecma262/#sec-get-array-@@species
setSpecies('Array');
core-js-3.8.2/packages/core-js/modules/es.array.splice.js 0000664 0000000 0000000 00000005416 13774351224 0023234 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toInteger = require('../internals/to-integer');
var toLength = require('../internals/to-length');
var toObject = require('../internals/to-object');
var arraySpeciesCreate = require('../internals/array-species-create');
var createProperty = require('../internals/create-property');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
var arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
var USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });
var max = Math.max;
var min = Math.min;
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
// `Array.prototype.splice` method
// https://tc39.es/ecma262/#sec-array.prototype.splice
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
splice: function splice(start, deleteCount /* , ...items */) {
var O = toObject(this);
var len = toLength(O.length);
var actualStart = toAbsoluteIndex(start, len);
var argumentsLength = arguments.length;
var insertCount, actualDeleteCount, A, k, from, to;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
}
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
}
A = arraySpeciesCreate(O, actualDeleteCount);
for (k = 0; k < actualDeleteCount; k++) {
from = actualStart + k;
if (from in O) createProperty(A, k, O[from]);
}
A.length = actualDeleteCount;
if (insertCount < actualDeleteCount) {
for (k = actualStart; k < len - actualDeleteCount; k++) {
from = k + actualDeleteCount;
to = k + insertCount;
if (from in O) O[to] = O[from];
else delete O[to];
}
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
} else if (insertCount > actualDeleteCount) {
for (k = len - actualDeleteCount; k > actualStart; k--) {
from = k + actualDeleteCount - 1;
to = k + insertCount - 1;
if (from in O) O[to] = O[from];
else delete O[to];
}
}
for (k = 0; k < insertCount; k++) {
O[k + actualStart] = arguments[k + 2];
}
O.length = len - actualDeleteCount + insertCount;
return A;
}
});
core-js-3.8.2/packages/core-js/modules/es.array.unscopables.flat-map.js 0000664 0000000 0000000 00000000426 13774351224 0025767 0 ustar 00root root 0000000 0000000 // this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables = require('../internals/add-to-unscopables');
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('flatMap');
core-js-3.8.2/packages/core-js/modules/es.array.unscopables.flat.js 0000664 0000000 0000000 00000000423 13774351224 0025211 0 ustar 00root root 0000000 0000000 // this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables = require('../internals/add-to-unscopables');
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('flat');
core-js-3.8.2/packages/core-js/modules/es.data-view.js 0000664 0000000 0000000 00000000534 13774351224 0022515 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ArrayBufferModule = require('../internals/array-buffer');
var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');
// `DataView` constructor
// https://tc39.es/ecma262/#sec-dataview-constructor
$({ global: true, forced: !NATIVE_ARRAY_BUFFER }, {
DataView: ArrayBufferModule.DataView
});
core-js-3.8.2/packages/core-js/modules/es.date.now.js 0000664 0000000 0000000 00000000314 13774351224 0022347 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Date.now` method
// https://tc39.es/ecma262/#sec-date.now
$({ target: 'Date', stat: true }, {
now: function now() {
return new Date().getTime();
}
});
core-js-3.8.2/packages/core-js/modules/es.date.to-iso-string.js 0000664 0000000 0000000 00000000570 13774351224 0024266 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var toISOString = require('../internals/date-to-iso-string');
// `Date.prototype.toISOString` method
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
// PhantomJS / old WebKit has a broken implementations
$({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, {
toISOString: toISOString
});
core-js-3.8.2/packages/core-js/modules/es.date.to-json.js 0000664 0000000 0000000 00000001330 13774351224 0023134 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var fails = require('../internals/fails');
var toObject = require('../internals/to-object');
var toPrimitive = require('../internals/to-primitive');
var FORCED = fails(function () {
return new Date(NaN).toJSON() !== null
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
});
// `Date.prototype.toJSON` method
// https://tc39.es/ecma262/#sec-date.prototype.tojson
$({ target: 'Date', proto: true, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars
toJSON: function toJSON(key) {
var O = toObject(this);
var pv = toPrimitive(O);
return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
}
});
core-js-3.8.2/packages/core-js/modules/es.date.to-primitive.js 0000664 0000000 0000000 00000001023 13774351224 0024172 0 ustar 00root root 0000000 0000000 var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var dateToPrimitive = require('../internals/date-to-primitive');
var wellKnownSymbol = require('../internals/well-known-symbol');
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
var DatePrototype = Date.prototype;
// `Date.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
if (!(TO_PRIMITIVE in DatePrototype)) {
createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
}
core-js-3.8.2/packages/core-js/modules/es.date.to-string.js 0000664 0000000 0000000 00000001126 13774351224 0023474 0 ustar 00root root 0000000 0000000 var redefine = require('../internals/redefine');
var DatePrototype = Date.prototype;
var INVALID_DATE = 'Invalid Date';
var TO_STRING = 'toString';
var nativeDateToString = DatePrototype[TO_STRING];
var getTime = DatePrototype.getTime;
// `Date.prototype.toString` method
// https://tc39.es/ecma262/#sec-date.prototype.tostring
if (new Date(NaN) + '' != INVALID_DATE) {
redefine(DatePrototype, TO_STRING, function toString() {
var value = getTime.call(this);
// eslint-disable-next-line no-self-compare
return value === value ? nativeDateToString.call(this) : INVALID_DATE;
});
}
core-js-3.8.2/packages/core-js/modules/es.function.bind.js 0000664 0000000 0000000 00000000361 13774351224 0023372 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var bind = require('../internals/function-bind');
// `Function.prototype.bind` method
// https://tc39.es/ecma262/#sec-function.prototype.bind
$({ target: 'Function', proto: true }, {
bind: bind
});
core-js-3.8.2/packages/core-js/modules/es.function.has-instance.js 0000664 0000000 0000000 00000001636 13774351224 0025041 0 ustar 00root root 0000000 0000000 'use strict';
var isObject = require('../internals/is-object');
var definePropertyModule = require('../internals/object-define-property');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var wellKnownSymbol = require('../internals/well-known-symbol');
var HAS_INSTANCE = wellKnownSymbol('hasInstance');
var FunctionPrototype = Function.prototype;
// `Function.prototype[@@hasInstance]` method
// https://tc39.es/ecma262/#sec-function.prototype-@@hasinstance
if (!(HAS_INSTANCE in FunctionPrototype)) {
definePropertyModule.f(FunctionPrototype, HAS_INSTANCE, { value: function (O) {
if (typeof this != 'function' || !isObject(O)) return false;
if (!isObject(this.prototype)) return O instanceof this;
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
while (O = getPrototypeOf(O)) if (this.prototype === O) return true;
return false;
} });
}
core-js-3.8.2/packages/core-js/modules/es.function.name.js 0000664 0000000 0000000 00000001241 13774351224 0023374 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var defineProperty = require('../internals/object-define-property').f;
var FunctionPrototype = Function.prototype;
var FunctionPrototypeToString = FunctionPrototype.toString;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';
// Function instances `.name` property
// https://tc39.es/ecma262/#sec-function-instances-name
if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
defineProperty(FunctionPrototype, NAME, {
configurable: true,
get: function () {
try {
return FunctionPrototypeToString.call(this).match(nameRE)[1];
} catch (error) {
return '';
}
}
});
}
core-js-3.8.2/packages/core-js/modules/es.global-this.js 0000664 0000000 0000000 00000000307 13774351224 0023037 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var global = require('../internals/global');
// `globalThis` object
// https://tc39.es/ecma262/#sec-globalthis
$({ global: true }, {
globalThis: global
});
core-js-3.8.2/packages/core-js/modules/es.json.stringify.js 0000664 0000000 0000000 00000002213 13774351224 0023616 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getBuiltIn = require('../internals/get-built-in');
var fails = require('../internals/fails');
var $stringify = getBuiltIn('JSON', 'stringify');
var re = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi = /^[\uDC00-\uDFFF]$/;
var fix = function (match, offset, string) {
var prev = string.charAt(offset - 1);
var next = string.charAt(offset + 1);
if ((low.test(match) && !hi.test(next)) || (hi.test(match) && !low.test(prev))) {
return '\\u' + match.charCodeAt(0).toString(16);
} return match;
};
var FORCED = fails(function () {
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|| $stringify('\uDEAD') !== '"\\udead"';
});
if ($stringify) {
// `JSON.stringify` method
// https://tc39.es/ecma262/#sec-json.stringify
// https://github.com/tc39/proposal-well-formed-stringify
$({ target: 'JSON', stat: true, forced: FORCED }, {
// eslint-disable-next-line no-unused-vars
stringify: function stringify(it, replacer, space) {
var result = $stringify.apply(null, arguments);
return typeof result == 'string' ? result.replace(re, fix) : result;
}
});
}
core-js-3.8.2/packages/core-js/modules/es.json.to-string-tag.js 0000664 0000000 0000000 00000000354 13774351224 0024303 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var setToStringTag = require('../internals/set-to-string-tag');
// JSON[@@toStringTag] property
// https://tc39.es/ecma262/#sec-json-@@tostringtag
setToStringTag(global.JSON, 'JSON', true);
core-js-3.8.2/packages/core-js/modules/es.map.js 0000664 0000000 0000000 00000000557 13774351224 0021416 0 ustar 00root root 0000000 0000000 'use strict';
var collection = require('../internals/collection');
var collectionStrong = require('../internals/collection-strong');
// `Map` constructor
// https://tc39.es/ecma262/#sec-map-objects
module.exports = collection('Map', function (init) {
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong);
core-js-3.8.2/packages/core-js/modules/es.math.acosh.js 0000664 0000000 0000000 00000001271 13774351224 0022660 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var log1p = require('../internals/math-log1p');
var nativeAcosh = Math.acosh;
var log = Math.log;
var sqrt = Math.sqrt;
var LN2 = Math.LN2;
var FORCED = !nativeAcosh
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
|| Math.floor(nativeAcosh(Number.MAX_VALUE)) != 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
|| nativeAcosh(Infinity) != Infinity;
// `Math.acosh` method
// https://tc39.es/ecma262/#sec-math.acosh
$({ target: 'Math', stat: true, forced: FORCED }, {
acosh: function acosh(x) {
return (x = +x) < 1 ? NaN : x > 94906265.62425156
? log(x) + LN2
: log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
}
});
core-js-3.8.2/packages/core-js/modules/es.math.asinh.js 0000664 0000000 0000000 00000000666 13774351224 0022674 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var nativeAsinh = Math.asinh;
var log = Math.log;
var sqrt = Math.sqrt;
function asinh(x) {
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : log(x + sqrt(x * x + 1));
}
// `Math.asinh` method
// https://tc39.es/ecma262/#sec-math.asinh
// Tor Browser bug: Math.asinh(0) -> -0
$({ target: 'Math', stat: true, forced: !(nativeAsinh && 1 / nativeAsinh(0) > 0) }, {
asinh: asinh
});
core-js-3.8.2/packages/core-js/modules/es.math.atanh.js 0000664 0000000 0000000 00000000575 13774351224 0022664 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var nativeAtanh = Math.atanh;
var log = Math.log;
// `Math.atanh` method
// https://tc39.es/ecma262/#sec-math.atanh
// Tor Browser bug: Math.atanh(-0) -> 0
$({ target: 'Math', stat: true, forced: !(nativeAtanh && 1 / nativeAtanh(-0) < 0) }, {
atanh: function atanh(x) {
return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2;
}
});
core-js-3.8.2/packages/core-js/modules/es.math.cbrt.js 0000664 0000000 0000000 00000000465 13774351224 0022521 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var sign = require('../internals/math-sign');
var abs = Math.abs;
var pow = Math.pow;
// `Math.cbrt` method
// https://tc39.es/ecma262/#sec-math.cbrt
$({ target: 'Math', stat: true }, {
cbrt: function cbrt(x) {
return sign(x = +x) * pow(abs(x), 1 / 3);
}
});
core-js-3.8.2/packages/core-js/modules/es.math.clz32.js 0000664 0000000 0000000 00000000470 13774351224 0022520 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var floor = Math.floor;
var log = Math.log;
var LOG2E = Math.LOG2E;
// `Math.clz32` method
// https://tc39.es/ecma262/#sec-math.clz32
$({ target: 'Math', stat: true }, {
clz32: function clz32(x) {
return (x >>>= 0) ? 31 - floor(log(x + 0.5) * LOG2E) : 32;
}
});
core-js-3.8.2/packages/core-js/modules/es.math.cosh.js 0000664 0000000 0000000 00000000645 13774351224 0022523 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var expm1 = require('../internals/math-expm1');
var nativeCosh = Math.cosh;
var abs = Math.abs;
var E = Math.E;
// `Math.cosh` method
// https://tc39.es/ecma262/#sec-math.cosh
$({ target: 'Math', stat: true, forced: !nativeCosh || nativeCosh(710) === Infinity }, {
cosh: function cosh(x) {
var t = expm1(abs(x) - 1) + 1;
return (t + 1 / (t * E * E)) * (E / 2);
}
});
core-js-3.8.2/packages/core-js/modules/es.math.expm1.js 0000664 0000000 0000000 00000000355 13774351224 0022617 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var expm1 = require('../internals/math-expm1');
// `Math.expm1` method
// https://tc39.es/ecma262/#sec-math.expm1
$({ target: 'Math', stat: true, forced: expm1 != Math.expm1 }, { expm1: expm1 });
core-js-3.8.2/packages/core-js/modules/es.math.fround.js 0000664 0000000 0000000 00000000326 13774351224 0023060 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fround = require('../internals/math-fround');
// `Math.fround` method
// https://tc39.es/ecma262/#sec-math.fround
$({ target: 'Math', stat: true }, { fround: fround });
core-js-3.8.2/packages/core-js/modules/es.math.hypot.js 0000664 0000000 0000000 00000001561 13774351224 0022730 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var $hypot = Math.hypot;
var abs = Math.abs;
var sqrt = Math.sqrt;
// Chrome 77 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=9546
var BUGGY = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
// `Math.hypot` method
// https://tc39.es/ecma262/#sec-math.hypot
$({ target: 'Math', stat: true, forced: BUGGY }, {
hypot: function hypot(value1, value2) { // eslint-disable-line no-unused-vars
var sum = 0;
var i = 0;
var aLen = arguments.length;
var larg = 0;
var arg, div;
while (i < aLen) {
arg = abs(arguments[i++]);
if (larg < arg) {
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if (arg > 0) {
div = arg / larg;
sum += div * div;
} else sum += arg;
}
return larg === Infinity ? Infinity : larg * sqrt(sum);
}
});
core-js-3.8.2/packages/core-js/modules/es.math.imul.js 0000664 0000000 0000000 00000001207 13774351224 0022530 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var nativeImul = Math.imul;
var FORCED = fails(function () {
return nativeImul(0xFFFFFFFF, 5) != -5 || nativeImul.length != 2;
});
// `Math.imul` method
// https://tc39.es/ecma262/#sec-math.imul
// some WebKit versions fails with big numbers, some has wrong arity
$({ target: 'Math', stat: true, forced: FORCED }, {
imul: function imul(x, y) {
var UINT16 = 0xFFFF;
var xn = +x;
var yn = +y;
var xl = UINT16 & xn;
var yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
}
});
core-js-3.8.2/packages/core-js/modules/es.math.log10.js 0000664 0000000 0000000 00000000377 13774351224 0022513 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var log = Math.log;
var LOG10E = Math.LOG10E;
// `Math.log10` method
// https://tc39.es/ecma262/#sec-math.log10
$({ target: 'Math', stat: true }, {
log10: function log10(x) {
return log(x) * LOG10E;
}
});
core-js-3.8.2/packages/core-js/modules/es.math.log1p.js 0000664 0000000 0000000 00000000320 13774351224 0022577 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var log1p = require('../internals/math-log1p');
// `Math.log1p` method
// https://tc39.es/ecma262/#sec-math.log1p
$({ target: 'Math', stat: true }, { log1p: log1p });
core-js-3.8.2/packages/core-js/modules/es.math.log2.js 0000664 0000000 0000000 00000000362 13774351224 0022426 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var log = Math.log;
var LN2 = Math.LN2;
// `Math.log2` method
// https://tc39.es/ecma262/#sec-math.log2
$({ target: 'Math', stat: true }, {
log2: function log2(x) {
return log(x) / LN2;
}
});
core-js-3.8.2/packages/core-js/modules/es.math.sign.js 0000664 0000000 0000000 00000000314 13774351224 0022520 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var sign = require('../internals/math-sign');
// `Math.sign` method
// https://tc39.es/ecma262/#sec-math.sign
$({ target: 'Math', stat: true }, {
sign: sign
});
core-js-3.8.2/packages/core-js/modules/es.math.sinh.js 0000664 0000000 0000000 00000001075 13774351224 0022526 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var expm1 = require('../internals/math-expm1');
var abs = Math.abs;
var exp = Math.exp;
var E = Math.E;
var FORCED = fails(function () {
return Math.sinh(-2e-17) != -2e-17;
});
// `Math.sinh` method
// https://tc39.es/ecma262/#sec-math.sinh
// V8 near Chromium 38 has a problem with very small numbers
$({ target: 'Math', stat: true, forced: FORCED }, {
sinh: function sinh(x) {
return abs(x = +x) < 1 ? (expm1(x) - expm1(-x)) / 2 : (exp(x - 1) - exp(-x - 1)) * (E / 2);
}
});
core-js-3.8.2/packages/core-js/modules/es.math.tanh.js 0000664 0000000 0000000 00000000571 13774351224 0022517 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var expm1 = require('../internals/math-expm1');
var exp = Math.exp;
// `Math.tanh` method
// https://tc39.es/ecma262/#sec-math.tanh
$({ target: 'Math', stat: true }, {
tanh: function tanh(x) {
var a = expm1(x = +x);
var b = expm1(-x);
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
}
});
core-js-3.8.2/packages/core-js/modules/es.math.to-string-tag.js 0000664 0000000 0000000 00000000270 13774351224 0024260 0 ustar 00root root 0000000 0000000 var setToStringTag = require('../internals/set-to-string-tag');
// Math[@@toStringTag] property
// https://tc39.es/ecma262/#sec-math-@@tostringtag
setToStringTag(Math, 'Math', true);
core-js-3.8.2/packages/core-js/modules/es.math.trunc.js 0000664 0000000 0000000 00000000414 13774351224 0022714 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ceil = Math.ceil;
var floor = Math.floor;
// `Math.trunc` method
// https://tc39.es/ecma262/#sec-math.trunc
$({ target: 'Math', stat: true }, {
trunc: function trunc(it) {
return (it > 0 ? floor : ceil)(it);
}
});
core-js-3.8.2/packages/core-js/modules/es.number.constructor.js 0000664 0000000 0000000 00000006746 13774351224 0024523 0 ustar 00root root 0000000 0000000 'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var isForced = require('../internals/is-forced');
var redefine = require('../internals/redefine');
var has = require('../internals/has');
var classof = require('../internals/classof-raw');
var inheritIfRequired = require('../internals/inherit-if-required');
var toPrimitive = require('../internals/to-primitive');
var fails = require('../internals/fails');
var create = require('../internals/object-create');
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var defineProperty = require('../internals/object-define-property').f;
var trim = require('../internals/string-trim').trim;
var NUMBER = 'Number';
var NativeNumber = global[NUMBER];
var NumberPrototype = NativeNumber.prototype;
// Opera ~12 has broken Object#toString
var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
// `ToNumber` abstract operation
// https://tc39.es/ecma262/#sec-tonumber
var toNumber = function (argument) {
var it = toPrimitive(argument, false);
var first, third, radix, maxCode, digits, length, index, code;
if (typeof it == 'string' && it.length > 2) {
it = trim(it);
first = it.charCodeAt(0);
if (first === 43 || first === 45) {
third = it.charCodeAt(2);
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
} else if (first === 48) {
switch (it.charCodeAt(1)) {
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
default: return +it;
}
digits = it.slice(2);
length = digits.length;
for (index = 0; index < length; index++) {
code = digits.charCodeAt(index);
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if (code < 48 || code > maxCode) return NaN;
} return parseInt(digits, radix);
}
} return +it;
};
// `Number` constructor
// https://tc39.es/ecma262/#sec-number-constructor
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
var NumberWrapper = function Number(value) {
var it = arguments.length < 1 ? 0 : value;
var dummy = this;
return dummy instanceof NumberWrapper
// check on 1..constructor(foo) case
&& (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
};
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
// ES3:
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
// ES2015 (in case, if modules with ES2015 Number statics required before):
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
// ESNext
'fromString,range'
).split(','), j = 0, key; keys.length > j; j++) {
if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
}
}
NumberWrapper.prototype = NumberPrototype;
NumberPrototype.constructor = NumberWrapper;
redefine(global, NUMBER, NumberWrapper);
}
core-js-3.8.2/packages/core-js/modules/es.number.epsilon.js 0000664 0000000 0000000 00000000273 13774351224 0023574 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Number.EPSILON` constant
// https://tc39.es/ecma262/#sec-number.epsilon
$({ target: 'Number', stat: true }, {
EPSILON: Math.pow(2, -52)
});
core-js-3.8.2/packages/core-js/modules/es.number.is-finite.js 0000664 0000000 0000000 00000000367 13774351224 0024016 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var numberIsFinite = require('../internals/number-is-finite');
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
$({ target: 'Number', stat: true }, { isFinite: numberIsFinite });
core-js-3.8.2/packages/core-js/modules/es.number.is-integer.js 0000664 0000000 0000000 00000000354 13774351224 0024171 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isInteger = require('../internals/is-integer');
// `Number.isInteger` method
// https://tc39.es/ecma262/#sec-number.isinteger
$({ target: 'Number', stat: true }, {
isInteger: isInteger
});
core-js-3.8.2/packages/core-js/modules/es.number.is-nan.js 0000664 0000000 0000000 00000000414 13774351224 0023305 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Number.isNaN` method
// https://tc39.es/ecma262/#sec-number.isnan
$({ target: 'Number', stat: true }, {
isNaN: function isNaN(number) {
// eslint-disable-next-line no-self-compare
return number != number;
}
});
core-js-3.8.2/packages/core-js/modules/es.number.is-safe-integer.js 0000664 0000000 0000000 00000000551 13774351224 0025104 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isInteger = require('../internals/is-integer');
var abs = Math.abs;
// `Number.isSafeInteger` method
// https://tc39.es/ecma262/#sec-number.issafeinteger
$({ target: 'Number', stat: true }, {
isSafeInteger: function isSafeInteger(number) {
return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF;
}
});
core-js-3.8.2/packages/core-js/modules/es.number.max-safe-integer.js 0000664 0000000 0000000 00000000326 13774351224 0025256 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Number.MAX_SAFE_INTEGER` constant
// https://tc39.es/ecma262/#sec-number.max_safe_integer
$({ target: 'Number', stat: true }, {
MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF
});
core-js-3.8.2/packages/core-js/modules/es.number.min-safe-integer.js 0000664 0000000 0000000 00000000327 13774351224 0025255 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Number.MIN_SAFE_INTEGER` constant
// https://tc39.es/ecma262/#sec-number.min_safe_integer
$({ target: 'Number', stat: true }, {
MIN_SAFE_INTEGER: -0x1FFFFFFFFFFFFF
});
core-js-3.8.2/packages/core-js/modules/es.number.parse-float.js 0000664 0000000 0000000 00000000442 13774351224 0024336 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var parseFloat = require('../internals/number-parse-float');
// `Number.parseFloat` method
// https://tc39.es/ecma262/#sec-number.parseFloat
$({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat }, {
parseFloat: parseFloat
});
core-js-3.8.2/packages/core-js/modules/es.number.parse-int.js 0000664 0000000 0000000 00000000422 13774351224 0024021 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var parseInt = require('../internals/number-parse-int');
// `Number.parseInt` method
// https://tc39.es/ecma262/#sec-number.parseint
$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {
parseInt: parseInt
});
core-js-3.8.2/packages/core-js/modules/es.number.to-fixed.js 0000664 0000000 0000000 00000006470 13774351224 0023647 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toInteger = require('../internals/to-integer');
var thisNumberValue = require('../internals/this-number-value');
var repeat = require('../internals/string-repeat');
var fails = require('../internals/fails');
var nativeToFixed = 1.0.toFixed;
var floor = Math.floor;
var pow = function (x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
};
var log = function (x) {
var n = 0;
var x2 = x;
while (x2 >= 4096) {
n += 12;
x2 /= 4096;
}
while (x2 >= 2) {
n += 1;
x2 /= 2;
} return n;
};
var FORCED = nativeToFixed && (
0.00008.toFixed(3) !== '0.000' ||
0.9.toFixed(0) !== '1' ||
1.255.toFixed(2) !== '1.25' ||
1000000000000000128.0.toFixed(0) !== '1000000000000000128'
) || !fails(function () {
// V8 ~ Android 4.3-
nativeToFixed.call({});
});
// `Number.prototype.toFixed` method
// https://tc39.es/ecma262/#sec-number.prototype.tofixed
$({ target: 'Number', proto: true, forced: FORCED }, {
// eslint-disable-next-line max-statements
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue(this);
var fractDigits = toInteger(fractionDigits);
var data = [0, 0, 0, 0, 0, 0];
var sign = '';
var result = '0';
var e, z, j, k;
var multiply = function (n, c) {
var index = -1;
var c2 = c;
while (++index < 6) {
c2 += n * data[index];
data[index] = c2 % 1e7;
c2 = floor(c2 / 1e7);
}
};
var divide = function (n) {
var index = 6;
var c = 0;
while (--index >= 0) {
c += data[index];
data[index] = floor(c / n);
c = (c % n) * 1e7;
}
};
var dataToString = function () {
var index = 6;
var s = '';
while (--index >= 0) {
if (s !== '' || index === 0 || data[index] !== 0) {
var t = String(data[index]);
s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;
}
} return s;
};
if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');
// eslint-disable-next-line no-self-compare
if (number != number) return 'NaN';
if (number <= -1e21 || number >= 1e21) return String(number);
if (number < 0) {
sign = '-';
number = -number;
}
if (number > 1e-21) {
e = log(number * pow(2, 69, 1)) - 69;
z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);
z *= 0x10000000000000;
e = 52 - e;
if (e > 0) {
multiply(0, z);
j = fractDigits;
while (j >= 7) {
multiply(1e7, 0);
j -= 7;
}
multiply(pow(10, j, 1), 0);
j = e - 1;
while (j >= 23) {
divide(1 << 23);
j -= 23;
}
divide(1 << j);
multiply(1, 1);
divide(2);
result = dataToString();
} else {
multiply(0, z);
multiply(1 << -e, 0);
result = dataToString() + repeat.call('0', fractDigits);
}
}
if (fractDigits > 0) {
k = result.length;
result = sign + (k <= fractDigits
? '0.' + repeat.call('0', fractDigits - k) + result
: result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));
} else {
result = sign + result;
} return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.number.to-precision.js 0000664 0000000 0000000 00000001365 13774351224 0024541 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var fails = require('../internals/fails');
var thisNumberValue = require('../internals/this-number-value');
var nativeToPrecision = 1.0.toPrecision;
var FORCED = fails(function () {
// IE7-
return nativeToPrecision.call(1, undefined) !== '1';
}) || !fails(function () {
// V8 ~ Android 4.3-
nativeToPrecision.call({});
});
// `Number.prototype.toPrecision` method
// https://tc39.es/ecma262/#sec-number.prototype.toprecision
$({ target: 'Number', proto: true, forced: FORCED }, {
toPrecision: function toPrecision(precision) {
return precision === undefined
? nativeToPrecision.call(thisNumberValue(this))
: nativeToPrecision.call(thisNumberValue(this), precision);
}
});
core-js-3.8.2/packages/core-js/modules/es.object.assign.js 0000664 0000000 0000000 00000000402 13774351224 0023357 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var assign = require('../internals/object-assign');
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
assign: assign
});
core-js-3.8.2/packages/core-js/modules/es.object.create.js 0000664 0000000 0000000 00000000453 13774351224 0023344 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var create = require('../internals/object-create');
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
create: create
});
core-js-3.8.2/packages/core-js/modules/es.object.define-getter.js 0000664 0000000 0000000 00000001341 13774351224 0024620 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');
var aFunction = require('../internals/a-function');
var definePropertyModule = require('../internals/object-define-property');
// `Object.prototype.__defineGetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__
if (DESCRIPTORS) {
$({ target: 'Object', proto: true, forced: FORCED }, {
__defineGetter__: function __defineGetter__(P, getter) {
definePropertyModule.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });
}
});
}
core-js-3.8.2/packages/core-js/modules/es.object.define-properties.js 0000664 0000000 0000000 00000000576 13774351224 0025533 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var defineProperties = require('../internals/object-define-properties');
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {
defineProperties: defineProperties
});
core-js-3.8.2/packages/core-js/modules/es.object.define-property.js 0000664 0000000 0000000 00000000614 13774351224 0025214 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var objectDefinePropertyModile = require('../internals/object-define-property');
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {
defineProperty: objectDefinePropertyModile.f
});
core-js-3.8.2/packages/core-js/modules/es.object.define-setter.js 0000664 0000000 0000000 00000001341 13774351224 0024634 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');
var aFunction = require('../internals/a-function');
var definePropertyModule = require('../internals/object-define-property');
// `Object.prototype.__defineSetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__defineSetter__
if (DESCRIPTORS) {
$({ target: 'Object', proto: true, forced: FORCED }, {
__defineSetter__: function __defineSetter__(P, setter) {
definePropertyModule.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });
}
});
}
core-js-3.8.2/packages/core-js/modules/es.object.entries.js 0000664 0000000 0000000 00000000432 13774351224 0023547 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var $entries = require('../internals/object-to-array').entries;
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
$({ target: 'Object', stat: true }, {
entries: function entries(O) {
return $entries(O);
}
});
core-js-3.8.2/packages/core-js/modules/es.object.freeze.js 0000664 0000000 0000000 00000001157 13774351224 0023363 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var FREEZING = require('../internals/freezing');
var fails = require('../internals/fails');
var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var nativeFreeze = Object.freeze;
var FAILS_ON_PRIMITIVES = fails(function () { nativeFreeze(1); });
// `Object.freeze` method
// https://tc39.es/ecma262/#sec-object.freeze
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
freeze: function freeze(it) {
return nativeFreeze && isObject(it) ? nativeFreeze(onFreeze(it)) : it;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.from-entries.js 0000664 0000000 0000000 00000000724 13774351224 0024514 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var createProperty = require('../internals/create-property');
// `Object.fromEntries` method
// https://github.com/tc39/proposal-object-from-entries
$({ target: 'Object', stat: true }, {
fromEntries: function fromEntries(iterable) {
var obj = {};
iterate(iterable, function (k, v) {
createProperty(obj, k, v);
}, { AS_ENTRIES: true });
return obj;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.get-own-property-descriptor.js 0000664 0000000 0000000 00000001403 13774351224 0027513 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var toIndexedObject = require('../internals/to-indexed-object');
var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var DESCRIPTORS = require('../internals/descriptors');
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
}
});
core-js-3.8.2/packages/core-js/modules/es.object.get-own-property-descriptors.js 0000664 0000000 0000000 00000001775 13774351224 0027712 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var ownKeys = require('../internals/own-keys');
var toIndexedObject = require('../internals/to-indexed-object');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var createProperty = require('../internals/create-property');
// `Object.getOwnPropertyDescriptors` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIndexedObject(object);
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var keys = ownKeys(O);
var result = {};
var index = 0;
var key, descriptor;
while (keys.length > index) {
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
if (descriptor !== undefined) createProperty(result, key, descriptor);
}
return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.get-own-property-names.js 0000664 0000000 0000000 00000000752 13774351224 0026446 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
var FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
getOwnPropertyNames: nativeGetOwnPropertyNames
});
core-js-3.8.2/packages/core-js/modules/es.object.get-prototype-of.js 0000664 0000000 0000000 00000001223 13774351224 0025321 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var toObject = require('../internals/to-object');
var nativeGetPrototypeOf = require('../internals/object-get-prototype-of');
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(it) {
return nativeGetPrototypeOf(toObject(it));
}
});
core-js-3.8.2/packages/core-js/modules/es.object.is-extensible.js 0000664 0000000 0000000 00000001037 13774351224 0024653 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var isObject = require('../internals/is-object');
var nativeIsExtensible = Object.isExtensible;
var FAILS_ON_PRIMITIVES = fails(function () { nativeIsExtensible(1); });
// `Object.isExtensible` method
// https://tc39.es/ecma262/#sec-object.isextensible
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isExtensible: function isExtensible(it) {
return isObject(it) ? nativeIsExtensible ? nativeIsExtensible(it) : true : false;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.is-frozen.js 0000664 0000000 0000000 00000000773 13774351224 0024022 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var isObject = require('../internals/is-object');
var nativeIsFrozen = Object.isFrozen;
var FAILS_ON_PRIMITIVES = fails(function () { nativeIsFrozen(1); });
// `Object.isFrozen` method
// https://tc39.es/ecma262/#sec-object.isfrozen
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isFrozen: function isFrozen(it) {
return isObject(it) ? nativeIsFrozen ? nativeIsFrozen(it) : false : true;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.is-sealed.js 0000664 0000000 0000000 00000000773 13774351224 0023754 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var fails = require('../internals/fails');
var isObject = require('../internals/is-object');
var nativeIsSealed = Object.isSealed;
var FAILS_ON_PRIMITIVES = fails(function () { nativeIsSealed(1); });
// `Object.isSealed` method
// https://tc39.es/ecma262/#sec-object.issealed
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
isSealed: function isSealed(it) {
return isObject(it) ? nativeIsSealed ? nativeIsSealed(it) : false : true;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.is.js 0000664 0000000 0000000 00000000311 13774351224 0022505 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var is = require('../internals/same-value');
// `Object.is` method
// https://tc39.es/ecma262/#sec-object.is
$({ target: 'Object', stat: true }, {
is: is
});
core-js-3.8.2/packages/core-js/modules/es.object.keys.js 0000664 0000000 0000000 00000000716 13774351224 0023056 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var toObject = require('../internals/to-object');
var nativeKeys = require('../internals/object-keys');
var fails = require('../internals/fails');
var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it) {
return nativeKeys(toObject(it));
}
});
core-js-3.8.2/packages/core-js/modules/es.object.lookup-getter.js 0000664 0000000 0000000 00000001616 13774351224 0024704 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');
var toPrimitive = require('../internals/to-primitive');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
// `Object.prototype.__lookupGetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__lookupGetter__
if (DESCRIPTORS) {
$({ target: 'Object', proto: true, forced: FORCED }, {
__lookupGetter__: function __lookupGetter__(P) {
var O = toObject(this);
var key = toPrimitive(P, true);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O, key)) return desc.get;
} while (O = getPrototypeOf(O));
}
});
}
core-js-3.8.2/packages/core-js/modules/es.object.lookup-setter.js 0000664 0000000 0000000 00000001616 13774351224 0024720 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var FORCED = require('../internals/object-prototype-accessors-forced');
var toObject = require('../internals/to-object');
var toPrimitive = require('../internals/to-primitive');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
// `Object.prototype.__lookupSetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__lookupSetter__
if (DESCRIPTORS) {
$({ target: 'Object', proto: true, forced: FORCED }, {
__lookupSetter__: function __lookupSetter__(P) {
var O = toObject(this);
var key = toPrimitive(P, true);
var desc;
do {
if (desc = getOwnPropertyDescriptor(O, key)) return desc.set;
} while (O = getPrototypeOf(O));
}
});
}
core-js-3.8.2/packages/core-js/modules/es.object.prevent-extensions.js 0000664 0000000 0000000 00000001322 13774351224 0025755 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var FREEZING = require('../internals/freezing');
var fails = require('../internals/fails');
var nativePreventExtensions = Object.preventExtensions;
var FAILS_ON_PRIMITIVES = fails(function () { nativePreventExtensions(1); });
// `Object.preventExtensions` method
// https://tc39.es/ecma262/#sec-object.preventextensions
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
preventExtensions: function preventExtensions(it) {
return nativePreventExtensions && isObject(it) ? nativePreventExtensions(onFreeze(it)) : it;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.seal.js 0000664 0000000 0000000 00000001135 13774351224 0023023 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isObject = require('../internals/is-object');
var onFreeze = require('../internals/internal-metadata').onFreeze;
var FREEZING = require('../internals/freezing');
var fails = require('../internals/fails');
var nativeSeal = Object.seal;
var FAILS_ON_PRIMITIVES = fails(function () { nativeSeal(1); });
// `Object.seal` method
// https://tc39.es/ecma262/#sec-object.seal
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
seal: function seal(it) {
return nativeSeal && isObject(it) ? nativeSeal(onFreeze(it)) : it;
}
});
core-js-3.8.2/packages/core-js/modules/es.object.set-prototype-of.js 0000664 0000000 0000000 00000000422 13774351224 0025335 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var setPrototypeOf = require('../internals/object-set-prototype-of');
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
$({ target: 'Object', stat: true }, {
setPrototypeOf: setPrototypeOf
});
core-js-3.8.2/packages/core-js/modules/es.object.to-string.js 0000664 0000000 0000000 00000000574 13774351224 0024033 0 ustar 00root root 0000000 0000000 var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
var redefine = require('../internals/redefine');
var toString = require('../internals/object-to-string');
// `Object.prototype.toString` method
// https://tc39.es/ecma262/#sec-object.prototype.tostring
if (!TO_STRING_TAG_SUPPORT) {
redefine(Object.prototype, 'toString', toString, { unsafe: true });
}
core-js-3.8.2/packages/core-js/modules/es.object.values.js 0000664 0000000 0000000 00000000423 13774351224 0023375 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var $values = require('../internals/object-to-array').values;
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
$({ target: 'Object', stat: true }, {
values: function values(O) {
return $values(O);
}
});
core-js-3.8.2/packages/core-js/modules/es.parse-float.js 0000664 0000000 0000000 00000000456 13774351224 0023054 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var parseFloatImplementation = require('../internals/number-parse-float');
// `parseFloat` method
// https://tc39.es/ecma262/#sec-parsefloat-string
$({ global: true, forced: parseFloat != parseFloatImplementation }, {
parseFloat: parseFloatImplementation
});
core-js-3.8.2/packages/core-js/modules/es.parse-int.js 0000664 0000000 0000000 00000000444 13774351224 0022536 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var parseIntImplementation = require('../internals/number-parse-int');
// `parseInt` method
// https://tc39.es/ecma262/#sec-parseint-string-radix
$({ global: true, forced: parseInt != parseIntImplementation }, {
parseInt: parseIntImplementation
});
core-js-3.8.2/packages/core-js/modules/es.promise.all-settled.js 0000664 0000000 0000000 00000002753 13774351224 0024530 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
var perform = require('../internals/perform');
var iterate = require('../internals/iterate');
// `Promise.allSettled` method
// https://tc39.es/ecma262/#sec-promise.allsettled
$({ target: 'Promise', stat: true }, {
allSettled: function allSettled(iterable) {
var C = this;
var capability = newPromiseCapabilityModule.f(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var promiseResolve = aFunction(C.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function (promise) {
var index = counter++;
var alreadyCalled = false;
values.push(undefined);
remaining++;
promiseResolve.call(C, promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = { status: 'fulfilled', value: value };
--remaining || resolve(values);
}, function (error) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = { status: 'rejected', reason: error };
--remaining || resolve(values);
});
});
--remaining || resolve(values);
});
if (result.error) reject(result.value);
return capability.promise;
}
});
core-js-3.8.2/packages/core-js/modules/es.promise.any.js 0000664 0000000 0000000 00000003210 13774351224 0023072 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var getBuiltIn = require('../internals/get-built-in');
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
var perform = require('../internals/perform');
var iterate = require('../internals/iterate');
var PROMISE_ANY_ERROR = 'No one promise resolved';
// `Promise.any` method
// https://tc39.es/ecma262/#sec-promise.any
$({ target: 'Promise', stat: true }, {
any: function any(iterable) {
var C = this;
var capability = newPromiseCapabilityModule.f(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var promiseResolve = aFunction(C.resolve);
var errors = [];
var counter = 0;
var remaining = 1;
var alreadyResolved = false;
iterate(iterable, function (promise) {
var index = counter++;
var alreadyRejected = false;
errors.push(undefined);
remaining++;
promiseResolve.call(C, promise).then(function (value) {
if (alreadyRejected || alreadyResolved) return;
alreadyResolved = true;
resolve(value);
}, function (error) {
if (alreadyRejected || alreadyResolved) return;
alreadyRejected = true;
errors[index] = error;
--remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));
});
});
--remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));
});
if (result.error) reject(result.value);
return capability.promise;
}
});
core-js-3.8.2/packages/core-js/modules/es.promise.finally.js 0000664 0000000 0000000 00000003026 13774351224 0023746 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var NativePromise = require('../internals/native-promise-constructor');
var fails = require('../internals/fails');
var getBuiltIn = require('../internals/get-built-in');
var speciesConstructor = require('../internals/species-constructor');
var promiseResolve = require('../internals/promise-resolve');
var redefine = require('../internals/redefine');
// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
var NON_GENERIC = !!NativePromise && fails(function () {
NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
});
// `Promise.prototype.finally` method
// https://tc39.es/ecma262/#sec-promise.prototype.finally
$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
'finally': function (onFinally) {
var C = speciesConstructor(this, getBuiltIn('Promise'));
var isFunction = typeof onFinally == 'function';
return this.then(
isFunction ? function (x) {
return promiseResolve(C, onFinally()).then(function () { return x; });
} : onFinally,
isFunction ? function (e) {
return promiseResolve(C, onFinally()).then(function () { throw e; });
} : onFinally
);
}
});
// patch native Promise.prototype for native async functions
if (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {
redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);
}
core-js-3.8.2/packages/core-js/modules/es.promise.js 0000664 0000000 0000000 00000032260 13774351224 0022313 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var global = require('../internals/global');
var getBuiltIn = require('../internals/get-built-in');
var NativePromise = require('../internals/native-promise-constructor');
var redefine = require('../internals/redefine');
var redefineAll = require('../internals/redefine-all');
var setToStringTag = require('../internals/set-to-string-tag');
var setSpecies = require('../internals/set-species');
var isObject = require('../internals/is-object');
var aFunction = require('../internals/a-function');
var anInstance = require('../internals/an-instance');
var inspectSource = require('../internals/inspect-source');
var iterate = require('../internals/iterate');
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
var speciesConstructor = require('../internals/species-constructor');
var task = require('../internals/task').set;
var microtask = require('../internals/microtask');
var promiseResolve = require('../internals/promise-resolve');
var hostReportErrors = require('../internals/host-report-errors');
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
var perform = require('../internals/perform');
var InternalStateModule = require('../internals/internal-state');
var isForced = require('../internals/is-forced');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_NODE = require('../internals/engine-is-node');
var V8_VERSION = require('../internals/engine-v8-version');
var SPECIES = wellKnownSymbol('species');
var PROMISE = 'Promise';
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var PromiseConstructor = NativePromise;
var TypeError = global.TypeError;
var document = global.document;
var process = global.process;
var $fetch = getBuiltIn('fetch');
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
var FORCED = isForced(PROMISE, function () {
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
if (!GLOBAL_CORE_JS_PROMISE) {
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// We can't detect it synchronously, so just check versions
if (V8_VERSION === 66) return true;
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
}
// We need Promise#finally in the pure version for preventing prototype pollution
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
// We can't use @@species feature detection in V8 since it causes
// deoptimization and performance degradation
// https://github.com/zloirock/core-js/issues/679
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
// Detect correctness of subclassing with @@species support
var promise = PromiseConstructor.resolve(1);
var FakePromise = function (exec) {
exec(function () { /* empty */ }, function () { /* empty */ });
};
var constructor = promise.constructor = {};
constructor[SPECIES] = FakePromise;
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
});
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
});
// helpers
var isThenable = function (it) {
var then;
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (state, isReject) {
if (state.notified) return;
state.notified = true;
var chain = state.reactions;
microtask(function () {
var value = state.value;
var ok = state.state == FULFILLED;
var index = 0;
// variable length - can't use forEach
while (chain.length > index) {
var reaction = chain[index++];
var handler = ok ? reaction.ok : reaction.fail;
var resolve = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (state.rejection === UNHANDLED) onHandleUnhandled(state);
state.rejection = HANDLED;
}
if (handler === true) result = value;
else {
if (domain) domain.enter();
result = handler(value); // can throw
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError('Promise-chain cycle'));
} else if (then = isThenable(result)) {
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch (error) {
if (domain && !exited) domain.exit();
reject(error);
}
}
state.reactions = [];
state.notified = false;
if (isReject && !state.rejection) onUnhandled(state);
});
};
var dispatchEvent = function (name, promise, reason) {
var event, handler;
if (DISPATCH_EVENT) {
event = document.createEvent('Event');
event.promise = promise;
event.reason = reason;
event.initEvent(name, false, true);
global.dispatchEvent(event);
} else event = { promise: promise, reason: reason };
if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
};
var onUnhandled = function (state) {
task.call(global, function () {
var promise = state.facade;
var value = state.value;
var IS_UNHANDLED = isUnhandled(state);
var result;
if (IS_UNHANDLED) {
result = perform(function () {
if (IS_NODE) {
process.emit('unhandledRejection', value, promise);
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
});
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
if (result.error) throw result.value;
}
});
};
var isUnhandled = function (state) {
return state.rejection !== HANDLED && !state.parent;
};
var onHandleUnhandled = function (state) {
task.call(global, function () {
var promise = state.facade;
if (IS_NODE) {
process.emit('rejectionHandled', promise);
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
});
};
var bind = function (fn, state, unwrap) {
return function (value) {
fn(state, value, unwrap);
};
};
var internalReject = function (state, value, unwrap) {
if (state.done) return;
state.done = true;
if (unwrap) state = unwrap;
state.value = value;
state.state = REJECTED;
notify(state, true);
};
var internalResolve = function (state, value, unwrap) {
if (state.done) return;
state.done = true;
if (unwrap) state = unwrap;
try {
if (state.facade === value) throw TypeError("Promise can't be resolved itself");
var then = isThenable(value);
if (then) {
microtask(function () {
var wrapper = { done: false };
try {
then.call(value,
bind(internalResolve, wrapper, state),
bind(internalReject, wrapper, state)
);
} catch (error) {
internalReject(wrapper, error, state);
}
});
} else {
state.value = value;
state.state = FULFILLED;
notify(state, false);
}
} catch (error) {
internalReject({ done: false }, error, state);
}
};
// constructor polyfill
if (FORCED) {
// 25.4.3.1 Promise(executor)
PromiseConstructor = function Promise(executor) {
anInstance(this, PromiseConstructor, PROMISE);
aFunction(executor);
Internal.call(this);
var state = getInternalState(this);
try {
executor(bind(internalResolve, state), bind(internalReject, state));
} catch (error) {
internalReject(state, error);
}
};
// eslint-disable-next-line no-unused-vars
Internal = function Promise(executor) {
setInternalState(this, {
type: PROMISE,
done: false,
notified: false,
parent: false,
reactions: [],
rejection: false,
state: PENDING,
value: undefined
});
};
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
// `Promise.prototype.then` method
// https://tc39.es/ecma262/#sec-promise.prototype.then
then: function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
reaction.fail = typeof onRejected == 'function' && onRejected;
reaction.domain = IS_NODE ? process.domain : undefined;
state.parent = true;
state.reactions.push(reaction);
if (state.state != PENDING) notify(state, false);
return reaction.promise;
},
// `Promise.prototype.catch` method
// https://tc39.es/ecma262/#sec-promise.prototype.catch
'catch': function (onRejected) {
return this.then(undefined, onRejected);
}
});
OwnPromiseCapability = function () {
var promise = new Internal();
var state = getInternalState(promise);
this.promise = promise;
this.resolve = bind(internalResolve, state);
this.reject = bind(internalReject, state);
};
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
return C === PromiseConstructor || C === PromiseWrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
if (!IS_PURE && typeof NativePromise == 'function') {
nativeThen = NativePromise.prototype.then;
// wrap native Promise#then for native async functions
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function (resolve, reject) {
nativeThen.call(that, resolve, reject);
}).then(onFulfilled, onRejected);
// https://github.com/zloirock/core-js/issues/640
}, { unsafe: true });
// wrap fetch result
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
// eslint-disable-next-line no-unused-vars
fetch: function fetch(input /* , init */) {
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
}
});
}
}
$({ global: true, wrap: true, forced: FORCED }, {
Promise: PromiseConstructor
});
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);
PromiseWrapper = getBuiltIn(PROMISE);
// statics
$({ target: PROMISE, stat: true, forced: FORCED }, {
// `Promise.reject` method
// https://tc39.es/ecma262/#sec-promise.reject
reject: function reject(r) {
var capability = newPromiseCapability(this);
capability.reject.call(undefined, r);
return capability.promise;
}
});
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
// `Promise.resolve` method
// https://tc39.es/ecma262/#sec-promise.resolve
resolve: function resolve(x) {
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
}
});
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
// `Promise.all` method
// https://tc39.es/ecma262/#sec-promise.all
all: function all(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var $promiseResolve = aFunction(C.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function (promise) {
var index = counter++;
var alreadyCalled = false;
values.push(undefined);
remaining++;
$promiseResolve.call(C, promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = value;
--remaining || resolve(values);
}, reject);
});
--remaining || resolve(values);
});
if (result.error) reject(result.value);
return capability.promise;
},
// `Promise.race` method
// https://tc39.es/ecma262/#sec-promise.race
race: function race(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var reject = capability.reject;
var result = perform(function () {
var $promiseResolve = aFunction(C.resolve);
iterate(iterable, function (promise) {
$promiseResolve.call(C, promise).then(capability.resolve, reject);
});
});
if (result.error) reject(result.value);
return capability.promise;
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.apply.js 0000664 0000000 0000000 00000001566 13774351224 0023412 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getBuiltIn = require('../internals/get-built-in');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var fails = require('../internals/fails');
var nativeApply = getBuiltIn('Reflect', 'apply');
var functionApply = Function.apply;
// MS Edge argumentsList argument is optional
var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
nativeApply(function () { /* empty */ });
});
// `Reflect.apply` method
// https://tc39.es/ecma262/#sec-reflect.apply
$({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
apply: function apply(target, thisArgument, argumentsList) {
aFunction(target);
anObject(argumentsList);
return nativeApply
? nativeApply(target, thisArgument, argumentsList)
: functionApply.call(target, thisArgument, argumentsList);
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.construct.js 0000664 0000000 0000000 00000004204 13774351224 0024301 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getBuiltIn = require('../internals/get-built-in');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var create = require('../internals/object-create');
var bind = require('../internals/function-bind');
var fails = require('../internals/fails');
var nativeConstruct = getBuiltIn('Reflect', 'construct');
// `Reflect.construct` method
// https://tc39.es/ecma262/#sec-reflect.construct
// MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails(function () {
function F() { /* empty */ }
return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
nativeConstruct(function () { /* empty */ });
});
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
construct: function construct(Target, args /* , newTarget */) {
aFunction(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
if (Target == newTarget) {
// w/o altered newTarget, optimization for 0-4 arguments
switch (args.length) {
case 0: return new Target();
case 1: return new Target(args[0]);
case 2: return new Target(args[0], args[1]);
case 3: return new Target(args[0], args[1], args[2]);
case 4: return new Target(args[0], args[1], args[2], args[3]);
}
// w/o altered newTarget, lot of arguments case
var $args = [null];
$args.push.apply($args, args);
return new (bind.apply(Target, $args))();
}
// with altered newTarget, not support built-in constructors
var proto = newTarget.prototype;
var instance = create(isObject(proto) ? proto : Object.prototype);
var result = Function.apply.call(Target, instance, args);
return isObject(result) ? result : instance;
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.define-property.js 0000664 0000000 0000000 00000002064 13774351224 0025373 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var anObject = require('../internals/an-object');
var toPrimitive = require('../internals/to-primitive');
var definePropertyModule = require('../internals/object-define-property');
var fails = require('../internals/fails');
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
var ERROR_INSTEAD_OF_FALSE = fails(function () {
// eslint-disable-next-line no-undef
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 });
});
// `Reflect.defineProperty` method
// https://tc39.es/ecma262/#sec-reflect.defineproperty
$({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS }, {
defineProperty: function defineProperty(target, propertyKey, attributes) {
anObject(target);
var key = toPrimitive(propertyKey, true);
anObject(attributes);
try {
definePropertyModule.f(target, key, attributes);
return true;
} catch (error) {
return false;
}
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.delete-property.js 0000664 0000000 0000000 00000001050 13774351224 0025375 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
// `Reflect.deleteProperty` method
// https://tc39.es/ecma262/#sec-reflect.deleteproperty
$({ target: 'Reflect', stat: true }, {
deleteProperty: function deleteProperty(target, propertyKey) {
var descriptor = getOwnPropertyDescriptor(anObject(target), propertyKey);
return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.get-own-property-descriptor.js 0000664 0000000 0000000 00000001105 13774351224 0027670 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var anObject = require('../internals/an-object');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
// `Reflect.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-reflect.getownpropertydescriptor
$({ target: 'Reflect', stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.get-prototype-of.js 0000664 0000000 0000000 00000001011 13774351224 0025472 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var objectGetPrototypeOf = require('../internals/object-get-prototype-of');
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
// `Reflect.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-reflect.getprototypeof
$({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(target) {
return objectGetPrototypeOf(anObject(target));
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.get.js 0000664 0000000 0000000 00000001751 13774351224 0023040 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isObject = require('../internals/is-object');
var anObject = require('../internals/an-object');
var has = require('../internals/has');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var getPrototypeOf = require('../internals/object-get-prototype-of');
// `Reflect.get` method
// https://tc39.es/ecma262/#sec-reflect.get
function get(target, propertyKey /* , receiver */) {
var receiver = arguments.length < 3 ? target : arguments[2];
var descriptor, prototype;
if (anObject(target) === receiver) return target[propertyKey];
if (descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey)) return has(descriptor, 'value')
? descriptor.value
: descriptor.get === undefined
? undefined
: descriptor.get.call(receiver);
if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);
}
$({ target: 'Reflect', stat: true }, {
get: get
});
core-js-3.8.2/packages/core-js/modules/es.reflect.has.js 0000664 0000000 0000000 00000000351 13774351224 0023027 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Reflect.has` method
// https://tc39.es/ecma262/#sec-reflect.has
$({ target: 'Reflect', stat: true }, {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.is-extensible.js 0000664 0000000 0000000 00000000630 13774351224 0025027 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var objectIsExtensible = Object.isExtensible;
// `Reflect.isExtensible` method
// https://tc39.es/ecma262/#sec-reflect.isextensible
$({ target: 'Reflect', stat: true }, {
isExtensible: function isExtensible(target) {
anObject(target);
return objectIsExtensible ? objectIsExtensible(target) : true;
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.own-keys.js 0000664 0000000 0000000 00000000343 13774351224 0024031 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ownKeys = require('../internals/own-keys');
// `Reflect.ownKeys` method
// https://tc39.es/ecma262/#sec-reflect.ownkeys
$({ target: 'Reflect', stat: true }, {
ownKeys: ownKeys
});
core-js-3.8.2/packages/core-js/modules/es.reflect.prevent-extensions.js 0000664 0000000 0000000 00000001223 13774351224 0026133 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var FREEZING = require('../internals/freezing');
// `Reflect.preventExtensions` method
// https://tc39.es/ecma262/#sec-reflect.preventextensions
$({ target: 'Reflect', stat: true, sham: !FREEZING }, {
preventExtensions: function preventExtensions(target) {
anObject(target);
try {
var objectPreventExtensions = getBuiltIn('Object', 'preventExtensions');
if (objectPreventExtensions) objectPreventExtensions(target);
return true;
} catch (error) {
return false;
}
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.set-prototype-of.js 0000664 0000000 0000000 00000001171 13774351224 0025515 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var aPossiblePrototype = require('../internals/a-possible-prototype');
var objectSetPrototypeOf = require('../internals/object-set-prototype-of');
// `Reflect.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-reflect.setprototypeof
if (objectSetPrototypeOf) $({ target: 'Reflect', stat: true }, {
setPrototypeOf: function setPrototypeOf(target, proto) {
anObject(target);
aPossiblePrototype(proto);
try {
objectSetPrototypeOf(target, proto);
return true;
} catch (error) {
return false;
}
}
});
core-js-3.8.2/packages/core-js/modules/es.reflect.set.js 0000664 0000000 0000000 00000004171 13774351224 0023053 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var has = require('../internals/has');
var fails = require('../internals/fails');
var definePropertyModule = require('../internals/object-define-property');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
// `Reflect.set` method
// https://tc39.es/ecma262/#sec-reflect.set
function set(target, propertyKey, V /* , receiver */) {
var receiver = arguments.length < 4 ? target : arguments[3];
var ownDescriptor = getOwnPropertyDescriptorModule.f(anObject(target), propertyKey);
var existingDescriptor, prototype;
if (!ownDescriptor) {
if (isObject(prototype = getPrototypeOf(target))) {
return set(prototype, propertyKey, V, receiver);
}
ownDescriptor = createPropertyDescriptor(0);
}
if (has(ownDescriptor, 'value')) {
if (ownDescriptor.writable === false || !isObject(receiver)) return false;
if (existingDescriptor = getOwnPropertyDescriptorModule.f(receiver, propertyKey)) {
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false;
existingDescriptor.value = V;
definePropertyModule.f(receiver, propertyKey, existingDescriptor);
} else definePropertyModule.f(receiver, propertyKey, createPropertyDescriptor(0, V));
return true;
}
return ownDescriptor.set === undefined ? false : (ownDescriptor.set.call(receiver, V), true);
}
// MS Edge 17-18 Reflect.set allows setting the property to object
// with non-writable property on the prototype
var MS_EDGE_BUG = fails(function () {
var Constructor = function () { /* empty */ };
var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true });
// eslint-disable-next-line no-undef
return Reflect.set(Constructor.prototype, 'a', 1, object) !== false;
});
$({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {
set: set
});
core-js-3.8.2/packages/core-js/modules/es.reflect.to-string-tag.js 0000664 0000000 0000000 00000000507 13774351224 0024756 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var global = require('../internals/global');
var setToStringTag = require('../internals/set-to-string-tag');
$({ global: true }, { Reflect: {} });
// Reflect[@@toStringTag] property
// https://tc39.es/ecma262/#sec-reflect-@@tostringtag
setToStringTag(global.Reflect, 'Reflect', true);
core-js-3.8.2/packages/core-js/modules/es.regexp.constructor.js 0000664 0000000 0000000 00000006076 13774351224 0024521 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var isForced = require('../internals/is-forced');
var inheritIfRequired = require('../internals/inherit-if-required');
var defineProperty = require('../internals/object-define-property').f;
var getOwnPropertyNames = require('../internals/object-get-own-property-names').f;
var isRegExp = require('../internals/is-regexp');
var getFlags = require('../internals/regexp-flags');
var stickyHelpers = require('../internals/regexp-sticky-helpers');
var redefine = require('../internals/redefine');
var fails = require('../internals/fails');
var setInternalState = require('../internals/internal-state').set;
var setSpecies = require('../internals/set-species');
var wellKnownSymbol = require('../internals/well-known-symbol');
var MATCH = wellKnownSymbol('match');
var NativeRegExp = global.RegExp;
var RegExpPrototype = NativeRegExp.prototype;
var re1 = /a/g;
var re2 = /a/g;
// "new" should create a new object, old webkit bug
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var FORCED = DESCRIPTORS && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {
re2[MATCH] = false;
// RegExp constructor can alter flags and IsRegExp works correct with @@match
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
})));
// `RegExp` constructor
// https://tc39.es/ecma262/#sec-regexp-constructor
if (FORCED) {
var RegExpWrapper = function RegExp(pattern, flags) {
var thisIsRegExp = this instanceof RegExpWrapper;
var patternIsRegExp = isRegExp(pattern);
var flagsAreUndefined = flags === undefined;
var sticky;
if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {
return pattern;
}
if (CORRECT_NEW) {
if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;
} else if (pattern instanceof RegExpWrapper) {
if (flagsAreUndefined) flags = getFlags.call(pattern);
pattern = pattern.source;
}
if (UNSUPPORTED_Y) {
sticky = !!flags && flags.indexOf('y') > -1;
if (sticky) flags = flags.replace(/y/g, '');
}
var result = inheritIfRequired(
CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),
thisIsRegExp ? this : RegExpPrototype,
RegExpWrapper
);
if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });
return result;
};
var proxy = function (key) {
key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
configurable: true,
get: function () { return NativeRegExp[key]; },
set: function (it) { NativeRegExp[key] = it; }
});
};
var keys = getOwnPropertyNames(NativeRegExp);
var index = 0;
while (keys.length > index) proxy(keys[index++]);
RegExpPrototype.constructor = RegExpWrapper;
RegExpWrapper.prototype = RegExpPrototype;
redefine(global, 'RegExp', RegExpWrapper);
}
// https://tc39.es/ecma262/#sec-get-regexp-@@species
setSpecies('RegExp');
core-js-3.8.2/packages/core-js/modules/es.regexp.exec.js 0000664 0000000 0000000 00000000422 13774351224 0023045 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var exec = require('../internals/regexp-exec');
// `RegExp.prototype.exec` method
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
exec: exec
});
core-js-3.8.2/packages/core-js/modules/es.regexp.flags.js 0000664 0000000 0000000 00000001034 13774351224 0023215 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var objectDefinePropertyModule = require('../internals/object-define-property');
var regExpFlags = require('../internals/regexp-flags');
var UNSUPPORTED_Y = require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;
// `RegExp.prototype.flags` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
if (DESCRIPTORS && (/./g.flags != 'g' || UNSUPPORTED_Y)) {
objectDefinePropertyModule.f(RegExp.prototype, 'flags', {
configurable: true,
get: regExpFlags
});
}
core-js-3.8.2/packages/core-js/modules/es.regexp.sticky.js 0000664 0000000 0000000 00000001573 13774351224 0023437 0 ustar 00root root 0000000 0000000 var DESCRIPTORS = require('../internals/descriptors');
var UNSUPPORTED_Y = require('../internals/regexp-sticky-helpers').UNSUPPORTED_Y;
var defineProperty = require('../internals/object-define-property').f;
var getInternalState = require('../internals/internal-state').get;
var RegExpPrototype = RegExp.prototype;
// `RegExp.prototype.sticky` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
if (DESCRIPTORS && UNSUPPORTED_Y) {
defineProperty(RegExp.prototype, 'sticky', {
configurable: true,
get: function () {
if (this === RegExpPrototype) return undefined;
// We can't use InternalStateModule.getterFor because
// we don't add metadata for regexps created by a literal.
if (this instanceof RegExp) {
return !!getInternalState(this).sticky;
}
throw TypeError('Incompatible receiver, RegExp required');
}
});
}
core-js-3.8.2/packages/core-js/modules/es.regexp.test.js 0000664 0000000 0000000 00000001667 13774351224 0023114 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: Remove from `core-js@4` since it's moved to entry points
require('../modules/es.regexp.exec');
var $ = require('../internals/export');
var isObject = require('../internals/is-object');
var DELEGATES_TO_EXEC = function () {
var execCalled = false;
var re = /[ac]/;
re.exec = function () {
execCalled = true;
return /./.exec.apply(this, arguments);
};
return re.test('abc') === true && execCalled;
}();
var nativeTest = /./.test;
// `RegExp.prototype.test` method
// https://tc39.es/ecma262/#sec-regexp.prototype.test
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
test: function (str) {
if (typeof this.exec !== 'function') {
return nativeTest.call(this, str);
}
var result = this.exec(str);
if (result !== null && !isObject(result)) {
throw new Error('RegExp exec method returned something other than an Object or null');
}
return !!result;
}
});
core-js-3.8.2/packages/core-js/modules/es.regexp.to-string.js 0000664 0000000 0000000 00000001722 13774351224 0024053 0 ustar 00root root 0000000 0000000 'use strict';
var redefine = require('../internals/redefine');
var anObject = require('../internals/an-object');
var fails = require('../internals/fails');
var flags = require('../internals/regexp-flags');
var TO_STRING = 'toString';
var RegExpPrototype = RegExp.prototype;
var nativeToString = RegExpPrototype[TO_STRING];
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
// FF44- RegExp#toString has a wrong name
var INCORRECT_NAME = nativeToString.name != TO_STRING;
// `RegExp.prototype.toString` method
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
if (NOT_GENERIC || INCORRECT_NAME) {
redefine(RegExp.prototype, TO_STRING, function toString() {
var R = anObject(this);
var p = String(R.source);
var rf = R.flags;
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
return '/' + p + '/' + f;
}, { unsafe: true });
}
core-js-3.8.2/packages/core-js/modules/es.set.js 0000664 0000000 0000000 00000000557 13774351224 0021434 0 ustar 00root root 0000000 0000000 'use strict';
var collection = require('../internals/collection');
var collectionStrong = require('../internals/collection-strong');
// `Set` constructor
// https://tc39.es/ecma262/#sec-set-objects
module.exports = collection('Set', function (init) {
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong);
core-js-3.8.2/packages/core-js/modules/es.string.anchor.js 0000664 0000000 0000000 00000000675 13774351224 0023421 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.anchor` method
// https://tc39.es/ecma262/#sec-string.prototype.anchor
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
anchor: function anchor(name) {
return createHTML(this, 'a', 'name', name);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.big.js 0000664 0000000 0000000 00000000646 13774351224 0022706 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.big` method
// https://tc39.es/ecma262/#sec-string.prototype.big
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('big') }, {
big: function big() {
return createHTML(this, 'big', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.blink.js 0000664 0000000 0000000 00000000662 13774351224 0023242 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.blink` method
// https://tc39.es/ecma262/#sec-string.prototype.blink
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('blink') }, {
blink: function blink() {
return createHTML(this, 'blink', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.bold.js 0000664 0000000 0000000 00000000651 13774351224 0023061 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.bold` method
// https://tc39.es/ecma262/#sec-string.prototype.bold
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('bold') }, {
bold: function bold() {
return createHTML(this, 'b', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.code-point-at.js 0000664 0000000 0000000 00000000523 13774351224 0024602 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var codeAt = require('../internals/string-multibyte').codeAt;
// `String.prototype.codePointAt` method
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
$({ target: 'String', proto: true }, {
codePointAt: function codePointAt(pos) {
return codeAt(this, pos);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.ends-with.js 0000664 0000000 0000000 00000003006 13774351224 0024040 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var toLength = require('../internals/to-length');
var notARegExp = require('../internals/not-a-regexp');
var requireObjectCoercible = require('../internals/require-object-coercible');
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
var IS_PURE = require('../internals/is-pure');
var nativeEndsWith = ''.endsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.endsWith` method
// https://tc39.es/ecma262/#sec-string.prototype.endswith
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
endsWith: function endsWith(searchString /* , endPosition = @length */) {
var that = String(requireObjectCoercible(this));
notARegExp(searchString);
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
var len = toLength(that.length);
var end = endPosition === undefined ? len : min(toLength(endPosition), len);
var search = String(searchString);
return nativeEndsWith
? nativeEndsWith.call(that, search, end)
: that.slice(end - search.length, end) === search;
}
});
core-js-3.8.2/packages/core-js/modules/es.string.fixed.js 0000664 0000000 0000000 00000000657 13774351224 0023246 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.fixed` method
// https://tc39.es/ecma262/#sec-string.prototype.fixed
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {
fixed: function fixed() {
return createHTML(this, 'tt', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.fontcolor.js 0000664 0000000 0000000 00000000722 13774351224 0024145 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.fontcolor` method
// https://tc39.es/ecma262/#sec-string.prototype.fontcolor
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontcolor') }, {
fontcolor: function fontcolor(color) {
return createHTML(this, 'font', 'color', color);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.fontsize.js 0000664 0000000 0000000 00000000712 13774351224 0024000 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.fontsize` method
// https://tc39.es/ecma262/#sec-string.prototype.fontsize
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontsize') }, {
fontsize: function fontsize(size) {
return createHTML(this, 'font', 'size', size);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.from-code-point.js 0000664 0000000 0000000 00000001740 13774351224 0025143 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var fromCharCode = String.fromCharCode;
var nativeFromCodePoint = String.fromCodePoint;
// length should be 1, old FF problem
var INCORRECT_LENGTH = !!nativeFromCodePoint && nativeFromCodePoint.length != 1;
// `String.fromCodePoint` method
// https://tc39.es/ecma262/#sec-string.fromcodepoint
$({ target: 'String', stat: true, forced: INCORRECT_LENGTH }, {
fromCodePoint: function fromCodePoint(x) { // eslint-disable-line no-unused-vars
var elements = [];
var length = arguments.length;
var i = 0;
var code;
while (length > i) {
code = +arguments[i++];
if (toAbsoluteIndex(code, 0x10FFFF) !== code) throw RangeError(code + ' is not a valid code point');
elements.push(code < 0x10000
? fromCharCode(code)
: fromCharCode(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00)
);
} return elements.join('');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.includes.js 0000664 0000000 0000000 00000001224 13774351224 0023744 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var notARegExp = require('../internals/not-a-regexp');
var requireObjectCoercible = require('../internals/require-object-coercible');
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
includes: function includes(searchString /* , position = 0 */) {
return !!~String(requireObjectCoercible(this))
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.italics.js 0000664 0000000 0000000 00000000670 13774351224 0023572 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.italics` method
// https://tc39.es/ecma262/#sec-string.prototype.italics
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('italics') }, {
italics: function italics() {
return createHTML(this, 'i', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.iterator.js 0000664 0000000 0000000 00000002016 13774351224 0023767 0 ustar 00root root 0000000 0000000 'use strict';
var charAt = require('../internals/string-multibyte').charAt;
var InternalStateModule = require('../internals/internal-state');
var defineIterator = require('../internals/define-iterator');
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
// `String.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
defineIterator(String, 'String', function (iterated) {
setInternalState(this, {
type: STRING_ITERATOR,
string: String(iterated),
index: 0
});
// `%StringIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
}, function next() {
var state = getInternalState(this);
var string = state.string;
var index = state.index;
var point;
if (index >= string.length) return { value: undefined, done: true };
point = charAt(string, index);
state.index += point.length;
return { value: point, done: false };
});
core-js-3.8.2/packages/core-js/modules/es.string.link.js 0000664 0000000 0000000 00000000661 13774351224 0023077 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.link` method
// https://tc39.es/ecma262/#sec-string.prototype.link
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
link: function link(url) {
return createHTML(this, 'a', 'href', url);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.match-all.js 0000664 0000000 0000000 00000010554 13774351224 0024006 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var requireObjectCoercible = require('../internals/require-object-coercible');
var toLength = require('../internals/to-length');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var classof = require('../internals/classof-raw');
var isRegExp = require('../internals/is-regexp');
var getRegExpFlags = require('../internals/regexp-flags');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var fails = require('../internals/fails');
var wellKnownSymbol = require('../internals/well-known-symbol');
var speciesConstructor = require('../internals/species-constructor');
var advanceStringIndex = require('../internals/advance-string-index');
var InternalStateModule = require('../internals/internal-state');
var IS_PURE = require('../internals/is-pure');
var MATCH_ALL = wellKnownSymbol('matchAll');
var REGEXP_STRING = 'RegExp String';
var REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);
var RegExpPrototype = RegExp.prototype;
var regExpBuiltinExec = RegExpPrototype.exec;
var nativeMatchAll = ''.matchAll;
var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails(function () {
'a'.matchAll(/./);
});
var regExpExec = function (R, S) {
var exec = R.exec;
var result;
if (typeof exec == 'function') {
result = exec.call(R, S);
if (typeof result != 'object') throw TypeError('Incorrect exec result');
return result;
} return regExpBuiltinExec.call(R, S);
};
// eslint-disable-next-line max-len
var $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, global, fullUnicode) {
setInternalState(this, {
type: REGEXP_STRING_ITERATOR,
regexp: regexp,
string: string,
global: global,
unicode: fullUnicode,
done: false
});
}, REGEXP_STRING, function next() {
var state = getInternalState(this);
if (state.done) return { value: undefined, done: true };
var R = state.regexp;
var S = state.string;
var match = regExpExec(R, S);
if (match === null) return { value: undefined, done: state.done = true };
if (state.global) {
if (String(match[0]) == '') R.lastIndex = advanceStringIndex(S, toLength(R.lastIndex), state.unicode);
return { value: match, done: false };
}
state.done = true;
return { value: match, done: false };
});
var $matchAll = function (string) {
var R = anObject(this);
var S = String(string);
var C, flagsValue, flags, matcher, global, fullUnicode;
C = speciesConstructor(R, RegExp);
flagsValue = R.flags;
if (flagsValue === undefined && R instanceof RegExp && !('flags' in RegExpPrototype)) {
flagsValue = getRegExpFlags.call(R);
}
flags = flagsValue === undefined ? '' : String(flagsValue);
matcher = new C(C === RegExp ? R.source : R, flags);
global = !!~flags.indexOf('g');
fullUnicode = !!~flags.indexOf('u');
matcher.lastIndex = toLength(R.lastIndex);
return new $RegExpStringIterator(matcher, S, global, fullUnicode);
};
// `String.prototype.matchAll` method
// https://tc39.es/ecma262/#sec-string.prototype.matchall
$({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
matchAll: function matchAll(regexp) {
var O = requireObjectCoercible(this);
var flags, S, matcher, rx;
if (regexp != null) {
if (isRegExp(regexp)) {
flags = String(requireObjectCoercible('flags' in RegExpPrototype
? regexp.flags
: getRegExpFlags.call(regexp)
));
if (!~flags.indexOf('g')) throw TypeError('`.matchAll` does not allow non-global regexes');
}
if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
matcher = regexp[MATCH_ALL];
if (matcher === undefined && IS_PURE && classof(regexp) == 'RegExp') matcher = $matchAll;
if (matcher != null) return aFunction(matcher).call(regexp, O);
} else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
S = String(O);
rx = new RegExp(regexp, 'g');
return IS_PURE ? $matchAll.call(rx, S) : rx[MATCH_ALL](S);
}
});
IS_PURE || MATCH_ALL in RegExpPrototype || createNonEnumerableProperty(RegExpPrototype, MATCH_ALL, $matchAll);
core-js-3.8.2/packages/core-js/modules/es.string.match.js 0000664 0000000 0000000 00000003143 13774351224 0023234 0 ustar 00root root 0000000 0000000 'use strict';
var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');
var anObject = require('../internals/an-object');
var toLength = require('../internals/to-length');
var requireObjectCoercible = require('../internals/require-object-coercible');
var advanceStringIndex = require('../internals/advance-string-index');
var regExpExec = require('../internals/regexp-exec-abstract');
// @@match logic
fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
return [
// `String.prototype.match` method
// https://tc39.es/ecma262/#sec-string.prototype.match
function match(regexp) {
var O = requireObjectCoercible(this);
var matcher = regexp == undefined ? undefined : regexp[MATCH];
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
},
// `RegExp.prototype[@@match]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
function (regexp) {
var res = maybeCallNative(nativeMatch, regexp, this);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
if (!rx.global) return regExpExec(rx, S);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A = [];
var n = 0;
var result;
while ((result = regExpExec(rx, S)) !== null) {
var matchStr = String(result[0]);
A[n] = matchStr;
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
n++;
}
return n === 0 ? null : A;
}
];
});
core-js-3.8.2/packages/core-js/modules/es.string.pad-end.js 0000664 0000000 0000000 00000000742 13774351224 0023452 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $padEnd = require('../internals/string-pad').end;
var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
// `String.prototype.padEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.padend
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.pad-start.js 0000664 0000000 0000000 00000000760 13774351224 0024041 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $padStart = require('../internals/string-pad').start;
var WEBKIT_BUG = require('../internals/string-pad-webkit-bug');
// `String.prototype.padStart` method
// https://tc39.es/ecma262/#sec-string.prototype.padstart
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
padStart: function padStart(maxLength /* , fillString = ' ' */) {
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
}
});
core-js-3.8.2/packages/core-js/modules/es.string.raw.js 0000664 0000000 0000000 00000001240 13774351224 0022725 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var toIndexedObject = require('../internals/to-indexed-object');
var toLength = require('../internals/to-length');
// `String.raw` method
// https://tc39.es/ecma262/#sec-string.raw
$({ target: 'String', stat: true }, {
raw: function raw(template) {
var rawTemplate = toIndexedObject(template.raw);
var literalSegments = toLength(rawTemplate.length);
var argumentsLength = arguments.length;
var elements = [];
var i = 0;
while (literalSegments > i) {
elements.push(String(rawTemplate[i++]));
if (i < argumentsLength) elements.push(String(arguments[i]));
} return elements.join('');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.repeat.js 0000664 0000000 0000000 00000000365 13774351224 0023423 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var repeat = require('../internals/string-repeat');
// `String.prototype.repeat` method
// https://tc39.es/ecma262/#sec-string.prototype.repeat
$({ target: 'String', proto: true }, {
repeat: repeat
});
core-js-3.8.2/packages/core-js/modules/es.string.replace-all.js 0000664 0000000 0000000 00000005170 13774351224 0024323 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var requireObjectCoercible = require('../internals/require-object-coercible');
var isRegExp = require('../internals/is-regexp');
var getRegExpFlags = require('../internals/regexp-flags');
var getSubstitution = require('../internals/get-substitution');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IS_PURE = require('../internals/is-pure');
var REPLACE = wellKnownSymbol('replace');
var RegExpPrototype = RegExp.prototype;
var max = Math.max;
var stringIndexOf = function (string, searchValue, fromIndex) {
if (fromIndex > string.length) return -1;
if (searchValue === '') return fromIndex;
return string.indexOf(searchValue, fromIndex);
};
// `String.prototype.replaceAll` method
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
$({ target: 'String', proto: true }, {
replaceAll: function replaceAll(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
var position = 0;
var endOfLastMatch = 0;
var result = '';
if (searchValue != null) {
IS_REG_EXP = isRegExp(searchValue);
if (IS_REG_EXP) {
flags = String(requireObjectCoercible('flags' in RegExpPrototype
? searchValue.flags
: getRegExpFlags.call(searchValue)
));
if (!~flags.indexOf('g')) throw TypeError('`.replaceAll` does not allow non-global regexes');
}
replacer = searchValue[REPLACE];
if (replacer !== undefined) {
return replacer.call(searchValue, O, replaceValue);
} else if (IS_PURE && IS_REG_EXP) {
return String(O).replace(searchValue, replaceValue);
}
}
string = String(O);
searchString = String(searchValue);
functionalReplace = typeof replaceValue === 'function';
if (!functionalReplace) replaceValue = String(replaceValue);
searchLength = searchString.length;
advanceBy = max(1, searchLength);
position = stringIndexOf(string, searchString, 0);
while (position !== -1) {
if (functionalReplace) {
replacement = String(replaceValue(searchString, position, string));
} else {
replacement = getSubstitution(searchString, string, position, [], undefined, replaceValue);
}
result += string.slice(endOfLastMatch, position) + replacement;
endOfLastMatch = position + searchLength;
position = stringIndexOf(string, searchString, position + advanceBy);
}
if (endOfLastMatch < string.length) {
result += string.slice(endOfLastMatch);
}
return result;
}
});
core-js-3.8.2/packages/core-js/modules/es.string.replace.js 0000664 0000000 0000000 00000007725 13774351224 0023565 0 ustar 00root root 0000000 0000000 'use strict';
var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');
var anObject = require('../internals/an-object');
var toLength = require('../internals/to-length');
var toInteger = require('../internals/to-integer');
var requireObjectCoercible = require('../internals/require-object-coercible');
var advanceStringIndex = require('../internals/advance-string-index');
var getSubstitution = require('../internals/get-substitution');
var regExpExec = require('../internals/regexp-exec-abstract');
var max = Math.max;
var min = Math.min;
var maybeToString = function (it) {
return it === undefined ? it : String(it);
};
// @@replace logic
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
return [
// `String.prototype.replace` method
// https://tc39.es/ecma262/#sec-string.prototype.replace
function replace(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
return replacer !== undefined
? replacer.call(searchValue, O, replaceValue)
: nativeReplace.call(String(O), searchValue, replaceValue);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
function (regexp, replaceValue) {
if (
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
) {
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
if (res.done) return res.value;
}
var rx = anObject(regexp);
var S = String(this);
var functionalReplace = typeof replaceValue === 'function';
if (!functionalReplace) replaceValue = String(replaceValue);
var global = rx.global;
if (global) {
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
}
var results = [];
while (true) {
var result = regExpExec(rx, S);
if (result === null) break;
results.push(result);
if (!global) break;
var matchStr = String(result[0]);
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
}
var accumulatedResult = '';
var nextSourcePosition = 0;
for (var i = 0; i < results.length; i++) {
result = results[i];
var matched = String(result[0]);
var position = max(min(toInteger(result.index), S.length), 0);
var captures = [];
// NOTE: This is equivalent to
// captures = result.slice(1).map(maybeToString)
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
var namedCaptures = result.groups;
if (functionalReplace) {
var replacerArgs = [matched].concat(captures, position, S);
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
var replacement = String(replaceValue.apply(undefined, replacerArgs));
} else {
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
}
if (position >= nextSourcePosition) {
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
nextSourcePosition = position + matched.length;
}
}
return accumulatedResult + S.slice(nextSourcePosition);
}
];
});
core-js-3.8.2/packages/core-js/modules/es.string.search.js 0000664 0000000 0000000 00000002617 13774351224 0023412 0 ustar 00root root 0000000 0000000 'use strict';
var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');
var anObject = require('../internals/an-object');
var requireObjectCoercible = require('../internals/require-object-coercible');
var sameValue = require('../internals/same-value');
var regExpExec = require('../internals/regexp-exec-abstract');
// @@search logic
fixRegExpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
return [
// `String.prototype.search` method
// https://tc39.es/ecma262/#sec-string.prototype.search
function search(regexp) {
var O = requireObjectCoercible(this);
var searcher = regexp == undefined ? undefined : regexp[SEARCH];
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
},
// `RegExp.prototype[@@search]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
function (regexp) {
var res = maybeCallNative(nativeSearch, regexp, this);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var previousLastIndex = rx.lastIndex;
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
var result = regExpExec(rx, S);
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
return result === null ? -1 : result.index;
}
];
});
core-js-3.8.2/packages/core-js/modules/es.string.small.js 0000664 0000000 0000000 00000000662 13774351224 0023253 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.small` method
// https://tc39.es/ecma262/#sec-string.prototype.small
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('small') }, {
small: function small() {
return createHTML(this, 'small', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.split.js 0000664 0000000 0000000 00000012511 13774351224 0023272 0 ustar 00root root 0000000 0000000 'use strict';
var fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');
var isRegExp = require('../internals/is-regexp');
var anObject = require('../internals/an-object');
var requireObjectCoercible = require('../internals/require-object-coercible');
var speciesConstructor = require('../internals/species-constructor');
var advanceStringIndex = require('../internals/advance-string-index');
var toLength = require('../internals/to-length');
var callRegExpExec = require('../internals/regexp-exec-abstract');
var regexpExec = require('../internals/regexp-exec');
var fails = require('../internals/fails');
var arrayPush = [].push;
var min = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
// @@split logic
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
if (
'abbc'.split(/(b)*/)[1] == 'c' ||
'test'.split(/(?:)/, -1).length != 4 ||
'ab'.split(/(?:ab)*/).length != 2 ||
'.'.split(/(.?)(.?)/).length != 4 ||
'.'.split(/()()/).length > 1 ||
''.split(/.?/).length
) {
// based on es5-shim implementation, need to rework it
internalSplit = function (separator, limit) {
var string = String(requireObjectCoercible(this));
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (separator === undefined) return [string];
// If `separator` is not a regex, use native split
if (!isRegExp(separator)) {
return nativeSplit.call(string, separator, lim);
}
var output = [];
var flags = (separator.ignoreCase ? 'i' : '') +
(separator.multiline ? 'm' : '') +
(separator.unicode ? 'u' : '') +
(separator.sticky ? 'y' : '');
var lastLastIndex = 0;
// Make `global` and avoid `lastIndex` issues by working with a copy
var separatorCopy = new RegExp(separator.source, flags + 'g');
var match, lastIndex, lastLength;
while (match = regexpExec.call(separatorCopy, string)) {
lastIndex = separatorCopy.lastIndex;
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= lim) break;
}
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
}
if (lastLastIndex === string.length) {
if (lastLength || !separatorCopy.test('')) output.push('');
} else output.push(string.slice(lastLastIndex));
return output.length > lim ? output.slice(0, lim) : output;
};
// Chakra, V8
} else if ('0'.split(undefined, 0).length) {
internalSplit = function (separator, limit) {
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
};
} else internalSplit = nativeSplit;
return [
// `String.prototype.split` method
// https://tc39.es/ecma262/#sec-string.prototype.split
function split(separator, limit) {
var O = requireObjectCoercible(this);
var splitter = separator == undefined ? undefined : separator[SPLIT];
return splitter !== undefined
? splitter.call(separator, O, limit)
: internalSplit.call(String(O), separator, limit);
},
// `RegExp.prototype[@@split]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
//
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function (regexp, limit) {
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var C = speciesConstructor(rx, RegExp);
var unicodeMatching = rx.unicode;
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
(SUPPORTS_Y ? 'y' : 'g');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
var p = 0;
var q = 0;
var A = [];
while (q < S.length) {
splitter.lastIndex = SUPPORTS_Y ? q : 0;
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
var e;
if (
z === null ||
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
A.push(S.slice(p, q));
if (A.length === lim) return A;
for (var i = 1; i <= z.length - 1; i++) {
A.push(z[i]);
if (A.length === lim) return A;
}
q = p = e;
}
}
A.push(S.slice(p));
return A;
}
];
}, !SUPPORTS_Y);
core-js-3.8.2/packages/core-js/modules/es.string.starts-with.js 0000664 0000000 0000000 00000002667 13774351224 0024443 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var toLength = require('../internals/to-length');
var notARegExp = require('../internals/not-a-regexp');
var requireObjectCoercible = require('../internals/require-object-coercible');
var correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');
var IS_PURE = require('../internals/is-pure');
var nativeStartsWith = ''.startsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.startsWith` method
// https://tc39.es/ecma262/#sec-string.prototype.startswith
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString /* , position = 0 */) {
var that = String(requireObjectCoercible(this));
notARegExp(searchString);
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = String(searchString);
return nativeStartsWith
? nativeStartsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
core-js-3.8.2/packages/core-js/modules/es.string.strike.js 0000664 0000000 0000000 00000000670 13774351224 0023443 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.strike` method
// https://tc39.es/ecma262/#sec-string.prototype.strike
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('strike') }, {
strike: function strike() {
return createHTML(this, 'strike', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.sub.js 0000664 0000000 0000000 00000000646 13774351224 0022736 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.sub` method
// https://tc39.es/ecma262/#sec-string.prototype.sub
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sub') }, {
sub: function sub() {
return createHTML(this, 'sub', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.sup.js 0000664 0000000 0000000 00000000646 13774351224 0022754 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createHTML = require('../internals/create-html');
var forcedStringHTMLMethod = require('../internals/string-html-forced');
// `String.prototype.sup` method
// https://tc39.es/ecma262/#sec-string.prototype.sup
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, {
sup: function sup() {
return createHTML(this, 'sup', '', '');
}
});
core-js-3.8.2/packages/core-js/modules/es.string.trim-end.js 0000664 0000000 0000000 00000001110 13774351224 0023647 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $trimEnd = require('../internals/string-trim').end;
var forcedStringTrimMethod = require('../internals/string-trim-forced');
var FORCED = forcedStringTrimMethod('trimEnd');
var trimEnd = FORCED ? function trimEnd() {
return $trimEnd(this);
} : ''.trimEnd;
// `String.prototype.{ trimEnd, trimRight }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimend
// https://tc39.es/ecma262/#String.prototype.trimright
$({ target: 'String', proto: true, forced: FORCED }, {
trimEnd: trimEnd,
trimRight: trimEnd
});
core-js-3.8.2/packages/core-js/modules/es.string.trim-start.js 0000664 0000000 0000000 00000001135 13774351224 0024245 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $trimStart = require('../internals/string-trim').start;
var forcedStringTrimMethod = require('../internals/string-trim-forced');
var FORCED = forcedStringTrimMethod('trimStart');
var trimStart = FORCED ? function trimStart() {
return $trimStart(this);
} : ''.trimStart;
// `String.prototype.{ trimStart, trimLeft }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
// https://tc39.es/ecma262/#String.prototype.trimleft
$({ target: 'String', proto: true, forced: FORCED }, {
trimStart: trimStart,
trimLeft: trimStart
});
core-js-3.8.2/packages/core-js/modules/es.string.trim.js 0000664 0000000 0000000 00000000627 13774351224 0023117 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $trim = require('../internals/string-trim').trim;
var forcedStringTrimMethod = require('../internals/string-trim-forced');
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
trim: function trim() {
return $trim(this);
}
});
core-js-3.8.2/packages/core-js/modules/es.symbol.async-iterator.js 0000664 0000000 0000000 00000000330 13774351224 0025076 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.asyncIterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.asynciterator
defineWellKnownSymbol('asyncIterator');
core-js-3.8.2/packages/core-js/modules/es.symbol.description.js 0000664 0000000 0000000 00000004112 13774351224 0024457 0 ustar 00root root 0000000 0000000 // `Symbol.prototype.description` getter
// https://tc39.es/ecma262/#sec-symbol.prototype.description
'use strict';
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var global = require('../internals/global');
var has = require('../internals/has');
var isObject = require('../internals/is-object');
var defineProperty = require('../internals/object-define-property').f;
var copyConstructorProperties = require('../internals/copy-constructor-properties');
var NativeSymbol = global.Symbol;
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
// Safari 12 bug
NativeSymbol().description !== undefined
)) {
var EmptyStringDescriptionStore = {};
// wrap Symbol constructor for correct work with undefined description
var SymbolWrapper = function Symbol() {
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
var result = this instanceof SymbolWrapper
? new NativeSymbol(description)
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
: description === undefined ? NativeSymbol() : NativeSymbol(description);
if (description === '') EmptyStringDescriptionStore[result] = true;
return result;
};
copyConstructorProperties(SymbolWrapper, NativeSymbol);
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
symbolPrototype.constructor = SymbolWrapper;
var symbolToString = symbolPrototype.toString;
var native = String(NativeSymbol('test')) == 'Symbol(test)';
var regexp = /^Symbol\((.*)\)[^)]+$/;
defineProperty(symbolPrototype, 'description', {
configurable: true,
get: function description() {
var symbol = isObject(this) ? this.valueOf() : this;
var string = symbolToString.call(symbol);
if (has(EmptyStringDescriptionStore, symbol)) return '';
var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
return desc === '' ? undefined : desc;
}
});
$({ global: true, forced: true }, {
Symbol: SymbolWrapper
});
}
core-js-3.8.2/packages/core-js/modules/es.symbol.has-instance.js 0000664 0000000 0000000 00000000322 13774351224 0024510 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.hasInstance` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.hasinstance
defineWellKnownSymbol('hasInstance');
core-js-3.8.2/packages/core-js/modules/es.symbol.is-concat-spreadable.js 0000664 0000000 0000000 00000000347 13774351224 0026122 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.isConcatSpreadable` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable
defineWellKnownSymbol('isConcatSpreadable');
core-js-3.8.2/packages/core-js/modules/es.symbol.iterator.js 0000664 0000000 0000000 00000000311 13774351224 0023762 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.iterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.iterator
defineWellKnownSymbol('iterator');
core-js-3.8.2/packages/core-js/modules/es.symbol.js 0000664 0000000 0000000 00000031350 13774351224 0022141 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var global = require('../internals/global');
var getBuiltIn = require('../internals/get-built-in');
var IS_PURE = require('../internals/is-pure');
var DESCRIPTORS = require('../internals/descriptors');
var NATIVE_SYMBOL = require('../internals/native-symbol');
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
var fails = require('../internals/fails');
var has = require('../internals/has');
var isArray = require('../internals/is-array');
var isObject = require('../internals/is-object');
var anObject = require('../internals/an-object');
var toObject = require('../internals/to-object');
var toIndexedObject = require('../internals/to-indexed-object');
var toPrimitive = require('../internals/to-primitive');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var nativeObjectCreate = require('../internals/object-create');
var objectKeys = require('../internals/object-keys');
var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
var getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');
var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
var getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');
var definePropertyModule = require('../internals/object-define-property');
var propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var shared = require('../internals/shared');
var sharedKey = require('../internals/shared-key');
var hiddenKeys = require('../internals/hidden-keys');
var uid = require('../internals/uid');
var wellKnownSymbol = require('../internals/well-known-symbol');
var wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
var setToStringTag = require('../internals/set-to-string-tag');
var InternalStateModule = require('../internals/internal-state');
var $forEach = require('../internals/array-iteration').forEach;
var HIDDEN = sharedKey('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE = 'prototype';
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global.Symbol;
var $stringify = getBuiltIn('JSON', 'stringify');
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var AllSymbols = shared('symbols');
var ObjectPrototypeSymbols = shared('op-symbols');
var StringToSymbolRegistry = shared('string-to-symbol-registry');
var SymbolToStringRegistry = shared('symbol-to-string-registry');
var WellKnownSymbolsStore = shared('wks');
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
})).a != 7;
}) ? function (O, P, Attributes) {
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
nativeDefineProperty(O, P, Attributes);
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
}
} : nativeDefineProperty;
var wrap = function (tag, description) {
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
setInternalState(symbol, {
type: SYMBOL,
tag: tag,
description: description
});
if (!DESCRIPTORS) symbol.description = description;
return symbol;
};
var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
return typeof it == 'symbol';
} : function (it) {
return Object(it) instanceof $Symbol;
};
var $defineProperty = function defineProperty(O, P, Attributes) {
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
anObject(O);
var key = toPrimitive(P, true);
anObject(Attributes);
if (has(AllSymbols, key)) {
if (!Attributes.enumerable) {
if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
O[HIDDEN][key] = true;
} else {
if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
} return setSymbolDescriptor(O, key, Attributes);
} return nativeDefineProperty(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
anObject(O);
var properties = toIndexedObject(Properties);
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
$forEach(keys, function (key) {
if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
});
return O;
};
var $create = function create(O, Properties) {
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
var P = toPrimitive(V, true);
var enumerable = nativePropertyIsEnumerable.call(this, P);
if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
var it = toIndexedObject(O);
var key = toPrimitive(P, true);
if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
descriptor.enumerable = true;
}
return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
var result = [];
$forEach(names, function (key) {
if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
});
return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
var result = [];
$forEach(names, function (key) {
if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
result.push(AllSymbols[key]);
}
});
return result;
};
// `Symbol` constructor
// https://tc39.es/ecma262/#sec-symbol-constructor
if (!NATIVE_SYMBOL) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
var tag = uid(description);
var setter = function (value) {
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
};
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
return wrap(tag, description);
};
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
return getInternalState(this).tag;
});
redefine($Symbol, 'withoutSetter', function (description) {
return wrap(uid(description), description);
});
propertyIsEnumerableModule.f = $propertyIsEnumerable;
definePropertyModule.f = $defineProperty;
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
wrappedWellKnownSymbolModule.f = function (name) {
return wrap(wellKnownSymbol(name), name);
};
if (DESCRIPTORS) {
// https://github.com/tc39/proposal-Symbol-description
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
configurable: true,
get: function description() {
return getInternalState(this).description;
}
});
if (!IS_PURE) {
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
}
}
}
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
Symbol: $Symbol
});
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
defineWellKnownSymbol(name);
});
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
// `Symbol.for` method
// https://tc39.es/ecma262/#sec-symbol.for
'for': function (key) {
var string = String(key);
if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
var symbol = $Symbol(string);
StringToSymbolRegistry[string] = symbol;
SymbolToStringRegistry[symbol] = string;
return symbol;
},
// `Symbol.keyFor` method
// https://tc39.es/ecma262/#sec-symbol.keyfor
keyFor: function keyFor(sym) {
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
},
useSetter: function () { USE_SETTER = true; },
useSimple: function () { USE_SETTER = false; }
});
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
create: $create,
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
defineProperty: $defineProperty,
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
defineProperties: $defineProperties,
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames: $getOwnPropertyNames,
// `Object.getOwnPropertySymbols` method
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
getOwnPropertySymbols: $getOwnPropertySymbols
});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
return getOwnPropertySymbolsModule.f(toObject(it));
}
});
// `JSON.stringify` method behavior with symbols
// https://tc39.es/ecma262/#sec-json.stringify
if ($stringify) {
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
var symbol = $Symbol();
// MS Edge converts symbol values to JSON as {}
return $stringify([symbol]) != '[null]'
// WebKit converts symbol values to JSON as null
|| $stringify({ a: symbol }) != '{}'
// V8 throws on boxed symbols
|| $stringify(Object(symbol)) != '{}';
});
$({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
// eslint-disable-next-line no-unused-vars
stringify: function stringify(it, replacer, space) {
var args = [it];
var index = 1;
var $replacer;
while (arguments.length > index) args.push(arguments[index++]);
$replacer = replacer;
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
if (!isArray(replacer)) replacer = function (key, value) {
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
if (!isSymbol(value)) return value;
};
args[1] = replacer;
return $stringify.apply(null, args);
}
});
}
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
}
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;
core-js-3.8.2/packages/core-js/modules/es.symbol.match-all.js 0000664 0000000 0000000 00000000311 13774351224 0023773 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.matchAll` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.matchall
defineWellKnownSymbol('matchAll');
core-js-3.8.2/packages/core-js/modules/es.symbol.match.js 0000664 0000000 0000000 00000000300 13774351224 0023223 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.match` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.match
defineWellKnownSymbol('match');
core-js-3.8.2/packages/core-js/modules/es.symbol.replace.js 0000664 0000000 0000000 00000000306 13774351224 0023550 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.replace` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.replace
defineWellKnownSymbol('replace');
core-js-3.8.2/packages/core-js/modules/es.symbol.search.js 0000664 0000000 0000000 00000000303 13774351224 0023377 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.search` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.search
defineWellKnownSymbol('search');
core-js-3.8.2/packages/core-js/modules/es.symbol.species.js 0000664 0000000 0000000 00000000306 13774351224 0023570 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.species` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.species
defineWellKnownSymbol('species');
core-js-3.8.2/packages/core-js/modules/es.symbol.split.js 0000664 0000000 0000000 00000000300 13774351224 0023262 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.split` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.split
defineWellKnownSymbol('split');
core-js-3.8.2/packages/core-js/modules/es.symbol.to-primitive.js 0000664 0000000 0000000 00000000322 13774351224 0024563 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.toPrimitive` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.toprimitive
defineWellKnownSymbol('toPrimitive');
core-js-3.8.2/packages/core-js/modules/es.symbol.to-string-tag.js 0000664 0000000 0000000 00000000322 13774351224 0024632 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.toStringTag` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.tostringtag
defineWellKnownSymbol('toStringTag');
core-js-3.8.2/packages/core-js/modules/es.symbol.unscopables.js 0000664 0000000 0000000 00000000322 13774351224 0024451 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.unscopables` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.unscopables
defineWellKnownSymbol('unscopables');
core-js-3.8.2/packages/core-js/modules/es.typed-array.copy-within.js 0000664 0000000 0000000 00000001113 13774351224 0025340 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $copyWithin = require('../internals/array-copy-within');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.copyWithin` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin
exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {
return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.every.js 0000664 0000000 0000000 00000001052 13774351224 0024222 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $every = require('../internals/array-iteration').every;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.every` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.every
exportTypedArrayMethod('every', function every(callbackfn /* , thisArg */) {
return $every(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.fill.js 0000664 0000000 0000000 00000001026 13774351224 0024017 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $fill = require('../internals/array-fill');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.fill` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill
// eslint-disable-next-line no-unused-vars
exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
return $fill.apply(aTypedArray(this), arguments);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.filter.js 0000664 0000000 0000000 00000001650 13774351224 0024361 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $filter = require('../internals/array-iteration').filter;
var speciesConstructor = require('../internals/species-constructor');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.filter` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter
exportTypedArrayMethod('filter', function filter(callbackfn /* , thisArg */) {
var list = $filter(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
var C = speciesConstructor(this, this.constructor);
var index = 0;
var length = list.length;
var result = new (aTypedArrayConstructor(C))(length);
while (length > index) result[index] = list[index++];
return result;
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.find-index.js 0000664 0000000 0000000 00000001104 13774351224 0025113 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $findIndex = require('../internals/array-iteration').findIndex;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex
exportTypedArrayMethod('findIndex', function findIndex(predicate /* , thisArg */) {
return $findIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.find.js 0000664 0000000 0000000 00000001041 13774351224 0024006 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $find = require('../internals/array-iteration').find;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.find` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.find
exportTypedArrayMethod('find', function find(predicate /* , thisArg */) {
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.float32-array.js 0000664 0000000 0000000 00000000523 13774351224 0025460 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Float32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Float32', function (init) {
return function Float32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.float64-array.js 0000664 0000000 0000000 00000000523 13774351224 0025465 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Float64Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Float64', function (init) {
return function Float64Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.for-each.js 0000664 0000000 0000000 00000001061 13774351224 0024554 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $forEach = require('../internals/array-iteration').forEach;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.forEach` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach
exportTypedArrayMethod('forEach', function forEach(callbackfn /* , thisArg */) {
$forEach(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.from.js 0000664 0000000 0000000 00000000746 13774351224 0024044 0 ustar 00root root 0000000 0000000 'use strict';
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');
var exportTypedArrayStaticMethod = require('../internals/array-buffer-view-core').exportTypedArrayStaticMethod;
var typedArrayFrom = require('../internals/typed-array-from');
// `%TypedArray%.from` method
// https://tc39.es/ecma262/#sec-%typedarray%.from
exportTypedArrayStaticMethod('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
core-js-3.8.2/packages/core-js/modules/es.typed-array.includes.js 0000664 0000000 0000000 00000001106 13774351224 0024676 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $includes = require('../internals/array-includes').includes;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.includes` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes
exportTypedArrayMethod('includes', function includes(searchElement /* , fromIndex */) {
return $includes(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.index-of.js 0000664 0000000 0000000 00000001077 13774351224 0024610 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $indexOf = require('../internals/array-includes').indexOf;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof
exportTypedArrayMethod('indexOf', function indexOf(searchElement /* , fromIndex */) {
return $indexOf(aTypedArray(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.int16-array.js 0000664 0000000 0000000 00000000515 13774351224 0025150 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Int16Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Int16', function (init) {
return function Int16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.int32-array.js 0000664 0000000 0000000 00000000515 13774351224 0025146 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Int32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Int32', function (init) {
return function Int32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.int8-array.js 0000664 0000000 0000000 00000000512 13774351224 0025066 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Int8Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Int8', function (init) {
return function Int8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.iterator.js 0000664 0000000 0000000 00000003213 13774351224 0024722 0 ustar 00root root 0000000 0000000 'use strict';
var global = require('../internals/global');
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var ArrayIterators = require('../modules/es.array.iterator');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ITERATOR = wellKnownSymbol('iterator');
var Uint8Array = global.Uint8Array;
var arrayValues = ArrayIterators.values;
var arrayKeys = ArrayIterators.keys;
var arrayEntries = ArrayIterators.entries;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var nativeTypedArrayIterator = Uint8Array && Uint8Array.prototype[ITERATOR];
var CORRECT_ITER_NAME = !!nativeTypedArrayIterator
&& (nativeTypedArrayIterator.name == 'values' || nativeTypedArrayIterator.name == undefined);
var typedArrayValues = function values() {
return arrayValues.call(aTypedArray(this));
};
// `%TypedArray%.prototype.entries` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries
exportTypedArrayMethod('entries', function entries() {
return arrayEntries.call(aTypedArray(this));
});
// `%TypedArray%.prototype.keys` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys
exportTypedArrayMethod('keys', function keys() {
return arrayKeys.call(aTypedArray(this));
});
// `%TypedArray%.prototype.values` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.values
exportTypedArrayMethod('values', typedArrayValues, !CORRECT_ITER_NAME);
// `%TypedArray%.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator
exportTypedArrayMethod(ITERATOR, typedArrayValues, !CORRECT_ITER_NAME);
core-js-3.8.2/packages/core-js/modules/es.typed-array.join.js 0000664 0000000 0000000 00000000754 13774351224 0024037 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $join = [].join;
// `%TypedArray%.prototype.join` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.join
// eslint-disable-next-line no-unused-vars
exportTypedArrayMethod('join', function join(separator) {
return $join.apply(aTypedArray(this), arguments);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.last-index-of.js 0000664 0000000 0000000 00000001120 13774351224 0025536 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $lastIndexOf = require('../internals/array-last-index-of');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.lastIndexOf` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof
// eslint-disable-next-line no-unused-vars
exportTypedArrayMethod('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
return $lastIndexOf.apply(aTypedArray(this), arguments);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.map.js 0000664 0000000 0000000 00000001424 13774351224 0023650 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $map = require('../internals/array-iteration').map;
var speciesConstructor = require('../internals/species-constructor');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.map` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.map
exportTypedArrayMethod('map', function map(mapfn /* , thisArg */) {
return $map(aTypedArray(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
return new (aTypedArrayConstructor(speciesConstructor(O, O.constructor)))(length);
});
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.of.js 0000664 0000000 0000000 00000001346 13774351224 0023502 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;
// `%TypedArray%.of` method
// https://tc39.es/ecma262/#sec-%typedarray%.of
exportTypedArrayStaticMethod('of', function of(/* ...items */) {
var index = 0;
var length = arguments.length;
var result = new (aTypedArrayConstructor(this))(length);
while (length > index) result[index] = arguments[index++];
return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
core-js-3.8.2/packages/core-js/modules/es.typed-array.reduce-right.js 0000664 0000000 0000000 00000001142 13774351224 0025452 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $reduceRight = require('../internals/array-reduce').right;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.reduceRicht` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright
exportTypedArrayMethod('reduceRight', function reduceRight(callbackfn /* , initialValue */) {
return $reduceRight(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.reduce.js 0000664 0000000 0000000 00000001103 13774351224 0024334 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $reduce = require('../internals/array-reduce').left;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.reduce` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce
exportTypedArrayMethod('reduce', function reduce(callbackfn /* , initialValue */) {
return $reduce(aTypedArray(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.reverse.js 0000664 0000000 0000000 00000001222 13774351224 0024542 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var floor = Math.floor;
// `%TypedArray%.prototype.reverse` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse
exportTypedArrayMethod('reverse', function reverse() {
var that = this;
var length = aTypedArray(that).length;
var middle = floor(length / 2);
var index = 0;
var value;
while (index < middle) {
value = that[index];
that[index++] = that[--length];
that[length] = value;
} return that;
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.set.js 0000664 0000000 0000000 00000002001 13774351224 0023656 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var toLength = require('../internals/to-length');
var toOffset = require('../internals/to-offset');
var toObject = require('../internals/to-object');
var fails = require('../internals/fails');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var FORCED = fails(function () {
// eslint-disable-next-line no-undef
new Int8Array(1).set({});
});
// `%TypedArray%.prototype.set` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set
exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
aTypedArray(this);
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
var length = this.length;
var src = toObject(arrayLike);
var len = toLength(src.length);
var index = 0;
if (len + offset > length) throw RangeError('Wrong length');
while (index < len) this[offset + index] = src[index++];
}, FORCED);
core-js-3.8.2/packages/core-js/modules/es.typed-array.slice.js 0000664 0000000 0000000 00000001734 13774351224 0024176 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var speciesConstructor = require('../internals/species-constructor');
var fails = require('../internals/fails');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $slice = [].slice;
var FORCED = fails(function () {
// eslint-disable-next-line no-undef
new Int8Array(1).slice();
});
// `%TypedArray%.prototype.slice` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice
exportTypedArrayMethod('slice', function slice(start, end) {
var list = $slice.call(aTypedArray(this), start, end);
var C = speciesConstructor(this, this.constructor);
var index = 0;
var length = list.length;
var result = new (aTypedArrayConstructor(C))(length);
while (length > index) result[index] = list[index++];
return result;
}, FORCED);
core-js-3.8.2/packages/core-js/modules/es.typed-array.some.js 0000664 0000000 0000000 00000001043 13774351224 0024033 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $some = require('../internals/array-iteration').some;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.some` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.some
exportTypedArrayMethod('some', function some(callbackfn /* , thisArg */) {
return $some(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.sort.js 0000664 0000000 0000000 00000000700 13774351224 0024056 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $sort = [].sort;
// `%TypedArray%.prototype.sort` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
exportTypedArrayMethod('sort', function sort(comparefn) {
return $sort.call(aTypedArray(this), comparefn);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.subarray.js 0000664 0000000 0000000 00000001577 13774351224 0024734 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var toLength = require('../internals/to-length');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var speciesConstructor = require('../internals/species-constructor');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.subarray` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray
exportTypedArrayMethod('subarray', function subarray(begin, end) {
var O = aTypedArray(this);
var length = O.length;
var beginIndex = toAbsoluteIndex(begin, length);
return new (speciesConstructor(O, O.constructor))(
O.buffer,
O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT,
toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex)
);
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.to-locale-string.js 0000664 0000000 0000000 00000002031 13774351224 0026251 0 ustar 00root root 0000000 0000000 'use strict';
var global = require('../internals/global');
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var fails = require('../internals/fails');
var Int8Array = global.Int8Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var $toLocaleString = [].toLocaleString;
var $slice = [].slice;
// iOS Safari 6.x fails here
var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
$toLocaleString.call(new Int8Array(1));
});
var FORCED = fails(function () {
return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
}) || !fails(function () {
Int8Array.prototype.toLocaleString.call([1, 2]);
});
// `%TypedArray%.prototype.toLocaleString` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
exportTypedArrayMethod('toLocaleString', function toLocaleString() {
return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
}, FORCED);
core-js-3.8.2/packages/core-js/modules/es.typed-array.to-string.js 0000664 0000000 0000000 00000001363 13774351224 0025023 0 ustar 00root root 0000000 0000000 'use strict';
var exportTypedArrayMethod = require('../internals/array-buffer-view-core').exportTypedArrayMethod;
var fails = require('../internals/fails');
var global = require('../internals/global');
var Uint8Array = global.Uint8Array;
var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};
var arrayToString = [].toString;
var arrayJoin = [].join;
if (fails(function () { arrayToString.call({}); })) {
arrayToString = function toString() {
return arrayJoin.call(this);
};
}
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString;
// `%TypedArray%.prototype.toString` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD);
core-js-3.8.2/packages/core-js/modules/es.typed-array.uint16-array.js 0000664 0000000 0000000 00000000520 13774351224 0025331 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Uint16Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Uint16', function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.uint32-array.js 0000664 0000000 0000000 00000000520 13774351224 0025327 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Uint32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Uint32', function (init) {
return function Uint32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.uint8-array.js 0000664 0000000 0000000 00000000515 13774351224 0025256 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Uint8Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Uint8', function (init) {
return function Uint8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
core-js-3.8.2/packages/core-js/modules/es.typed-array.uint8-clamped-array.js 0000664 0000000 0000000 00000000541 13774351224 0026660 0 ustar 00root root 0000000 0000000 var createTypedArrayConstructor = require('../internals/typed-array-constructor');
// `Uint8ClampedArray` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Uint8', function (init) {
return function Uint8ClampedArray(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
}, true);
core-js-3.8.2/packages/core-js/modules/es.weak-map.js 0000664 0000000 0000000 00000005365 13774351224 0022345 0 ustar 00root root 0000000 0000000 'use strict';
var global = require('../internals/global');
var redefineAll = require('../internals/redefine-all');
var InternalMetadataModule = require('../internals/internal-metadata');
var collection = require('../internals/collection');
var collectionWeak = require('../internals/collection-weak');
var isObject = require('../internals/is-object');
var enforceIternalState = require('../internals/internal-state').enforce;
var NATIVE_WEAK_MAP = require('../internals/native-weak-map');
var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;
var isExtensible = Object.isExtensible;
var InternalWeakMap;
var wrapper = function (init) {
return function WeakMap() {
return init(this, arguments.length ? arguments[0] : undefined);
};
};
// `WeakMap` constructor
// https://tc39.es/ecma262/#sec-weakmap-constructor
var $WeakMap = module.exports = collection('WeakMap', wrapper, collectionWeak);
// IE11 WeakMap frozen keys fix
// We can't use feature detection because it crash some old IE builds
// https://github.com/zloirock/core-js/issues/485
if (NATIVE_WEAK_MAP && IS_IE11) {
InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);
InternalMetadataModule.REQUIRED = true;
var WeakMapPrototype = $WeakMap.prototype;
var nativeDelete = WeakMapPrototype['delete'];
var nativeHas = WeakMapPrototype.has;
var nativeGet = WeakMapPrototype.get;
var nativeSet = WeakMapPrototype.set;
redefineAll(WeakMapPrototype, {
'delete': function (key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceIternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeDelete.call(this, key) || state.frozen['delete'](key);
} return nativeDelete.call(this, key);
},
has: function has(key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceIternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeHas.call(this, key) || state.frozen.has(key);
} return nativeHas.call(this, key);
},
get: function get(key) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceIternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
return nativeHas.call(this, key) ? nativeGet.call(this, key) : state.frozen.get(key);
} return nativeGet.call(this, key);
},
set: function set(key, value) {
if (isObject(key) && !isExtensible(key)) {
var state = enforceIternalState(this);
if (!state.frozen) state.frozen = new InternalWeakMap();
nativeHas.call(this, key) ? nativeSet.call(this, key, value) : state.frozen.set(key, value);
} else nativeSet.call(this, key, value);
return this;
}
});
}
core-js-3.8.2/packages/core-js/modules/es.weak-set.js 0000664 0000000 0000000 00000000554 13774351224 0022356 0 ustar 00root root 0000000 0000000 'use strict';
var collection = require('../internals/collection');
var collectionWeak = require('../internals/collection-weak');
// `WeakSet` constructor
// https://tc39.es/ecma262/#sec-weakset-constructor
collection('WeakSet', function (init) {
return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionWeak);
core-js-3.8.2/packages/core-js/modules/esnext.aggregate-error.js 0000664 0000000 0000000 00000000102 13774351224 0024577 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.aggregate-error');
core-js-3.8.2/packages/core-js/modules/esnext.array.at.js 0000664 0000000 0000000 00000001261 13774351224 0023252 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var toInteger = require('../internals/to-integer');
var addToUnscopables = require('../internals/add-to-unscopables');
// `Array.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
$({ target: 'Array', proto: true }, {
at: function at(index) {
var O = toObject(this);
var len = toLength(O.length);
var relativeIndex = toInteger(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : O[k];
}
});
addToUnscopables('at');
core-js-3.8.2/packages/core-js/modules/esnext.array.filter-out.js 0000664 0000000 0000000 00000000776 13774351224 0024752 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var $filterOut = require('../internals/array-iteration').filterOut;
var addToUnscopables = require('../internals/add-to-unscopables');
// `Array.prototype.filterOut` method
// https://github.com/tc39/proposal-array-filtering
$({ target: 'Array', proto: true }, {
filterOut: function filterOut(callbackfn /* , thisArg */) {
return $filterOut(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
addToUnscopables('filterOut');
core-js-3.8.2/packages/core-js/modules/esnext.array.is-template-object.js 0000664 0000000 0000000 00000001610 13774351224 0026334 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var isArray = require('../internals/is-array');
var isFrozen = Object.isFrozen;
var isFrozenStringArray = function (array, allowUndefined) {
if (!isFrozen || !isArray(array) || !isFrozen(array)) return false;
var index = 0;
var length = array.length;
var element;
while (index < length) {
element = array[index++];
if (!(typeof element === 'string' || (allowUndefined && typeof element === 'undefined'))) {
return false;
}
} return length !== 0;
};
// `Array.isTemplateObject` method
// https://github.com/tc39/proposal-array-is-template-object
$({ target: 'Array', stat: true }, {
isTemplateObject: function isTemplateObject(value) {
if (!isFrozenStringArray(value, true)) return false;
var raw = value.raw;
if (raw.length !== value.length || !isFrozenStringArray(raw, false)) return false;
return true;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.array.last-index.js 0000664 0000000 0000000 00000001271 13774351224 0024717 0 ustar 00root root 0000000 0000000 'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var addToUnscopables = require('../internals/add-to-unscopables');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var defineProperty = require('../internals/object-define-property').f;
// `Array.prototype.lastIndex` getter
// https://github.com/keithamus/proposal-array-last
if (DESCRIPTORS && !('lastIndex' in [])) {
defineProperty(Array.prototype, 'lastIndex', {
configurable: true,
get: function lastIndex() {
var O = toObject(this);
var len = toLength(O.length);
return len == 0 ? 0 : len - 1;
}
});
addToUnscopables('lastIndex');
}
core-js-3.8.2/packages/core-js/modules/esnext.array.last-item.js 0000664 0000000 0000000 00000001537 13774351224 0024553 0 ustar 00root root 0000000 0000000 'use strict';
var DESCRIPTORS = require('../internals/descriptors');
var addToUnscopables = require('../internals/add-to-unscopables');
var toObject = require('../internals/to-object');
var toLength = require('../internals/to-length');
var defineProperty = require('../internals/object-define-property').f;
// `Array.prototype.lastIndex` accessor
// https://github.com/keithamus/proposal-array-last
if (DESCRIPTORS && !('lastItem' in [])) {
defineProperty(Array.prototype, 'lastItem', {
configurable: true,
get: function lastItem() {
var O = toObject(this);
var len = toLength(O.length);
return len == 0 ? undefined : O[len - 1];
},
set: function lastItem(value) {
var O = toObject(this);
var len = toLength(O.length);
return O[len == 0 ? 0 : len - 1] = value;
}
});
addToUnscopables('lastItem');
}
core-js-3.8.2/packages/core-js/modules/esnext.array.unique-by.js 0000664 0000000 0000000 00000002360 13774351224 0024565 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toLength = require('../internals/to-length');
var toObject = require('../internals/to-object');
var getBuiltIn = require('../internals/get-built-in');
var arraySpeciesCreate = require('../internals/array-species-create');
var addToUnscopables = require('../internals/add-to-unscopables');
var push = [].push;
// `Array.prototype.uniqueBy` method
// https://github.com/tc39/proposal-array-unique
$({ target: 'Array', proto: true }, {
uniqueBy: function uniqueBy(resolver) {
var that = toObject(this);
var length = toLength(that.length);
var result = arraySpeciesCreate(that, 0);
var Map = getBuiltIn('Map');
var map = new Map();
var resolverFunction, index, item, key;
if (typeof resolver == 'function') resolverFunction = resolver;
else if (resolver == null) resolverFunction = function (value) {
return value;
};
else throw new TypeError('Incorrect resolver!');
for (index = 0; index < length; index++) {
item = that[index];
key = resolverFunction(item);
if (!map.has(key)) map.set(key, item);
}
map.forEach(function (value) {
push.call(result, value);
});
return result;
}
});
addToUnscopables('uniqueBy');
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.as-indexed-pairs.js 0000664 0000000 0000000 00000001521 13774351224 0027630 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var state = this;
var iterator = state.iterator;
return Promise.resolve(anObject(state.next.call(iterator, arg))).then(function (step) {
if (anObject(step).done) {
state.done = true;
return { done: true, value: undefined };
}
return { done: false, value: [state.index++, step.value] };
});
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
asIndexedPairs: function asIndexedPairs() {
return new AsyncIteratorProxy({
iterator: anObject(this),
index: 0
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.constructor.js 0000664 0000000 0000000 00000002152 13774351224 0027061 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anInstance = require('../internals/an-instance');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var has = require('../internals/has');
var wellKnownSymbol = require('../internals/well-known-symbol');
var AsyncIteratorPrototype = require('../internals/async-iterator-prototype');
var IS_PURE = require('../internals/is-pure');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var AsyncIteratorConstructor = function AsyncIterator() {
anInstance(this, AsyncIteratorConstructor);
};
AsyncIteratorConstructor.prototype = AsyncIteratorPrototype;
if (!has(AsyncIteratorPrototype, TO_STRING_TAG)) {
createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator');
}
if (!has(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) {
createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor);
}
$({ global: true, forced: IS_PURE }, {
AsyncIterator: AsyncIteratorConstructor
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.drop.js 0000664 0000000 0000000 00000002422 13774351224 0025440 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var toPositiveInteger = require('../internals/to-positive-integer');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var state = this;
return new Promise(function (resolve, reject) {
var loop = function () {
try {
Promise.resolve(
anObject(state.next.call(state.iterator, state.remaining ? undefined : arg))
).then(function (step) {
try {
if (anObject(step).done) {
state.done = true;
resolve({ done: true, value: undefined });
} else if (state.remaining) {
state.remaining--;
loop();
} else resolve({ done: false, value: step.value });
} catch (err) { reject(err); }
}, reject);
} catch (error) { reject(error); }
};
loop();
});
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
drop: function drop(limit) {
return new AsyncIteratorProxy({
iterator: anObject(this),
remaining: toPositiveInteger(limit)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.every.js 0000664 0000000 0000000 00000000456 13774351224 0025633 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $every = require('../internals/async-iterator-iteration').every;
$({ target: 'AsyncIterator', proto: true, real: true }, {
every: function every(fn) {
return $every(this, fn);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.filter.js 0000664 0000000 0000000 00000002511 13774351224 0025760 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var state = this;
var filterer = state.filterer;
return new Promise(function (resolve, reject) {
var loop = function () {
try {
Promise.resolve(anObject(state.next.call(state.iterator, arg))).then(function (step) {
try {
if (anObject(step).done) {
state.done = true;
resolve({ done: true, value: undefined });
} else {
var value = step.value;
Promise.resolve(filterer(value)).then(function (selected) {
selected ? resolve({ done: false, value: value }) : loop();
}, reject);
}
} catch (err) { reject(err); }
}, reject);
} catch (error) { reject(error); }
};
loop();
});
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
filter: function filter(filterer) {
return new AsyncIteratorProxy({
iterator: anObject(this),
filterer: aFunction(filterer)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.find.js 0000664 0000000 0000000 00000000451 13774351224 0025414 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $find = require('../internals/async-iterator-iteration').find;
$({ target: 'AsyncIterator', proto: true, real: true }, {
find: function find(fn) {
return $find(this, fn);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.flat-map.js 0000664 0000000 0000000 00000004651 13774351224 0026203 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var getAsyncIteratorMethod = require('../internals/get-async-iterator-method');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var state = this;
var mapper = state.mapper;
var innerIterator, iteratorMethod;
return new Promise(function (resolve, reject) {
var outerLoop = function () {
try {
Promise.resolve(anObject(state.next.call(state.iterator, arg))).then(function (step) {
try {
if (anObject(step).done) {
state.done = true;
resolve({ done: true, value: undefined });
} else {
Promise.resolve(mapper(step.value)).then(function (mapped) {
try {
iteratorMethod = getAsyncIteratorMethod(mapped);
if (iteratorMethod !== undefined) {
state.innerIterator = innerIterator = anObject(iteratorMethod.call(mapped));
state.innerNext = aFunction(innerIterator.next);
return innerLoop();
} reject(TypeError('.flatMap callback should return an iterable object'));
} catch (error2) { reject(error2); }
}, reject);
}
} catch (error1) { reject(error1); }
}, reject);
} catch (error) { reject(error); }
};
var innerLoop = function () {
if (innerIterator = state.innerIterator) {
try {
Promise.resolve(anObject(state.innerNext.call(innerIterator))).then(function (result) {
try {
if (anObject(result).done) {
state.innerIterator = state.innerNext = null;
outerLoop();
} else resolve({ done: false, value: result.value });
} catch (error1) { reject(error1); }
}, reject);
} catch (error) { reject(error); }
} else outerLoop();
};
innerLoop();
});
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
flatMap: function flatMap(mapper) {
return new AsyncIteratorProxy({
iterator: anObject(this),
mapper: aFunction(mapper),
innerIterator: null,
innerNext: null
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.for-each.js 0000664 0000000 0000000 00000000470 13774351224 0026161 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $forEach = require('../internals/async-iterator-iteration').forEach;
$({ target: 'AsyncIterator', proto: true, real: true }, {
forEach: function forEach(fn) {
return $forEach(this, fn);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.from.js 0000664 0000000 0000000 00000002055 13774351224 0025441 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var path = require('../internals/path');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var toObject = require('../internals/to-object');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var getAsyncIteratorMethod = require('../internals/get-async-iterator-method');
var AsyncIterator = path.AsyncIterator;
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg) {
return anObject(this.next.call(this.iterator, arg));
}, true);
$({ target: 'AsyncIterator', stat: true }, {
from: function from(O) {
var object = toObject(O);
var usingIterator = getAsyncIteratorMethod(object);
var iterator;
if (usingIterator != null) {
iterator = aFunction(usingIterator).call(object);
if (iterator instanceof AsyncIterator) return iterator;
} else {
iterator = object;
} return new AsyncIteratorProxy({
iterator: iterator
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.map.js 0000664 0000000 0000000 00000001703 13774351224 0025252 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var state = this;
var mapper = state.mapper;
return Promise.resolve(anObject(state.next.call(state.iterator, arg))).then(function (step) {
if (anObject(step).done) {
state.done = true;
return { done: true, value: undefined };
}
return Promise.resolve(mapper(step.value)).then(function (value) {
return { done: false, value: value };
});
});
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
map: function map(mapper) {
return new AsyncIteratorProxy({
iterator: anObject(this),
mapper: aFunction(mapper)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.reduce.js 0000664 0000000 0000000 00000003043 13774351224 0025743 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var getBuiltIn = require('../internals/get-built-in');
var Promise = getBuiltIn('Promise');
$({ target: 'AsyncIterator', proto: true, real: true }, {
reduce: function reduce(reducer /* , initialValue */) {
var iterator = anObject(this);
var next = aFunction(iterator.next);
var noInitial = arguments.length < 2;
var accumulator = noInitial ? undefined : arguments[1];
aFunction(reducer);
return new Promise(function (resolve, reject) {
var loop = function () {
try {
Promise.resolve(anObject(next.call(iterator))).then(function (step) {
try {
if (anObject(step).done) {
noInitial ? reject(TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator);
} else {
var value = step.value;
if (noInitial) {
noInitial = false;
accumulator = value;
loop();
} else {
Promise.resolve(reducer(accumulator, value)).then(function (result) {
accumulator = result;
loop();
}, reject);
}
}
} catch (err) { reject(err); }
}, reject);
} catch (error) { reject(error); }
};
loop();
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.some.js 0000664 0000000 0000000 00000000451 13774351224 0025437 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $some = require('../internals/async-iterator-iteration').some;
$({ target: 'AsyncIterator', proto: true, real: true }, {
some: function some(fn) {
return $some(this, fn);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.take.js 0000664 0000000 0000000 00000001771 13774351224 0025426 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var toPositiveInteger = require('../internals/to-positive-integer');
var createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');
var AsyncIteratorProxy = createAsyncIteratorProxy(function (arg, Promise) {
var iterator = this.iterator;
var returnMethod, result;
if (!this.remaining--) {
result = { done: true, value: undefined };
this.done = true;
returnMethod = iterator['return'];
if (returnMethod !== undefined) {
return Promise.resolve(returnMethod.call(iterator)).then(function () {
return result;
});
}
return result;
} return this.next.call(iterator, arg);
});
$({ target: 'AsyncIterator', proto: true, real: true }, {
take: function take(limit) {
return new AsyncIteratorProxy({
iterator: anObject(this),
remaining: toPositiveInteger(limit)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.async-iterator.to-array.js 0000664 0000000 0000000 00000000462 13774351224 0026234 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $toArray = require('../internals/async-iterator-iteration').toArray;
$({ target: 'AsyncIterator', proto: true, real: true }, {
toArray: function toArray() {
return $toArray(this);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.bigint.range.js 0000664 0000000 0000000 00000000705 13774351224 0024102 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var RangeIterator = require('../internals/range-iterator');
// `BigInt.range` method
// https://github.com/tc39/proposal-Number.range
if (typeof BigInt == 'function') {
$({ target: 'BigInt', stat: true }, {
range: function range(start, end, option) {
// eslint-disable-next-line no-undef
return new RangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));
}
});
}
core-js-3.8.2/packages/core-js/modules/esnext.composite-key.js 0000664 0000000 0000000 00000001104 13774351224 0024315 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getCompositeKeyNode = require('../internals/composite-key');
var getBuiltIn = require('../internals/get-built-in');
var create = require('../internals/object-create');
var initializer = function () {
var freeze = getBuiltIn('Object', 'freeze');
return freeze ? freeze(create(null)) : create(null);
};
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
$({ global: true }, {
compositeKey: function compositeKey() {
return getCompositeKeyNode.apply(Object, arguments).get('object', initializer);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.composite-symbol.js 0000664 0000000 0000000 00000001011 13774351224 0025027 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var getCompositeKeyNode = require('../internals/composite-key');
var getBuiltIn = require('../internals/get-built-in');
// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey
$({ global: true }, {
compositeSymbol: function compositeSymbol() {
if (arguments.length === 1 && typeof arguments[0] === 'string') return getBuiltIn('Symbol')['for'](arguments[0]);
return getCompositeKeyNode.apply(null, arguments).get('symbol', getBuiltIn('Symbol'));
}
});
core-js-3.8.2/packages/core-js/modules/esnext.global-this.js 0000664 0000000 0000000 00000000076 13774351224 0023741 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.global-this');
core-js-3.8.2/packages/core-js/modules/esnext.iterator.as-indexed-pairs.js 0000664 0000000 0000000 00000001175 13774351224 0026522 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var IteratorProxy = createIteratorProxy(function (arg) {
var result = anObject(this.next.call(this.iterator, arg));
var done = this.done = !!result.done;
if (!done) return [this.index++, result.value];
});
$({ target: 'Iterator', proto: true, real: true }, {
asIndexedPairs: function asIndexedPairs() {
return new IteratorProxy({
iterator: anObject(this),
index: 0
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.constructor.js 0000664 0000000 0000000 00000003171 13774351224 0025750 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var global = require('../internals/global');
var anInstance = require('../internals/an-instance');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var fails = require('../internals/fails');
var has = require('../internals/has');
var wellKnownSymbol = require('../internals/well-known-symbol');
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;
var IS_PURE = require('../internals/is-pure');
var ITERATOR = wellKnownSymbol('iterator');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var NativeIterator = global.Iterator;
// FF56- have non-standard global helper `Iterator`
var FORCED = IS_PURE
|| typeof NativeIterator != 'function'
|| NativeIterator.prototype !== IteratorPrototype
// FF44- non-standard `Iterator` passes previous tests
|| !fails(function () { NativeIterator({}); });
var IteratorConstructor = function Iterator() {
anInstance(this, IteratorConstructor);
};
if (IS_PURE) {
IteratorPrototype = {};
createNonEnumerableProperty(IteratorPrototype, ITERATOR, function () {
return this;
});
}
if (!has(IteratorPrototype, TO_STRING_TAG)) {
createNonEnumerableProperty(IteratorPrototype, TO_STRING_TAG, 'Iterator');
}
if (FORCED || !has(IteratorPrototype, 'constructor') || IteratorPrototype.constructor === Object) {
createNonEnumerableProperty(IteratorPrototype, 'constructor', IteratorConstructor);
}
IteratorConstructor.prototype = IteratorPrototype;
$({ global: true, forced: FORCED }, {
Iterator: IteratorConstructor
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.drop.js 0000664 0000000 0000000 00000001625 13774351224 0024331 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var toPositiveInteger = require('../internals/to-positive-integer');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var IteratorProxy = createIteratorProxy(function (arg) {
var iterator = this.iterator;
var next = this.next;
var result, done;
while (this.remaining) {
this.remaining--;
result = anObject(next.call(iterator));
done = this.done = !!result.done;
if (done) return;
}
result = anObject(next.call(iterator, arg));
done = this.done = !!result.done;
if (!done) return result.value;
});
$({ target: 'Iterator', proto: true, real: true }, {
drop: function drop(limit) {
return new IteratorProxy({
iterator: anObject(this),
remaining: toPositiveInteger(limit)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.every.js 0000664 0000000 0000000 00000001025 13774351224 0024511 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
$({ target: 'Iterator', proto: true, real: true }, {
every: function every(fn) {
anObject(this);
aFunction(fn);
return !iterate(this, function (value, stop) {
if (!fn(value)) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.filter.js 0000664 0000000 0000000 00000001742 13774351224 0024652 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');
var IteratorProxy = createIteratorProxy(function (arg) {
var iterator = this.iterator;
var filterer = this.filterer;
var next = this.next;
var result, done, value;
while (true) {
result = anObject(next.call(iterator, arg));
done = this.done = !!result.done;
if (done) return;
value = result.value;
if (callWithSafeIterationClosing(iterator, filterer, value)) return value;
}
});
$({ target: 'Iterator', proto: true, real: true }, {
filter: function filter(filterer) {
return new IteratorProxy({
iterator: anObject(this),
filterer: aFunction(filterer)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.find.js 0000664 0000000 0000000 00000001025 13774351224 0024277 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
$({ target: 'Iterator', proto: true, real: true }, {
find: function find(fn) {
anObject(this);
aFunction(fn);
return iterate(this, function (value, stop) {
if (fn(value)) return stop(value);
}, { IS_ITERATOR: true, INTERRUPTED: true }).result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.flat-map.js 0000664 0000000 0000000 00000003131 13774351224 0025060 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var getIteratorMethod = require('../internals/get-iterator-method');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var iteratorClose = require('../internals/iterator-close');
var IteratorProxy = createIteratorProxy(function (arg) {
var iterator = this.iterator;
var mapper = this.mapper;
var result, mapped, iteratorMethod, innerIterator;
while (true) {
try {
if (innerIterator = this.innerIterator) {
result = anObject(this.innerNext.call(innerIterator));
if (!result.done) return result.value;
this.innerIterator = this.innerNext = null;
}
result = anObject(this.next.call(iterator, arg));
if (this.done = !!result.done) return;
mapped = mapper(result.value);
iteratorMethod = getIteratorMethod(mapped);
if (iteratorMethod === undefined) {
throw TypeError('.flatMap callback should return an iterable object');
}
this.innerIterator = innerIterator = anObject(iteratorMethod.call(mapped));
this.innerNext = aFunction(innerIterator.next);
} catch (error) {
iteratorClose(iterator);
throw error;
}
}
});
$({ target: 'Iterator', proto: true, real: true }, {
flatMap: function flatMap(mapper) {
return new IteratorProxy({
iterator: anObject(this),
mapper: aFunction(mapper),
innerIterator: null,
innerNext: null
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.for-each.js 0000664 0000000 0000000 00000000544 13774351224 0025050 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var anObject = require('../internals/an-object');
$({ target: 'Iterator', proto: true, real: true }, {
forEach: function forEach(fn) {
iterate(anObject(this), fn, { IS_ITERATOR: true });
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.from.js 0000664 0000000 0000000 00000002077 13774351224 0024332 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var path = require('../internals/path');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var toObject = require('../internals/to-object');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var getIteratorMethod = require('../internals/get-iterator-method');
var Iterator = path.Iterator;
var IteratorProxy = createIteratorProxy(function (arg) {
var result = anObject(this.next.call(this.iterator, arg));
var done = this.done = !!result.done;
if (!done) return result.value;
}, true);
$({ target: 'Iterator', stat: true }, {
from: function from(O) {
var object = toObject(O);
var usingIterator = getIteratorMethod(object);
var iterator;
if (usingIterator != null) {
iterator = aFunction(usingIterator).call(object);
if (iterator instanceof Iterator) return iterator;
} else {
iterator = object;
} return new IteratorProxy({
iterator: iterator
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.map.js 0000664 0000000 0000000 00000001517 13774351224 0024142 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');
var IteratorProxy = createIteratorProxy(function (arg) {
var iterator = this.iterator;
var result = anObject(this.next.call(iterator, arg));
var done = this.done = !!result.done;
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, result.value);
});
$({ target: 'Iterator', proto: true, real: true }, {
map: function map(mapper) {
return new IteratorProxy({
iterator: anObject(this),
mapper: aFunction(mapper)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.reduce.js 0000664 0000000 0000000 00000001525 13774351224 0024633 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
$({ target: 'Iterator', proto: true, real: true }, {
reduce: function reduce(reducer /* , initialValue */) {
anObject(this);
aFunction(reducer);
var noInitial = arguments.length < 2;
var accumulator = noInitial ? undefined : arguments[1];
iterate(this, function (value) {
if (noInitial) {
noInitial = false;
accumulator = value;
} else {
accumulator = reducer(accumulator, value);
}
}, { IS_ITERATOR: true });
if (noInitial) throw TypeError('Reduce of empty iterator with no initial value');
return accumulator;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.some.js 0000664 0000000 0000000 00000001021 13774351224 0024316 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
$({ target: 'Iterator', proto: true, real: true }, {
some: function some(fn) {
anObject(this);
aFunction(fn);
return iterate(this, function (value, stop) {
if (fn(value)) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.take.js 0000664 0000000 0000000 00000001556 13774351224 0024314 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var toPositiveInteger = require('../internals/to-positive-integer');
var createIteratorProxy = require('../internals/iterator-create-proxy');
var iteratorClose = require('../internals/iterator-close');
var IteratorProxy = createIteratorProxy(function (arg) {
var iterator = this.iterator;
if (!this.remaining--) {
this.done = true;
return iteratorClose(iterator);
}
var result = anObject(this.next.call(iterator, arg));
var done = this.done = !!result.done;
if (!done) return result.value;
});
$({ target: 'Iterator', proto: true, real: true }, {
take: function take(limit) {
return new IteratorProxy({
iterator: anObject(this),
remaining: toPositiveInteger(limit)
});
}
});
core-js-3.8.2/packages/core-js/modules/esnext.iterator.to-array.js 0000664 0000000 0000000 00000000657 13774351224 0025127 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var anObject = require('../internals/an-object');
var push = [].push;
$({ target: 'Iterator', proto: true, real: true }, {
toArray: function toArray() {
var result = [];
iterate(anObject(this), push, { that: result, IS_ITERATOR: true });
return result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.delete-all.js 0000664 0000000 0000000 00000000677 13774351224 0024327 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionDeleteAll = require('../internals/collection-delete-all');
// `Map.prototype.deleteAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
deleteAll: function deleteAll(/* ...elements */) {
return collectionDeleteAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.emplace.js 0000664 0000000 0000000 00000000506 13774351224 0023714 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $emplace = require('../internals/map-emplace');
// `Map.prototype.emplace` method
// https://github.com/thumbsupep/proposal-upsert
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
emplace: $emplace
});
core-js-3.8.2/packages/core-js/modules/esnext.map.every.js 0000664 0000000 0000000 00000001574 13774351224 0023446 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.every` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
every: function every(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return !iterate(iterator, function (key, value, stop) {
if (!boundFunction(value, key, map)) return stop();
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.filter.js 0000664 0000000 0000000 00000002230 13774351224 0023567 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.filter` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
filter: function filter(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);
iterate(iterator, function (key, value) {
if (boundFunction(value, key, map)) setter.call(newMap, key, value);
}, { AS_ENTRIES: true, IS_ITERATOR: true });
return newMap;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.find-key.js 0000664 0000000 0000000 00000001602 13774351224 0024012 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.findKey` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
findKey: function findKey(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return iterate(iterator, function (key, value, stop) {
if (boundFunction(value, key, map)) return stop(key);
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.find.js 0000664 0000000 0000000 00000001573 13774351224 0023233 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.find` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
find: function find(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return iterate(iterator, function (key, value, stop) {
if (boundFunction(value, key, map)) return stop(value);
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.from.js 0000664 0000000 0000000 00000000345 13774351224 0023252 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var from = require('../internals/collection-from');
// `Map.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
$({ target: 'Map', stat: true }, {
from: from
});
core-js-3.8.2/packages/core-js/modules/esnext.map.group-by.js 0000664 0000000 0000000 00000001363 13774351224 0024054 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
// `Map.groupBy` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', stat: true }, {
groupBy: function groupBy(iterable, keyDerivative) {
var newMap = new this();
aFunction(keyDerivative);
var has = aFunction(newMap.has);
var get = aFunction(newMap.get);
var set = aFunction(newMap.set);
iterate(iterable, function (element) {
var derivedKey = keyDerivative(element);
if (!has.call(newMap, derivedKey)) set.call(newMap, derivedKey, [element]);
else get.call(newMap, derivedKey).push(element);
});
return newMap;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.includes.js 0000664 0000000 0000000 00000001360 13774351224 0024113 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var getMapIterator = require('../internals/get-map-iterator');
var sameValueZero = require('../internals/same-value-zero');
var iterate = require('../internals/iterate');
// `Map.prototype.includes` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
includes: function includes(searchElement) {
return iterate(getMapIterator(anObject(this)), function (key, value, stop) {
if (sameValueZero(value, searchElement)) return stop();
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.key-by.js 0000664 0000000 0000000 00000001052 13774351224 0023503 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var iterate = require('../internals/iterate');
var aFunction = require('../internals/a-function');
// `Map.keyBy` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', stat: true }, {
keyBy: function keyBy(iterable, keyDerivative) {
var newMap = new this();
aFunction(keyDerivative);
var setter = aFunction(newMap.set);
iterate(iterable, function (element) {
setter.call(newMap, keyDerivative(element), element);
});
return newMap;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.key-of.js 0000664 0000000 0000000 00000001243 13774351224 0023477 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.includes` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
keyOf: function keyOf(searchElement) {
return iterate(getMapIterator(anObject(this)), function (key, value, stop) {
if (value === searchElement) return stop(key);
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.map-keys.js 0000664 0000000 0000000 00000002222 13774351224 0024031 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.mapKeys` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
mapKeys: function mapKeys(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);
iterate(iterator, function (key, value) {
setter.call(newMap, boundFunction(value, key, map), value);
}, { AS_ENTRIES: true, IS_ITERATOR: true });
return newMap;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.map-values.js 0000664 0000000 0000000 00000002226 13774351224 0024361 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.mapValues` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
mapValues: function mapValues(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();
var setter = aFunction(newMap.set);
iterate(iterator, function (key, value) {
setter.call(newMap, key, boundFunction(value, key, map));
}, { AS_ENTRIES: true, IS_ITERATOR: true });
return newMap;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.merge.js 0000664 0000000 0000000 00000001321 13774351224 0023401 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var iterate = require('../internals/iterate');
// `Map.prototype.merge` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
// eslint-disable-next-line no-unused-vars
merge: function merge(iterable /* ...iterbles */) {
var map = anObject(this);
var setter = aFunction(map.set);
var i = 0;
while (i < arguments.length) {
iterate(arguments[i++], setter, { that: map, AS_ENTRIES: true });
}
return map;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.of.js 0000664 0000000 0000000 00000000331 13774351224 0022706 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var of = require('../internals/collection-of');
// `Map.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
$({ target: 'Map', stat: true }, {
of: of
});
core-js-3.8.2/packages/core-js/modules/esnext.map.reduce.js 0000664 0000000 0000000 00000002115 13774351224 0023553 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Map.prototype.reduce` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
reduce: function reduce(callbackfn /* , initialValue */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var noInitial = arguments.length < 2;
var accumulator = noInitial ? undefined : arguments[1];
aFunction(callbackfn);
iterate(iterator, function (key, value) {
if (noInitial) {
noInitial = false;
accumulator = value;
} else {
accumulator = callbackfn(accumulator, value, key, map);
}
}, { AS_ENTRIES: true, IS_ITERATOR: true });
if (noInitial) throw TypeError('Reduce of empty map with no initial value');
return accumulator;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.some.js 0000664 0000000 0000000 00000001567 13774351224 0023261 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getMapIterator = require('../internals/get-map-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.some` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
some: function some(callbackfn /* , thisArg */) {
var map = anObject(this);
var iterator = getMapIterator(map);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return iterate(iterator, function (key, value, stop) {
if (boundFunction(value, key, map)) return stop();
}, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.update-or-insert.js 0000664 0000000 0000000 00000000630 13774351224 0025506 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $upsert = require('../internals/map-upsert');
// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)
// https://github.com/thumbsupep/proposal-upsert
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
updateOrInsert: $upsert
});
core-js-3.8.2/packages/core-js/modules/esnext.map.update.js 0000664 0000000 0000000 00000001457 13774351224 0023576 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
// `Set.prototype.update` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
update: function update(key, callback /* , thunk */) {
var map = anObject(this);
var length = arguments.length;
aFunction(callback);
var isPresentInMap = map.has(key);
if (!isPresentInMap && length < 3) {
throw TypeError('Updating absent value');
}
var value = isPresentInMap ? map.get(key) : aFunction(length > 2 ? arguments[2] : undefined)(key, map);
map.set(key, callback(value, key, map));
return map;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.map.upsert.js 0000664 0000000 0000000 00000000610 13774351224 0023624 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $upsert = require('../internals/map-upsert');
// `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`)
// https://github.com/thumbsupep/proposal-upsert
$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
upsert: $upsert
});
core-js-3.8.2/packages/core-js/modules/esnext.math.clamp.js 0000664 0000000 0000000 00000000436 13774351224 0023560 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var min = Math.min;
var max = Math.max;
// `Math.clamp` method
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
clamp: function clamp(x, lower, upper) {
return min(upper, max(lower, x));
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.deg-per-rad.js 0000664 0000000 0000000 00000000305 13774351224 0024546 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.DEG_PER_RAD` constant
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
DEG_PER_RAD: Math.PI / 180
});
core-js-3.8.2/packages/core-js/modules/esnext.math.degrees.js 0000664 0000000 0000000 00000000421 13774351224 0024074 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var RAD_PER_DEG = 180 / Math.PI;
// `Math.degrees` method
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
degrees: function degrees(radians) {
return radians * RAD_PER_DEG;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.fscale.js 0000664 0000000 0000000 00000000604 13774351224 0023716 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var scale = require('../internals/math-scale');
var fround = require('../internals/math-fround');
// `Math.fscale` method
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {
return fround(scale(x, inLow, inHigh, outLow, outHigh));
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.iaddh.js 0000664 0000000 0000000 00000000626 13774351224 0023536 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.iaddh` method
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
// TODO: Remove from `core-js@4`
$({ target: 'Math', stat: true }, {
iaddh: function iaddh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0;
var $x1 = x1 >>> 0;
var $y0 = y0 >>> 0;
return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.imulh.js 0000664 0000000 0000000 00000000777 13774351224 0023612 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.imulh` method
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
// TODO: Remove from `core-js@4`
$({ target: 'Math', stat: true }, {
imulh: function imulh(u, v) {
var UINT16 = 0xFFFF;
var $u = +u;
var $v = +v;
var u0 = $u & UINT16;
var v0 = $v & UINT16;
var u1 = $u >> 16;
var v1 = $v >> 16;
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.isubh.js 0000664 0000000 0000000 00000000625 13774351224 0023576 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.isubh` method
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
// TODO: Remove from `core-js@4`
$({ target: 'Math', stat: true }, {
isubh: function isubh(x0, x1, y0, y1) {
var $x0 = x0 >>> 0;
var $x1 = x1 >>> 0;
var $y0 = y0 >>> 0;
return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.rad-per-deg.js 0000664 0000000 0000000 00000000305 13774351224 0024546 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.RAD_PER_DEG` constant
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
RAD_PER_DEG: 180 / Math.PI
});
core-js-3.8.2/packages/core-js/modules/esnext.math.radians.js 0000664 0000000 0000000 00000000421 13774351224 0024077 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var DEG_PER_RAD = Math.PI / 180;
// `Math.radians` method
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
radians: function radians(degrees) {
return degrees * DEG_PER_RAD;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.scale.js 0000664 0000000 0000000 00000000337 13774351224 0023553 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var scale = require('../internals/math-scale');
// `Math.scale` method
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true }, {
scale: scale
});
core-js-3.8.2/packages/core-js/modules/esnext.math.seeded-prng.js 0000664 0000000 0000000 00000002703 13774351224 0024660 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var anObject = require('../internals/an-object');
var numberIsFinite = require('../internals/number-is-finite');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var InternalStateModule = require('../internals/internal-state');
var SEEDED_RANDOM = 'Seeded Random';
var SEEDED_RANDOM_GENERATOR = SEEDED_RANDOM + ' Generator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SEEDED_RANDOM_GENERATOR);
var SEED_TYPE_ERROR = 'Math.seededPRNG() argument should have a "seed" field with a finite value.';
var $SeededRandomGenerator = createIteratorConstructor(function SeededRandomGenerator(seed) {
setInternalState(this, {
type: SEEDED_RANDOM_GENERATOR,
seed: seed % 2147483647
});
}, SEEDED_RANDOM, function next() {
var state = getInternalState(this);
var seed = state.seed = (state.seed * 1103515245 + 12345) % 2147483647;
return { value: (seed & 1073741823) / 1073741823, done: false };
});
// `Math.seededPRNG` method
// https://github.com/tc39/proposal-seeded-random
// based on https://github.com/tc39/proposal-seeded-random/blob/78b8258835b57fc2100d076151ab506bc3202ae6/demo.html
$({ target: 'Math', stat: true, forced: true }, {
seededPRNG: function seededPRNG(it) {
var seed = anObject(it).seed;
if (!numberIsFinite(seed)) throw TypeError(SEED_TYPE_ERROR);
return new $SeededRandomGenerator(seed);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.signbit.js 0000664 0000000 0000000 00000000401 13774351224 0024113 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.signbit` method
// https://github.com/tc39/proposal-Math.signbit
$({ target: 'Math', stat: true }, {
signbit: function signbit(x) {
return (x = +x) == x && x == 0 ? 1 / x == -Infinity : x < 0;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.math.umulh.js 0000664 0000000 0000000 00000001003 13774351224 0023605 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// `Math.umulh` method
// https://gist.github.com/BrendanEich/4294d5c212a6d2254703
// TODO: Remove from `core-js@4`
$({ target: 'Math', stat: true }, {
umulh: function umulh(u, v) {
var UINT16 = 0xFFFF;
var $u = +u;
var $v = +v;
var u0 = $u & UINT16;
var v0 = $v & UINT16;
var u1 = $u >>> 16;
var v1 = $v >>> 16;
var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);
return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.number.from-string.js 0000664 0000000 0000000 00000002150 13774351224 0025265 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var toInteger = require('../internals/to-integer');
var parseInt = require('../internals/number-parse-int');
var INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';
var INVALID_RADIX = 'Invalid radix';
var valid = /^[\da-z]+$/;
// `Number.fromString` method
// https://github.com/tc39/proposal-number-fromstring
$({ target: 'Number', stat: true }, {
fromString: function fromString(string, radix) {
var sign = 1;
var R, mathNum;
if (typeof string != 'string') throw TypeError(INVALID_NUMBER_REPRESENTATION);
if (!string.length) throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
if (string.charAt(0) == '-') {
sign = -1;
string = string.slice(1);
if (!string.length) throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
}
R = radix === undefined ? 10 : toInteger(radix);
if (R < 2 || R > 36) throw RangeError(INVALID_RADIX);
if (!valid.test(string) || (mathNum = parseInt(string, R)).toString(R) !== string) {
throw SyntaxError(INVALID_NUMBER_REPRESENTATION);
}
return sign * mathNum;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.number.range.js 0000664 0000000 0000000 00000000533 13774351224 0024115 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var RangeIterator = require('../internals/range-iterator');
// `Number.range` method
// https://github.com/tc39/proposal-Number.range
$({ target: 'Number', stat: true }, {
range: function range(start, end, option) {
return new RangeIterator(start, end, option, 'number', 0, 1);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.object.iterate-entries.js 0000664 0000000 0000000 00000000540 13774351224 0026101 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var ObjectIterator = require('../internals/object-iterator');
// `Object.iterateEntries` method
// https://github.com/tc39/proposal-object-iteration
$({ target: 'Object', stat: true }, {
iterateEntries: function iterateEntries(object) {
return new ObjectIterator(object, 'entries');
}
});
core-js-3.8.2/packages/core-js/modules/esnext.object.iterate-keys.js 0000664 0000000 0000000 00000000524 13774351224 0025405 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var ObjectIterator = require('../internals/object-iterator');
// `Object.iterateKeys` method
// https://github.com/tc39/proposal-object-iteration
$({ target: 'Object', stat: true }, {
iterateKeys: function iterateKeys(object) {
return new ObjectIterator(object, 'keys');
}
});
core-js-3.8.2/packages/core-js/modules/esnext.object.iterate-values.js 0000664 0000000 0000000 00000000534 13774351224 0025732 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var ObjectIterator = require('../internals/object-iterator');
// `Object.iterateValues` method
// https://github.com/tc39/proposal-object-iteration
$({ target: 'Object', stat: true }, {
iterateValues: function iterateValues(object) {
return new ObjectIterator(object, 'values');
}
});
core-js-3.8.2/packages/core-js/modules/esnext.observable.js 0000664 0000000 0000000 00000015644 13774351224 0023667 0 ustar 00root root 0000000 0000000 'use strict';
// https://github.com/tc39/proposal-observable
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var setSpecies = require('../internals/set-species');
var aFunction = require('../internals/a-function');
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var anInstance = require('../internals/an-instance');
var defineProperty = require('../internals/object-define-property').f;
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefineAll = require('../internals/redefine-all');
var getIterator = require('../internals/get-iterator');
var iterate = require('../internals/iterate');
var hostReportErrors = require('../internals/host-report-errors');
var wellKnownSymbol = require('../internals/well-known-symbol');
var InternalStateModule = require('../internals/internal-state');
var OBSERVABLE = wellKnownSymbol('observable');
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var getMethod = function (fn) {
return fn == null ? undefined : aFunction(fn);
};
var cleanupSubscription = function (subscriptionState) {
var cleanup = subscriptionState.cleanup;
if (cleanup) {
subscriptionState.cleanup = undefined;
try {
cleanup();
} catch (error) {
hostReportErrors(error);
}
}
};
var subscriptionClosed = function (subscriptionState) {
return subscriptionState.observer === undefined;
};
var close = function (subscription, subscriptionState) {
if (!DESCRIPTORS) {
subscription.closed = true;
var subscriptionObserver = subscriptionState.subscriptionObserver;
if (subscriptionObserver) subscriptionObserver.closed = true;
} subscriptionState.observer = undefined;
};
var Subscription = function (observer, subscriber) {
var subscriptionState = setInternalState(this, {
cleanup: undefined,
observer: anObject(observer),
subscriptionObserver: undefined
});
var start;
if (!DESCRIPTORS) this.closed = false;
try {
if (start = getMethod(observer.start)) start.call(observer, this);
} catch (error) {
hostReportErrors(error);
}
if (subscriptionClosed(subscriptionState)) return;
var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(this);
try {
var cleanup = subscriber(subscriptionObserver);
var subscription = cleanup;
if (cleanup != null) subscriptionState.cleanup = typeof cleanup.unsubscribe === 'function'
? function () { subscription.unsubscribe(); }
: aFunction(cleanup);
} catch (error) {
subscriptionObserver.error(error);
return;
} if (subscriptionClosed(subscriptionState)) cleanupSubscription(subscriptionState);
};
Subscription.prototype = redefineAll({}, {
unsubscribe: function unsubscribe() {
var subscriptionState = getInternalState(this);
if (!subscriptionClosed(subscriptionState)) {
close(this, subscriptionState);
cleanupSubscription(subscriptionState);
}
}
});
if (DESCRIPTORS) defineProperty(Subscription.prototype, 'closed', {
configurable: true,
get: function () {
return subscriptionClosed(getInternalState(this));
}
});
var SubscriptionObserver = function (subscription) {
setInternalState(this, { subscription: subscription });
if (!DESCRIPTORS) this.closed = false;
};
SubscriptionObserver.prototype = redefineAll({}, {
next: function next(value) {
var subscriptionState = getInternalState(getInternalState(this).subscription);
if (!subscriptionClosed(subscriptionState)) {
var observer = subscriptionState.observer;
try {
var nextMethod = getMethod(observer.next);
if (nextMethod) nextMethod.call(observer, value);
} catch (error) {
hostReportErrors(error);
}
}
},
error: function error(value) {
var subscription = getInternalState(this).subscription;
var subscriptionState = getInternalState(subscription);
if (!subscriptionClosed(subscriptionState)) {
var observer = subscriptionState.observer;
close(subscription, subscriptionState);
try {
var errorMethod = getMethod(observer.error);
if (errorMethod) errorMethod.call(observer, value);
else hostReportErrors(value);
} catch (err) {
hostReportErrors(err);
} cleanupSubscription(subscriptionState);
}
},
complete: function complete() {
var subscription = getInternalState(this).subscription;
var subscriptionState = getInternalState(subscription);
if (!subscriptionClosed(subscriptionState)) {
var observer = subscriptionState.observer;
close(subscription, subscriptionState);
try {
var completeMethod = getMethod(observer.complete);
if (completeMethod) completeMethod.call(observer);
} catch (error) {
hostReportErrors(error);
} cleanupSubscription(subscriptionState);
}
}
});
if (DESCRIPTORS) defineProperty(SubscriptionObserver.prototype, 'closed', {
configurable: true,
get: function () {
return subscriptionClosed(getInternalState(getInternalState(this).subscription));
}
});
var $Observable = function Observable(subscriber) {
anInstance(this, $Observable, 'Observable');
setInternalState(this, { subscriber: aFunction(subscriber) });
};
redefineAll($Observable.prototype, {
subscribe: function subscribe(observer) {
var length = arguments.length;
return new Subscription(typeof observer === 'function' ? {
next: observer,
error: length > 1 ? arguments[1] : undefined,
complete: length > 2 ? arguments[2] : undefined
} : isObject(observer) ? observer : {}, getInternalState(this).subscriber);
}
});
redefineAll($Observable, {
from: function from(x) {
var C = typeof this === 'function' ? this : $Observable;
var observableMethod = getMethod(anObject(x)[OBSERVABLE]);
if (observableMethod) {
var observable = anObject(observableMethod.call(x));
return observable.constructor === C ? observable : new C(function (observer) {
return observable.subscribe(observer);
});
}
var iterator = getIterator(x);
return new C(function (observer) {
iterate(iterator, function (it, stop) {
observer.next(it);
if (observer.closed) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true });
observer.complete();
});
},
of: function of() {
var C = typeof this === 'function' ? this : $Observable;
var length = arguments.length;
var items = new Array(length);
var index = 0;
while (index < length) items[index] = arguments[index++];
return new C(function (observer) {
for (var i = 0; i < length; i++) {
observer.next(items[i]);
if (observer.closed) return;
} observer.complete();
});
}
});
createNonEnumerableProperty($Observable.prototype, OBSERVABLE, function () { return this; });
$({ global: true }, {
Observable: $Observable
});
setSpecies('Observable');
core-js-3.8.2/packages/core-js/modules/esnext.promise.all-settled.js 0000664 0000000 0000000 00000000111 13774351224 0025411 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.promise.all-settled.js');
core-js-3.8.2/packages/core-js/modules/esnext.promise.any.js 0000664 0000000 0000000 00000000076 13774351224 0024000 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.promise.any');
core-js-3.8.2/packages/core-js/modules/esnext.promise.try.js 0000664 0000000 0000000 00000001064 13774351224 0024025 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var newPromiseCapabilityModule = require('../internals/new-promise-capability');
var perform = require('../internals/perform');
// `Promise.try` method
// https://github.com/tc39/proposal-promise-try
$({ target: 'Promise', stat: true }, {
'try': function (callbackfn) {
var promiseCapability = newPromiseCapabilityModule.f(this);
var result = perform(callbackfn);
(result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);
return promiseCapability.promise;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.define-metadata.js 0000664 0000000 0000000 00000001236 13774351224 0026166 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
// `Reflect.defineMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) {
var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]);
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.delete-metadata.js 0000664 0000000 0000000 00000001703 13774351224 0026175 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var toMetadataKey = ReflectMetadataModule.toKey;
var getOrCreateMetadataMap = ReflectMetadataModule.getMap;
var store = ReflectMetadataModule.store;
// `Reflect.deleteMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
if (metadataMap.size) return true;
var targetMetadata = store.get(target);
targetMetadata['delete'](targetKey);
return !!targetMetadata.size || store['delete'](target);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.get-metadata-keys.js 0000664 0000000 0000000 00000002443 13774351224 0026465 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
var Set = require('../modules/es.set');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var iterate = require('../internals/iterate');
var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
var toMetadataKey = ReflectMetadataModule.toKey;
var from = function (iter) {
var result = [];
iterate(iter, result.push, { that: result });
return result;
};
var ordinaryMetadataKeys = function (O, P) {
var oKeys = ordinaryOwnMetadataKeys(O, P);
var parent = getPrototypeOf(O);
if (parent === null) return oKeys;
var pKeys = ordinaryMetadataKeys(parent, P);
return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;
};
// `Reflect.getMetadataKeys` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
return ordinaryMetadataKeys(anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.get-metadata.js 0000664 0000000 0000000 00000002040 13774351224 0025505 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryGetMetadata = function (MetadataKey, O, P) {
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);
var parent = getPrototypeOf(O);
return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;
};
// `Reflect.getMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryGetMetadata(metadataKey, anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.get-own-metadata-keys.js 0000664 0000000 0000000 00000001166 13774351224 0027267 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.getOwnMetadataKeys` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);
return ordinaryOwnMetadataKeys(anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.get-own-metadata.js 0000664 0000000 0000000 00000001201 13774351224 0026304 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.getOwnMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.has-metadata.js 0000664 0000000 0000000 00000001677 13774351224 0025520 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var getPrototypeOf = require('../internals/object-get-prototype-of');
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryHasMetadata = function (MetadataKey, O, P) {
var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) return true;
var parent = getPrototypeOf(O);
return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
};
// `Reflect.hasMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryHasMetadata(metadataKey, anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.has-own-metadata.js 0000664 0000000 0000000 00000001201 13774351224 0026300 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var ordinaryHasOwnMetadata = ReflectMetadataModule.has;
var toMetadataKey = ReflectMetadataModule.toKey;
// `Reflect.hasOwnMetadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
return ordinaryHasOwnMetadata(metadataKey, anObject(target), targetKey);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.reflect.metadata.js 0000664 0000000 0000000 00000001135 13774351224 0024734 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var ReflectMetadataModule = require('../internals/reflect-metadata');
var anObject = require('../internals/an-object');
var toMetadataKey = ReflectMetadataModule.toKey;
var ordinaryDefineOwnMetadata = ReflectMetadataModule.set;
// `Reflect.metadata` method
// https://github.com/rbuckton/reflect-metadata
$({ target: 'Reflect', stat: true }, {
metadata: function metadata(metadataKey, metadataValue) {
return function decorator(target, key) {
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key));
};
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.add-all.js 0000664 0000000 0000000 00000000655 13774351224 0023627 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionAddAll = require('../internals/collection-add-all');
// `Set.prototype.addAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
addAll: function addAll(/* ...elements */) {
return collectionAddAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.delete-all.js 0000664 0000000 0000000 00000000677 13774351224 0024345 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionDeleteAll = require('../internals/collection-delete-all');
// `Set.prototype.deleteAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
deleteAll: function deleteAll(/* ...elements */) {
return collectionDeleteAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.difference.js 0000664 0000000 0000000 00000001500 13774351224 0024411 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var speciesConstructor = require('../internals/species-constructor');
var iterate = require('../internals/iterate');
// `Set.prototype.difference` method
// https://github.com/tc39/proposal-set-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
difference: function difference(iterable) {
var set = anObject(this);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
var remover = aFunction(newSet['delete']);
iterate(iterable, function (value) {
remover.call(newSet, value);
});
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.every.js 0000664 0000000 0000000 00000001547 13774351224 0023464 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.every` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
every: function every(callbackfn /* , thisArg */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return !iterate(iterator, function (value, stop) {
if (!boundFunction(value, value, set)) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.filter.js 0000664 0000000 0000000 00000002174 13774351224 0023614 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.filter` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
filter: function filter(callbackfn /* , thisArg */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var adder = aFunction(newSet.add);
iterate(iterator, function (value) {
if (boundFunction(value, value, set)) adder.call(newSet, value);
}, { IS_ITERATOR: true });
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.find.js 0000664 0000000 0000000 00000001546 13774351224 0023251 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.find` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
find: function find(callbackfn /* , thisArg */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return iterate(iterator, function (value, stop) {
if (boundFunction(value, value, set)) return stop(value);
}, { IS_ITERATOR: true, INTERRUPTED: true }).result;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.from.js 0000664 0000000 0000000 00000000345 13774351224 0023270 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var from = require('../internals/collection-from');
// `Set.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
$({ target: 'Set', stat: true }, {
from: from
});
core-js-3.8.2/packages/core-js/modules/esnext.set.intersection.js 0000664 0000000 0000000 00000001577 13774351224 0025043 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var speciesConstructor = require('../internals/species-constructor');
var iterate = require('../internals/iterate');
// `Set.prototype.intersection` method
// https://github.com/tc39/proposal-set-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
intersection: function intersection(iterable) {
var set = anObject(this);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var hasCheck = aFunction(set.has);
var adder = aFunction(newSet.add);
iterate(iterable, function (value) {
if (hasCheck.call(set, value)) adder.call(newSet, value);
});
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.is-disjoint-from.js 0000664 0000000 0000000 00000001320 13774351224 0025514 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var iterate = require('../internals/iterate');
// `Set.prototype.isDisjointFrom` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
isDisjointFrom: function isDisjointFrom(iterable) {
var set = anObject(this);
var hasCheck = aFunction(set.has);
return !iterate(iterable, function (value, stop) {
if (hasCheck.call(set, value) === true) return stop();
}, { INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.is-subset-of.js 0000664 0000000 0000000 00000001776 13774351224 0024656 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var getIterator = require('../internals/get-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.isSubsetOf` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
isSubsetOf: function isSubsetOf(iterable) {
var iterator = getIterator(this);
var otherSet = anObject(iterable);
var hasCheck = otherSet.has;
if (typeof hasCheck != 'function') {
otherSet = new (getBuiltIn('Set'))(iterable);
hasCheck = aFunction(otherSet.has);
}
return !iterate(iterator, function (value, stop) {
if (hasCheck.call(otherSet, value) === false) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.is-superset-of.js 0000664 0000000 0000000 00000001311 13774351224 0025204 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var iterate = require('../internals/iterate');
// `Set.prototype.isSupersetOf` method
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
isSupersetOf: function isSupersetOf(iterable) {
var set = anObject(this);
var hasCheck = aFunction(set.has);
return !iterate(iterable, function (value, stop) {
if (hasCheck.call(set, value) === false) return stop();
}, { INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.join.js 0000664 0000000 0000000 00000001312 13774351224 0023257 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.join` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
join: function join(separator) {
var set = anObject(this);
var iterator = getSetIterator(set);
var sep = separator === undefined ? ',' : String(separator);
var result = [];
iterate(iterator, result.push, { that: result, IS_ITERATOR: true });
return result.join(sep);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.map.js 0000664 0000000 0000000 00000002150 13774351224 0023076 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var bind = require('../internals/function-bind-context');
var speciesConstructor = require('../internals/species-constructor');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.map` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
map: function map(callbackfn /* , thisArg */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))();
var adder = aFunction(newSet.add);
iterate(iterator, function (value) {
adder.call(newSet, boundFunction(value, value, set));
}, { IS_ITERATOR: true });
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.of.js 0000664 0000000 0000000 00000000331 13774351224 0022724 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var of = require('../internals/collection-of');
// `Set.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
$({ target: 'Set', stat: true }, {
of: of
});
core-js-3.8.2/packages/core-js/modules/esnext.set.reduce.js 0000664 0000000 0000000 00000002070 13774351224 0023571 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.reduce` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
reduce: function reduce(callbackfn /* , initialValue */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var noInitial = arguments.length < 2;
var accumulator = noInitial ? undefined : arguments[1];
aFunction(callbackfn);
iterate(iterator, function (value) {
if (noInitial) {
noInitial = false;
accumulator = value;
} else {
accumulator = callbackfn(accumulator, value, value, set);
}
}, { IS_ITERATOR: true });
if (noInitial) throw TypeError('Reduce of empty set with no initial value');
return accumulator;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.some.js 0000664 0000000 0000000 00000001542 13774351224 0023270 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var anObject = require('../internals/an-object');
var bind = require('../internals/function-bind-context');
var getSetIterator = require('../internals/get-set-iterator');
var iterate = require('../internals/iterate');
// `Set.prototype.some` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
some: function some(callbackfn /* , thisArg */) {
var set = anObject(this);
var iterator = getSetIterator(set);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
return iterate(iterator, function (value, stop) {
if (boundFunction(value, value, set)) return stop();
}, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.symmetric-difference.js 0000664 0000000 0000000 00000001637 13774351224 0026436 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var speciesConstructor = require('../internals/species-constructor');
var iterate = require('../internals/iterate');
// `Set.prototype.symmetricDifference` method
// https://github.com/tc39/proposal-set-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
symmetricDifference: function symmetricDifference(iterable) {
var set = anObject(this);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
var remover = aFunction(newSet['delete']);
var adder = aFunction(newSet.add);
iterate(iterable, function (value) {
remover.call(newSet, value) || adder.call(newSet, value);
});
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.set.union.js 0000664 0000000 0000000 00000001356 13774351224 0023460 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var getBuiltIn = require('../internals/get-built-in');
var anObject = require('../internals/an-object');
var aFunction = require('../internals/a-function');
var speciesConstructor = require('../internals/species-constructor');
var iterate = require('../internals/iterate');
// `Set.prototype.union` method
// https://github.com/tc39/proposal-set-methods
$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
union: function union(iterable) {
var set = anObject(this);
var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
iterate(iterable, aFunction(newSet.add), { that: newSet });
return newSet;
}
});
core-js-3.8.2/packages/core-js/modules/esnext.string.at-alternative.js 0000664 0000000 0000000 00000001541 13774351224 0025757 0 ustar 00root root 0000000 0000000 // TODO: disabled by default because of the conflict with another proposal
'use strict';
var $ = require('../internals/export');
var requireObjectCoercible = require('../internals/require-object-coercible');
var toLength = require('../internals/to-length');
var toInteger = require('../internals/to-integer');
var fails = require('../internals/fails');
var FORCED = fails(function () {
return '𠮷'.at(0) !== '\uD842';
});
// `String.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
$({ target: 'String', proto: true, forced: FORCED }, {
at: function at(index) {
var S = String(requireObjectCoercible(this));
var len = toLength(S.length);
var relativeIndex = toInteger(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : S.charAt(k);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.string.at.js 0000664 0000000 0000000 00000000666 13774351224 0023452 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var charAt = require('../internals/string-multibyte').charAt;
var fails = require('../internals/fails');
var FORCED = fails(function () {
return '𠮷'.at(0) !== '𠮷';
});
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
$({ target: 'String', proto: true, forced: FORCED }, {
at: function at(pos) {
return charAt(this, pos);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.string.code-points.js 0000664 0000000 0000000 00000002633 13774351224 0025266 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var requireObjectCoercible = require('../internals/require-object-coercible');
var InternalStateModule = require('../internals/internal-state');
var StringMultibyteModule = require('../internals/string-multibyte');
var codeAt = StringMultibyteModule.codeAt;
var charAt = StringMultibyteModule.charAt;
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
// TODO: unify with String#@@iterator
var $StringIterator = createIteratorConstructor(function StringIterator(string) {
setInternalState(this, {
type: STRING_ITERATOR,
string: string,
index: 0
});
}, 'String', function next() {
var state = getInternalState(this);
var string = state.string;
var index = state.index;
var point;
if (index >= string.length) return { value: undefined, done: true };
point = charAt(string, index);
state.index += point.length;
return { value: { codePoint: codeAt(point, 0), position: index }, done: false };
});
// `String.prototype.codePoints` method
// https://github.com/tc39/proposal-string-prototype-codepoints
$({ target: 'String', proto: true }, {
codePoints: function codePoints() {
return new $StringIterator(String(requireObjectCoercible(this)));
}
});
core-js-3.8.2/packages/core-js/modules/esnext.string.match-all.js 0000664 0000000 0000000 00000000103 13774351224 0024672 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.string.match-all');
core-js-3.8.2/packages/core-js/modules/esnext.string.replace-all.js 0000664 0000000 0000000 00000000105 13774351224 0025213 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('./es.string.replace-all');
core-js-3.8.2/packages/core-js/modules/esnext.symbol.async-dispose.js 0000664 0000000 0000000 00000000325 13774351224 0025616 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.asyncDispose` well-known symbol
// https://github.com/tc39/proposal-using-statement
defineWellKnownSymbol('asyncDispose');
core-js-3.8.2/packages/core-js/modules/esnext.symbol.dispose.js 0000664 0000000 0000000 00000000313 13774351224 0024500 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.dispose` well-known symbol
// https://github.com/tc39/proposal-using-statement
defineWellKnownSymbol('dispose');
core-js-3.8.2/packages/core-js/modules/esnext.symbol.observable.js 0000664 0000000 0000000 00000000314 13774351224 0025157 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.observable` well-known symbol
// https://github.com/tc39/proposal-observable
defineWellKnownSymbol('observable');
core-js-3.8.2/packages/core-js/modules/esnext.symbol.pattern-match.js 0000664 0000000 0000000 00000000326 13774351224 0025605 0 ustar 00root root 0000000 0000000 var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
// `Symbol.patternMatch` well-known symbol
// https://github.com/tc39/proposal-pattern-matching
defineWellKnownSymbol('patternMatch');
core-js-3.8.2/packages/core-js/modules/esnext.symbol.replace-all.js 0000664 0000000 0000000 00000000225 13774351224 0025215 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
var defineWellKnownSymbol = require('../internals/define-well-known-symbol');
defineWellKnownSymbol('replaceAll');
core-js-3.8.2/packages/core-js/modules/esnext.typed-array.at.js 0000664 0000000 0000000 00000001257 13774351224 0024402 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var toLength = require('../internals/to-length');
var toInteger = require('../internals/to-integer');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.at` method
// https://github.com/tc39/proposal-relative-indexing-method
exportTypedArrayMethod('at', function at(index) {
var O = aTypedArray(this);
var len = toLength(O.length);
var relativeIndex = toInteger(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : O[k];
});
core-js-3.8.2/packages/core-js/modules/esnext.typed-array.filter-out.js 0000664 0000000 0000000 00000001660 13774351224 0026066 0 ustar 00root root 0000000 0000000 'use strict';
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var $filterOut = require('../internals/array-iteration').filterOut;
var speciesConstructor = require('../internals/species-constructor');
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
// `%TypedArray%.prototype.filterOut` method
// https://github.com/tc39/proposal-array-filtering
exportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg */) {
var list = $filterOut(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
var C = speciesConstructor(this, this.constructor);
var index = 0;
var length = list.length;
var result = new (aTypedArrayConstructor(C))(length);
while (length > index) result[index] = list[index++];
return result;
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-map.delete-all.js 0000664 0000000 0000000 00000000707 13774351224 0025246 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionDeleteAll = require('../internals/collection-delete-all');
// `WeakMap.prototype.deleteAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
deleteAll: function deleteAll(/* ...elements */) {
return collectionDeleteAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-map.emplace.js 0000664 0000000 0000000 00000000510 13774351224 0024634 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $emplace = require('../internals/map-emplace');
// `WeakMap.prototype.emplace` method
// https://github.com/tc39/proposal-upsert
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
emplace: $emplace
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-map.from.js 0000664 0000000 0000000 00000000361 13774351224 0024175 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var from = require('../internals/collection-from');
// `WeakMap.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
$({ target: 'WeakMap', stat: true }, {
from: from
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-map.of.js 0000664 0000000 0000000 00000000345 13774351224 0023640 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var of = require('../internals/collection-of');
// `WeakMap.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
$({ target: 'WeakMap', stat: true }, {
of: of
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-map.upsert.js 0000664 0000000 0000000 00000000616 13774351224 0024557 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $upsert = require('../internals/map-upsert');
// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)
// https://github.com/tc39/proposal-upsert
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
upsert: $upsert
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-set.add-all.js 0000664 0000000 0000000 00000000665 13774351224 0024555 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionAddAll = require('../internals/collection-add-all');
// `WeakSet.prototype.addAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'WeakSet', proto: true, real: true, forced: IS_PURE }, {
addAll: function addAll(/* ...elements */) {
return collectionAddAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-set.delete-all.js 0000664 0000000 0000000 00000000707 13774351224 0025264 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var collectionDeleteAll = require('../internals/collection-delete-all');
// `WeakSet.prototype.deleteAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'WeakSet', proto: true, real: true, forced: IS_PURE }, {
deleteAll: function deleteAll(/* ...elements */) {
return collectionDeleteAll.apply(this, arguments);
}
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-set.from.js 0000664 0000000 0000000 00000000361 13774351224 0024213 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var from = require('../internals/collection-from');
// `WeakSet.from` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from
$({ target: 'WeakSet', stat: true }, {
from: from
});
core-js-3.8.2/packages/core-js/modules/esnext.weak-set.of.js 0000664 0000000 0000000 00000000345 13774351224 0023656 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var of = require('../internals/collection-of');
// `WeakSet.of` method
// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
$({ target: 'WeakSet', stat: true }, {
of: of
});
core-js-3.8.2/packages/core-js/modules/web.dom-collections.for-each.js 0000664 0000000 0000000 00000001263 13774351224 0025560 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var DOMIterables = require('../internals/dom-iterables');
var forEach = require('../internals/array-for-each');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
for (var COLLECTION_NAME in DOMIterables) {
var Collection = global[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
} catch (error) {
CollectionPrototype.forEach = forEach;
}
}
core-js-3.8.2/packages/core-js/modules/web.dom-collections.iterator.js 0000664 0000000 0000000 00000003035 13774351224 0025724 0 ustar 00root root 0000000 0000000 var global = require('../internals/global');
var DOMIterables = require('../internals/dom-iterables');
var ArrayIteratorMethods = require('../modules/es.array.iterator');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ITERATOR = wellKnownSymbol('iterator');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var ArrayValues = ArrayIteratorMethods.values;
for (var COLLECTION_NAME in DOMIterables) {
var Collection = global[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
if (CollectionPrototype) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
} catch (error) {
CollectionPrototype[ITERATOR] = ArrayValues;
}
if (!CollectionPrototype[TO_STRING_TAG]) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
}
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
}
}
core-js-3.8.2/packages/core-js/modules/web.immediate.js 0000664 0000000 0000000 00000001014 13774351224 0022732 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var global = require('../internals/global');
var task = require('../internals/task');
var FORCED = !global.setImmediate || !global.clearImmediate;
// http://w3c.github.io/setImmediate/
$({ global: true, bind: true, enumerable: true, forced: FORCED }, {
// `setImmediate` method
// http://w3c.github.io/setImmediate/#si-setImmediate
setImmediate: task.set,
// `clearImmediate` method
// http://w3c.github.io/setImmediate/#si-clearImmediate
clearImmediate: task.clear
});
core-js-3.8.2/packages/core-js/modules/web.queue-microtask.js 0000664 0000000 0000000 00000001040 13774351224 0024111 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var global = require('../internals/global');
var microtask = require('../internals/microtask');
var IS_NODE = require('../internals/engine-is-node');
var process = global.process;
// `queueMicrotask` method
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask
$({ global: true, enumerable: true, noTargetGet: true }, {
queueMicrotask: function queueMicrotask(fn) {
var domain = IS_NODE && process.domain;
microtask(domain ? domain.bind(fn) : fn);
}
});
core-js-3.8.2/packages/core-js/modules/web.timers.js 0000664 0000000 0000000 00000002166 13774351224 0022310 0 ustar 00root root 0000000 0000000 var $ = require('../internals/export');
var global = require('../internals/global');
var userAgent = require('../internals/engine-user-agent');
var slice = [].slice;
var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
var wrap = function (scheduler) {
return function (handler, timeout /* , ...arguments */) {
var boundArgs = arguments.length > 2;
var args = boundArgs ? slice.call(arguments, 2) : undefined;
return scheduler(boundArgs ? function () {
// eslint-disable-next-line no-new-func
(typeof handler == 'function' ? handler : Function(handler)).apply(this, args);
} : handler, timeout);
};
};
// ie9- setTimeout & setInterval additional parameters fix
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
$({ global: true, bind: true, forced: MSIE }, {
// `setTimeout` method
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
setTimeout: wrap(global.setTimeout),
// `setInterval` method
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
setInterval: wrap(global.setInterval)
});
core-js-3.8.2/packages/core-js/modules/web.url-search-params.js 0000664 0000000 0000000 00000027145 13774351224 0024337 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
require('../modules/es.array.iterator');
var $ = require('../internals/export');
var getBuiltIn = require('../internals/get-built-in');
var USE_NATIVE_URL = require('../internals/native-url');
var redefine = require('../internals/redefine');
var redefineAll = require('../internals/redefine-all');
var setToStringTag = require('../internals/set-to-string-tag');
var createIteratorConstructor = require('../internals/create-iterator-constructor');
var InternalStateModule = require('../internals/internal-state');
var anInstance = require('../internals/an-instance');
var hasOwn = require('../internals/has');
var bind = require('../internals/function-bind-context');
var classof = require('../internals/classof');
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var create = require('../internals/object-create');
var createPropertyDescriptor = require('../internals/create-property-descriptor');
var getIterator = require('../internals/get-iterator');
var getIteratorMethod = require('../internals/get-iterator-method');
var wellKnownSymbol = require('../internals/well-known-symbol');
var $fetch = getBuiltIn('fetch');
var Headers = getBuiltIn('Headers');
var ITERATOR = wellKnownSymbol('iterator');
var URL_SEARCH_PARAMS = 'URLSearchParams';
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
var setInternalState = InternalStateModule.set;
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var plus = /\+/g;
var sequences = Array(4);
var percentSequence = function (bytes) {
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
};
var percentDecode = function (sequence) {
try {
return decodeURIComponent(sequence);
} catch (error) {
return sequence;
}
};
var deserialize = function (it) {
var result = it.replace(plus, ' ');
var bytes = 4;
try {
return decodeURIComponent(result);
} catch (error) {
while (bytes) {
result = result.replace(percentSequence(bytes--), percentDecode);
}
return result;
}
};
var find = /[!'()~]|%20/g;
var replace = {
'!': '%21',
"'": '%27',
'(': '%28',
')': '%29',
'~': '%7E',
'%20': '+'
};
var replacer = function (match) {
return replace[match];
};
var serialize = function (it) {
return encodeURIComponent(it).replace(find, replacer);
};
var parseSearchParams = function (result, query) {
if (query) {
var attributes = query.split('&');
var index = 0;
var attribute, entry;
while (index < attributes.length) {
attribute = attributes[index++];
if (attribute.length) {
entry = attribute.split('=');
result.push({
key: deserialize(entry.shift()),
value: deserialize(entry.join('='))
});
}
}
}
};
var updateSearchParams = function (query) {
this.entries.length = 0;
parseSearchParams(this.entries, query);
};
var validateArgumentsLength = function (passed, required) {
if (passed < required) throw TypeError('Not enough arguments');
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
setInternalState(this, {
type: URL_SEARCH_PARAMS_ITERATOR,
iterator: getIterator(getInternalParamsState(params).entries),
kind: kind
});
}, 'Iterator', function next() {
var state = getInternalIteratorState(this);
var kind = state.kind;
var step = state.iterator.next();
var entry = step.value;
if (!step.done) {
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
} return step;
});
// `URLSearchParams` constructor
// https://url.spec.whatwg.org/#interface-urlsearchparams
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
var init = arguments.length > 0 ? arguments[0] : undefined;
var that = this;
var entries = [];
var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
setInternalState(that, {
type: URL_SEARCH_PARAMS,
entries: entries,
updateURL: function () { /* empty */ },
updateSearchParams: updateSearchParams
});
if (init !== undefined) {
if (isObject(init)) {
iteratorMethod = getIteratorMethod(init);
if (typeof iteratorMethod === 'function') {
iterator = iteratorMethod.call(init);
next = iterator.next;
while (!(step = next.call(iterator)).done) {
entryIterator = getIterator(anObject(step.value));
entryNext = entryIterator.next;
if (
(first = entryNext.call(entryIterator)).done ||
(second = entryNext.call(entryIterator)).done ||
!entryNext.call(entryIterator).done
) throw TypeError('Expected sequence with length 2');
entries.push({ key: first.value + '', value: second.value + '' });
}
} else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: init[key] + '' });
} else {
parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');
}
}
};
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
redefineAll(URLSearchParamsPrototype, {
// `URLSearchParams.prototype.append` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
append: function append(name, value) {
validateArgumentsLength(arguments.length, 2);
var state = getInternalParamsState(this);
state.entries.push({ key: name + '', value: value + '' });
state.updateURL();
},
// `URLSearchParams.prototype.delete` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
'delete': function (name) {
validateArgumentsLength(arguments.length, 1);
var state = getInternalParamsState(this);
var entries = state.entries;
var key = name + '';
var index = 0;
while (index < entries.length) {
if (entries[index].key === key) entries.splice(index, 1);
else index++;
}
state.updateURL();
},
// `URLSearchParams.prototype.get` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
get: function get(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = name + '';
var index = 0;
for (; index < entries.length; index++) {
if (entries[index].key === key) return entries[index].value;
}
return null;
},
// `URLSearchParams.prototype.getAll` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
getAll: function getAll(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = name + '';
var result = [];
var index = 0;
for (; index < entries.length; index++) {
if (entries[index].key === key) result.push(entries[index].value);
}
return result;
},
// `URLSearchParams.prototype.has` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
has: function has(name) {
validateArgumentsLength(arguments.length, 1);
var entries = getInternalParamsState(this).entries;
var key = name + '';
var index = 0;
while (index < entries.length) {
if (entries[index++].key === key) return true;
}
return false;
},
// `URLSearchParams.prototype.set` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
set: function set(name, value) {
validateArgumentsLength(arguments.length, 1);
var state = getInternalParamsState(this);
var entries = state.entries;
var found = false;
var key = name + '';
var val = value + '';
var index = 0;
var entry;
for (; index < entries.length; index++) {
entry = entries[index];
if (entry.key === key) {
if (found) entries.splice(index--, 1);
else {
found = true;
entry.value = val;
}
}
}
if (!found) entries.push({ key: key, value: val });
state.updateURL();
},
// `URLSearchParams.prototype.sort` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
sort: function sort() {
var state = getInternalParamsState(this);
var entries = state.entries;
// Array#sort is not stable in some engines
var slice = entries.slice();
var entry, entriesIndex, sliceIndex;
entries.length = 0;
for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
entry = slice[sliceIndex];
for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
if (entries[entriesIndex].key > entry.key) {
entries.splice(entriesIndex, 0, entry);
break;
}
}
if (entriesIndex === sliceIndex) entries.push(entry);
}
state.updateURL();
},
// `URLSearchParams.prototype.forEach` method
forEach: function forEach(callback /* , thisArg */) {
var entries = getInternalParamsState(this).entries;
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
var index = 0;
var entry;
while (index < entries.length) {
entry = entries[index++];
boundFunction(entry.value, entry.key, this);
}
},
// `URLSearchParams.prototype.keys` method
keys: function keys() {
return new URLSearchParamsIterator(this, 'keys');
},
// `URLSearchParams.prototype.values` method
values: function values() {
return new URLSearchParamsIterator(this, 'values');
},
// `URLSearchParams.prototype.entries` method
entries: function entries() {
return new URLSearchParamsIterator(this, 'entries');
}
}, { enumerable: true });
// `URLSearchParams.prototype[@@iterator]` method
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);
// `URLSearchParams.prototype.toString` method
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
redefine(URLSearchParamsPrototype, 'toString', function toString() {
var entries = getInternalParamsState(this).entries;
var result = [];
var index = 0;
var entry;
while (index < entries.length) {
entry = entries[index++];
result.push(serialize(entry.key) + '=' + serialize(entry.value));
} return result.join('&');
}, { enumerable: true });
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$({ global: true, forced: !USE_NATIVE_URL }, {
URLSearchParams: URLSearchParamsConstructor
});
// Wrap `fetch` for correct work with polyfilled `URLSearchParams`
// https://github.com/zloirock/core-js/issues/674
if (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {
$({ global: true, enumerable: true, forced: true }, {
fetch: function fetch(input /* , init */) {
var args = [input];
var init, body, headers;
if (arguments.length > 1) {
init = arguments[1];
if (isObject(init)) {
body = init.body;
if (classof(body) === URL_SEARCH_PARAMS) {
headers = init.headers ? new Headers(init.headers) : new Headers();
if (!headers.has('content-type')) {
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
}
init = create(init, {
body: createPropertyDescriptor(0, String(body)),
headers: createPropertyDescriptor(0, headers)
});
}
}
args.push(init);
} return $fetch.apply(this, args);
}
});
}
module.exports = {
URLSearchParams: URLSearchParamsConstructor,
getState: getInternalParamsState
};
core-js-3.8.2/packages/core-js/modules/web.url.js 0000664 0000000 0000000 00000077631 13774351224 0021620 0 ustar 00root root 0000000 0000000 'use strict';
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
require('../modules/es.string.iterator');
var $ = require('../internals/export');
var DESCRIPTORS = require('../internals/descriptors');
var USE_NATIVE_URL = require('../internals/native-url');
var global = require('../internals/global');
var defineProperties = require('../internals/object-define-properties');
var redefine = require('../internals/redefine');
var anInstance = require('../internals/an-instance');
var has = require('../internals/has');
var assign = require('../internals/object-assign');
var arrayFrom = require('../internals/array-from');
var codeAt = require('../internals/string-multibyte').codeAt;
var toASCII = require('../internals/string-punycode-to-ascii');
var setToStringTag = require('../internals/set-to-string-tag');
var URLSearchParamsModule = require('../modules/web.url-search-params');
var InternalStateModule = require('../internals/internal-state');
var NativeURL = global.URL;
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor('URL');
var floor = Math.floor;
var pow = Math.pow;
var INVALID_AUTHORITY = 'Invalid authority';
var INVALID_SCHEME = 'Invalid scheme';
var INVALID_HOST = 'Invalid host';
var INVALID_PORT = 'Invalid port';
var ALPHA = /[A-Za-z]/;
var ALPHANUMERIC = /[\d+-.A-Za-z]/;
var DIGIT = /\d/;
var HEX_START = /^(0x|0X)/;
var OCT = /^[0-7]+$/;
var DEC = /^\d+$/;
var HEX = /^[\dA-Fa-f]+$/;
// eslint-disable-next-line no-control-regex
var FORBIDDEN_HOST_CODE_POINT = /[\u0000\u0009\u000A\u000D #%/:?@[\\]]/;
// eslint-disable-next-line no-control-regex
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\u0000\u0009\u000A\u000D #/:?@[\\]]/;
// eslint-disable-next-line no-control-regex
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;
// eslint-disable-next-line no-control-regex
var TAB_AND_NEW_LINE = /[\u0009\u000A\u000D]/g;
var EOF;
var parseHost = function (url, input) {
var result, codePoints, index;
if (input.charAt(0) == '[') {
if (input.charAt(input.length - 1) != ']') return INVALID_HOST;
result = parseIPv6(input.slice(1, -1));
if (!result) return INVALID_HOST;
url.host = result;
// opaque host
} else if (!isSpecial(url)) {
if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;
result = '';
codePoints = arrayFrom(input);
for (index = 0; index < codePoints.length; index++) {
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
}
url.host = result;
} else {
input = toASCII(input);
if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;
result = parseIPv4(input);
if (result === null) return INVALID_HOST;
url.host = result;
}
};
var parseIPv4 = function (input) {
var parts = input.split('.');
var partsLength, numbers, index, part, radix, number, ipv4;
if (parts.length && parts[parts.length - 1] == '') {
parts.pop();
}
partsLength = parts.length;
if (partsLength > 4) return input;
numbers = [];
for (index = 0; index < partsLength; index++) {
part = parts[index];
if (part == '') return input;
radix = 10;
if (part.length > 1 && part.charAt(0) == '0') {
radix = HEX_START.test(part) ? 16 : 8;
part = part.slice(radix == 8 ? 1 : 2);
}
if (part === '') {
number = 0;
} else {
if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;
number = parseInt(part, radix);
}
numbers.push(number);
}
for (index = 0; index < partsLength; index++) {
number = numbers[index];
if (index == partsLength - 1) {
if (number >= pow(256, 5 - partsLength)) return null;
} else if (number > 255) return null;
}
ipv4 = numbers.pop();
for (index = 0; index < numbers.length; index++) {
ipv4 += numbers[index] * pow(256, 3 - index);
}
return ipv4;
};
// eslint-disable-next-line max-statements
var parseIPv6 = function (input) {
var address = [0, 0, 0, 0, 0, 0, 0, 0];
var pieceIndex = 0;
var compress = null;
var pointer = 0;
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
var char = function () {
return input.charAt(pointer);
};
if (char() == ':') {
if (input.charAt(1) != ':') return;
pointer += 2;
pieceIndex++;
compress = pieceIndex;
}
while (char()) {
if (pieceIndex == 8) return;
if (char() == ':') {
if (compress !== null) return;
pointer++;
pieceIndex++;
compress = pieceIndex;
continue;
}
value = length = 0;
while (length < 4 && HEX.test(char())) {
value = value * 16 + parseInt(char(), 16);
pointer++;
length++;
}
if (char() == '.') {
if (length == 0) return;
pointer -= length;
if (pieceIndex > 6) return;
numbersSeen = 0;
while (char()) {
ipv4Piece = null;
if (numbersSeen > 0) {
if (char() == '.' && numbersSeen < 4) pointer++;
else return;
}
if (!DIGIT.test(char())) return;
while (DIGIT.test(char())) {
number = parseInt(char(), 10);
if (ipv4Piece === null) ipv4Piece = number;
else if (ipv4Piece == 0) return;
else ipv4Piece = ipv4Piece * 10 + number;
if (ipv4Piece > 255) return;
pointer++;
}
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
numbersSeen++;
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
}
if (numbersSeen != 4) return;
break;
} else if (char() == ':') {
pointer++;
if (!char()) return;
} else if (char()) return;
address[pieceIndex++] = value;
}
if (compress !== null) {
swaps = pieceIndex - compress;
pieceIndex = 7;
while (pieceIndex != 0 && swaps > 0) {
swap = address[pieceIndex];
address[pieceIndex--] = address[compress + swaps - 1];
address[compress + --swaps] = swap;
}
} else if (pieceIndex != 8) return;
return address;
};
var findLongestZeroSequence = function (ipv6) {
var maxIndex = null;
var maxLength = 1;
var currStart = null;
var currLength = 0;
var index = 0;
for (; index < 8; index++) {
if (ipv6[index] !== 0) {
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
currStart = null;
currLength = 0;
} else {
if (currStart === null) currStart = index;
++currLength;
}
}
if (currLength > maxLength) {
maxIndex = currStart;
maxLength = currLength;
}
return maxIndex;
};
var serializeHost = function (host) {
var result, index, compress, ignore0;
// ipv4
if (typeof host == 'number') {
result = [];
for (index = 0; index < 4; index++) {
result.unshift(host % 256);
host = floor(host / 256);
} return result.join('.');
// ipv6
} else if (typeof host == 'object') {
result = '';
compress = findLongestZeroSequence(host);
for (index = 0; index < 8; index++) {
if (ignore0 && host[index] === 0) continue;
if (ignore0) ignore0 = false;
if (compress === index) {
result += index ? ':' : '::';
ignore0 = true;
} else {
result += host[index].toString(16);
if (index < 7) result += ':';
}
}
return '[' + result + ']';
} return host;
};
var C0ControlPercentEncodeSet = {};
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
});
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
'#': 1, '?': 1, '{': 1, '}': 1
});
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
});
var percentEncode = function (char, set) {
var code = codeAt(char, 0);
return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);
};
var specialSchemes = {
ftp: 21,
file: null,
http: 80,
https: 443,
ws: 80,
wss: 443
};
var isSpecial = function (url) {
return has(specialSchemes, url.scheme);
};
var includesCredentials = function (url) {
return url.username != '' || url.password != '';
};
var cannotHaveUsernamePasswordPort = function (url) {
return !url.host || url.cannotBeABaseURL || url.scheme == 'file';
};
var isWindowsDriveLetter = function (string, normalized) {
var second;
return string.length == 2 && ALPHA.test(string.charAt(0))
&& ((second = string.charAt(1)) == ':' || (!normalized && second == '|'));
};
var startsWithWindowsDriveLetter = function (string) {
var third;
return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (
string.length == 2 ||
((third = string.charAt(2)) === '/' || third === '\\' || third === '?' || third === '#')
);
};
var shortenURLsPath = function (url) {
var path = url.path;
var pathSize = path.length;
if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
path.pop();
}
};
var isSingleDot = function (segment) {
return segment === '.' || segment.toLowerCase() === '%2e';
};
var isDoubleDot = function (segment) {
segment = segment.toLowerCase();
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
};
// States:
var SCHEME_START = {};
var SCHEME = {};
var NO_SCHEME = {};
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
var PATH_OR_AUTHORITY = {};
var RELATIVE = {};
var RELATIVE_SLASH = {};
var SPECIAL_AUTHORITY_SLASHES = {};
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
var AUTHORITY = {};
var HOST = {};
var HOSTNAME = {};
var PORT = {};
var FILE = {};
var FILE_SLASH = {};
var FILE_HOST = {};
var PATH_START = {};
var PATH = {};
var CANNOT_BE_A_BASE_URL_PATH = {};
var QUERY = {};
var FRAGMENT = {};
// eslint-disable-next-line max-statements
var parseURL = function (url, input, stateOverride, base) {
var state = stateOverride || SCHEME_START;
var pointer = 0;
var buffer = '';
var seenAt = false;
var seenBracket = false;
var seenPasswordToken = false;
var codePoints, char, bufferCodePoints, failure;
if (!stateOverride) {
url.scheme = '';
url.username = '';
url.password = '';
url.host = null;
url.port = null;
url.path = [];
url.query = null;
url.fragment = null;
url.cannotBeABaseURL = false;
input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
}
input = input.replace(TAB_AND_NEW_LINE, '');
codePoints = arrayFrom(input);
while (pointer <= codePoints.length) {
char = codePoints[pointer];
switch (state) {
case SCHEME_START:
if (char && ALPHA.test(char)) {
buffer += char.toLowerCase();
state = SCHEME;
} else if (!stateOverride) {
state = NO_SCHEME;
continue;
} else return INVALID_SCHEME;
break;
case SCHEME:
if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {
buffer += char.toLowerCase();
} else if (char == ':') {
if (stateOverride && (
(isSpecial(url) != has(specialSchemes, buffer)) ||
(buffer == 'file' && (includesCredentials(url) || url.port !== null)) ||
(url.scheme == 'file' && !url.host)
)) return;
url.scheme = buffer;
if (stateOverride) {
if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;
return;
}
buffer = '';
if (url.scheme == 'file') {
state = FILE;
} else if (isSpecial(url) && base && base.scheme == url.scheme) {
state = SPECIAL_RELATIVE_OR_AUTHORITY;
} else if (isSpecial(url)) {
state = SPECIAL_AUTHORITY_SLASHES;
} else if (codePoints[pointer + 1] == '/') {
state = PATH_OR_AUTHORITY;
pointer++;
} else {
url.cannotBeABaseURL = true;
url.path.push('');
state = CANNOT_BE_A_BASE_URL_PATH;
}
} else if (!stateOverride) {
buffer = '';
state = NO_SCHEME;
pointer = 0;
continue;
} else return INVALID_SCHEME;
break;
case NO_SCHEME:
if (!base || (base.cannotBeABaseURL && char != '#')) return INVALID_SCHEME;
if (base.cannotBeABaseURL && char == '#') {
url.scheme = base.scheme;
url.path = base.path.slice();
url.query = base.query;
url.fragment = '';
url.cannotBeABaseURL = true;
state = FRAGMENT;
break;
}
state = base.scheme == 'file' ? FILE : RELATIVE;
continue;
case SPECIAL_RELATIVE_OR_AUTHORITY:
if (char == '/' && codePoints[pointer + 1] == '/') {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
pointer++;
} else {
state = RELATIVE;
continue;
} break;
case PATH_OR_AUTHORITY:
if (char == '/') {
state = AUTHORITY;
break;
} else {
state = PATH;
continue;
}
case RELATIVE:
url.scheme = base.scheme;
if (char == EOF) {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = base.path.slice();
url.query = base.query;
} else if (char == '/' || (char == '\\' && isSpecial(url))) {
state = RELATIVE_SLASH;
} else if (char == '?') {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = base.path.slice();
url.query = '';
state = QUERY;
} else if (char == '#') {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = base.path.slice();
url.query = base.query;
url.fragment = '';
state = FRAGMENT;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
url.path = base.path.slice();
url.path.pop();
state = PATH;
continue;
} break;
case RELATIVE_SLASH:
if (isSpecial(url) && (char == '/' || char == '\\')) {
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
} else if (char == '/') {
state = AUTHORITY;
} else {
url.username = base.username;
url.password = base.password;
url.host = base.host;
url.port = base.port;
state = PATH;
continue;
} break;
case SPECIAL_AUTHORITY_SLASHES:
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;
pointer++;
break;
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
if (char != '/' && char != '\\') {
state = AUTHORITY;
continue;
} break;
case AUTHORITY:
if (char == '@') {
if (seenAt) buffer = '%40' + buffer;
seenAt = true;
bufferCodePoints = arrayFrom(buffer);
for (var i = 0; i < bufferCodePoints.length; i++) {
var codePoint = bufferCodePoints[i];
if (codePoint == ':' && !seenPasswordToken) {
seenPasswordToken = true;
continue;
}
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
if (seenPasswordToken) url.password += encodedCodePoints;
else url.username += encodedCodePoints;
}
buffer = '';
} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url))
) {
if (seenAt && buffer == '') return INVALID_AUTHORITY;
pointer -= arrayFrom(buffer).length + 1;
buffer = '';
state = HOST;
} else buffer += char;
break;
case HOST:
case HOSTNAME:
if (stateOverride && url.scheme == 'file') {
state = FILE_HOST;
continue;
} else if (char == ':' && !seenBracket) {
if (buffer == '') return INVALID_HOST;
failure = parseHost(url, buffer);
if (failure) return failure;
buffer = '';
state = PORT;
if (stateOverride == HOSTNAME) return;
} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url))
) {
if (isSpecial(url) && buffer == '') return INVALID_HOST;
if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;
failure = parseHost(url, buffer);
if (failure) return failure;
buffer = '';
state = PATH_START;
if (stateOverride) return;
continue;
} else {
if (char == '[') seenBracket = true;
else if (char == ']') seenBracket = false;
buffer += char;
} break;
case PORT:
if (DIGIT.test(char)) {
buffer += char;
} else if (
char == EOF || char == '/' || char == '?' || char == '#' ||
(char == '\\' && isSpecial(url)) ||
stateOverride
) {
if (buffer != '') {
var port = parseInt(buffer, 10);
if (port > 0xFFFF) return INVALID_PORT;
url.port = (isSpecial(url) && port === specialSchemes[url.scheme]) ? null : port;
buffer = '';
}
if (stateOverride) return;
state = PATH_START;
continue;
} else return INVALID_PORT;
break;
case FILE:
url.scheme = 'file';
if (char == '/' || char == '\\') state = FILE_SLASH;
else if (base && base.scheme == 'file') {
if (char == EOF) {
url.host = base.host;
url.path = base.path.slice();
url.query = base.query;
} else if (char == '?') {
url.host = base.host;
url.path = base.path.slice();
url.query = '';
state = QUERY;
} else if (char == '#') {
url.host = base.host;
url.path = base.path.slice();
url.query = base.query;
url.fragment = '';
state = FRAGMENT;
} else {
if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
url.host = base.host;
url.path = base.path.slice();
shortenURLsPath(url);
}
state = PATH;
continue;
}
} else {
state = PATH;
continue;
} break;
case FILE_SLASH:
if (char == '/' || char == '\\') {
state = FILE_HOST;
break;
}
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {
if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);
else url.host = base.host;
}
state = PATH;
continue;
case FILE_HOST:
if (char == EOF || char == '/' || char == '\\' || char == '?' || char == '#') {
if (!stateOverride && isWindowsDriveLetter(buffer)) {
state = PATH;
} else if (buffer == '') {
url.host = '';
if (stateOverride) return;
state = PATH_START;
} else {
failure = parseHost(url, buffer);
if (failure) return failure;
if (url.host == 'localhost') url.host = '';
if (stateOverride) return;
buffer = '';
state = PATH_START;
} continue;
} else buffer += char;
break;
case PATH_START:
if (isSpecial(url)) {
state = PATH;
if (char != '/' && char != '\\') continue;
} else if (!stateOverride && char == '?') {
url.query = '';
state = QUERY;
} else if (!stateOverride && char == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
state = PATH;
if (char != '/') continue;
} break;
case PATH:
if (
char == EOF || char == '/' ||
(char == '\\' && isSpecial(url)) ||
(!stateOverride && (char == '?' || char == '#'))
) {
if (isDoubleDot(buffer)) {
shortenURLsPath(url);
if (char != '/' && !(char == '\\' && isSpecial(url))) {
url.path.push('');
}
} else if (isSingleDot(buffer)) {
if (char != '/' && !(char == '\\' && isSpecial(url))) {
url.path.push('');
}
} else {
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
if (url.host) url.host = '';
buffer = buffer.charAt(0) + ':'; // normalize windows drive letter
}
url.path.push(buffer);
}
buffer = '';
if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {
while (url.path.length > 1 && url.path[0] === '') {
url.path.shift();
}
}
if (char == '?') {
url.query = '';
state = QUERY;
} else if (char == '#') {
url.fragment = '';
state = FRAGMENT;
}
} else {
buffer += percentEncode(char, pathPercentEncodeSet);
} break;
case CANNOT_BE_A_BASE_URL_PATH:
if (char == '?') {
url.query = '';
state = QUERY;
} else if (char == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);
} break;
case QUERY:
if (!stateOverride && char == '#') {
url.fragment = '';
state = FRAGMENT;
} else if (char != EOF) {
if (char == "'" && isSpecial(url)) url.query += '%27';
else if (char == '#') url.query += '%23';
else url.query += percentEncode(char, C0ControlPercentEncodeSet);
} break;
case FRAGMENT:
if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);
break;
}
pointer++;
}
};
// `URL` constructor
// https://url.spec.whatwg.org/#url-class
var URLConstructor = function URL(url /* , base */) {
var that = anInstance(this, URLConstructor, 'URL');
var base = arguments.length > 1 ? arguments[1] : undefined;
var urlString = String(url);
var state = setInternalState(that, { type: 'URL' });
var baseState, failure;
if (base !== undefined) {
if (base instanceof URLConstructor) baseState = getInternalURLState(base);
else {
failure = parseURL(baseState = {}, String(base));
if (failure) throw TypeError(failure);
}
}
failure = parseURL(state, urlString, null, baseState);
if (failure) throw TypeError(failure);
var searchParams = state.searchParams = new URLSearchParams();
var searchParamsState = getInternalSearchParamsState(searchParams);
searchParamsState.updateSearchParams(state.query);
searchParamsState.updateURL = function () {
state.query = String(searchParams) || null;
};
if (!DESCRIPTORS) {
that.href = serializeURL.call(that);
that.origin = getOrigin.call(that);
that.protocol = getProtocol.call(that);
that.username = getUsername.call(that);
that.password = getPassword.call(that);
that.host = getHost.call(that);
that.hostname = getHostname.call(that);
that.port = getPort.call(that);
that.pathname = getPathname.call(that);
that.search = getSearch.call(that);
that.searchParams = getSearchParams.call(that);
that.hash = getHash.call(that);
}
};
var URLPrototype = URLConstructor.prototype;
var serializeURL = function () {
var url = getInternalURLState(this);
var scheme = url.scheme;
var username = url.username;
var password = url.password;
var host = url.host;
var port = url.port;
var path = url.path;
var query = url.query;
var fragment = url.fragment;
var output = scheme + ':';
if (host !== null) {
output += '//';
if (includesCredentials(url)) {
output += username + (password ? ':' + password : '') + '@';
}
output += serializeHost(host);
if (port !== null) output += ':' + port;
} else if (scheme == 'file') output += '//';
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
if (query !== null) output += '?' + query;
if (fragment !== null) output += '#' + fragment;
return output;
};
var getOrigin = function () {
var url = getInternalURLState(this);
var scheme = url.scheme;
var port = url.port;
if (scheme == 'blob') try {
return new URL(scheme.path[0]).origin;
} catch (error) {
return 'null';
}
if (scheme == 'file' || !isSpecial(url)) return 'null';
return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');
};
var getProtocol = function () {
return getInternalURLState(this).scheme + ':';
};
var getUsername = function () {
return getInternalURLState(this).username;
};
var getPassword = function () {
return getInternalURLState(this).password;
};
var getHost = function () {
var url = getInternalURLState(this);
var host = url.host;
var port = url.port;
return host === null ? ''
: port === null ? serializeHost(host)
: serializeHost(host) + ':' + port;
};
var getHostname = function () {
var host = getInternalURLState(this).host;
return host === null ? '' : serializeHost(host);
};
var getPort = function () {
var port = getInternalURLState(this).port;
return port === null ? '' : String(port);
};
var getPathname = function () {
var url = getInternalURLState(this);
var path = url.path;
return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';
};
var getSearch = function () {
var query = getInternalURLState(this).query;
return query ? '?' + query : '';
};
var getSearchParams = function () {
return getInternalURLState(this).searchParams;
};
var getHash = function () {
var fragment = getInternalURLState(this).fragment;
return fragment ? '#' + fragment : '';
};
var accessorDescriptor = function (getter, setter) {
return { get: getter, set: setter, configurable: true, enumerable: true };
};
if (DESCRIPTORS) {
defineProperties(URLPrototype, {
// `URL.prototype.href` accessors pair
// https://url.spec.whatwg.org/#dom-url-href
href: accessorDescriptor(serializeURL, function (href) {
var url = getInternalURLState(this);
var urlString = String(href);
var failure = parseURL(url, urlString);
if (failure) throw TypeError(failure);
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
}),
// `URL.prototype.origin` getter
// https://url.spec.whatwg.org/#dom-url-origin
origin: accessorDescriptor(getOrigin),
// `URL.prototype.protocol` accessors pair
// https://url.spec.whatwg.org/#dom-url-protocol
protocol: accessorDescriptor(getProtocol, function (protocol) {
var url = getInternalURLState(this);
parseURL(url, String(protocol) + ':', SCHEME_START);
}),
// `URL.prototype.username` accessors pair
// https://url.spec.whatwg.org/#dom-url-username
username: accessorDescriptor(getUsername, function (username) {
var url = getInternalURLState(this);
var codePoints = arrayFrom(String(username));
if (cannotHaveUsernamePasswordPort(url)) return;
url.username = '';
for (var i = 0; i < codePoints.length; i++) {
url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
}
}),
// `URL.prototype.password` accessors pair
// https://url.spec.whatwg.org/#dom-url-password
password: accessorDescriptor(getPassword, function (password) {
var url = getInternalURLState(this);
var codePoints = arrayFrom(String(password));
if (cannotHaveUsernamePasswordPort(url)) return;
url.password = '';
for (var i = 0; i < codePoints.length; i++) {
url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
}
}),
// `URL.prototype.host` accessors pair
// https://url.spec.whatwg.org/#dom-url-host
host: accessorDescriptor(getHost, function (host) {
var url = getInternalURLState(this);
if (url.cannotBeABaseURL) return;
parseURL(url, String(host), HOST);
}),
// `URL.prototype.hostname` accessors pair
// https://url.spec.whatwg.org/#dom-url-hostname
hostname: accessorDescriptor(getHostname, function (hostname) {
var url = getInternalURLState(this);
if (url.cannotBeABaseURL) return;
parseURL(url, String(hostname), HOSTNAME);
}),
// `URL.prototype.port` accessors pair
// https://url.spec.whatwg.org/#dom-url-port
port: accessorDescriptor(getPort, function (port) {
var url = getInternalURLState(this);
if (cannotHaveUsernamePasswordPort(url)) return;
port = String(port);
if (port == '') url.port = null;
else parseURL(url, port, PORT);
}),
// `URL.prototype.pathname` accessors pair
// https://url.spec.whatwg.org/#dom-url-pathname
pathname: accessorDescriptor(getPathname, function (pathname) {
var url = getInternalURLState(this);
if (url.cannotBeABaseURL) return;
url.path = [];
parseURL(url, pathname + '', PATH_START);
}),
// `URL.prototype.search` accessors pair
// https://url.spec.whatwg.org/#dom-url-search
search: accessorDescriptor(getSearch, function (search) {
var url = getInternalURLState(this);
search = String(search);
if (search == '') {
url.query = null;
} else {
if ('?' == search.charAt(0)) search = search.slice(1);
url.query = '';
parseURL(url, search, QUERY);
}
getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);
}),
// `URL.prototype.searchParams` getter
// https://url.spec.whatwg.org/#dom-url-searchparams
searchParams: accessorDescriptor(getSearchParams),
// `URL.prototype.hash` accessors pair
// https://url.spec.whatwg.org/#dom-url-hash
hash: accessorDescriptor(getHash, function (hash) {
var url = getInternalURLState(this);
hash = String(hash);
if (hash == '') {
url.fragment = null;
return;
}
if ('#' == hash.charAt(0)) hash = hash.slice(1);
url.fragment = '';
parseURL(url, hash, FRAGMENT);
})
});
}
// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
redefine(URLPrototype, 'toJSON', function toJSON() {
return serializeURL.call(this);
}, { enumerable: true });
// `URL.prototype.toString` method
// https://url.spec.whatwg.org/#URL-stringification-behavior
redefine(URLPrototype, 'toString', function toString() {
return serializeURL.call(this);
}, { enumerable: true });
if (NativeURL) {
var nativeCreateObjectURL = NativeURL.createObjectURL;
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
// `URL.createObjectURL` method
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
// eslint-disable-next-line no-unused-vars
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {
return nativeCreateObjectURL.apply(NativeURL, arguments);
});
// `URL.revokeObjectURL` method
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
// eslint-disable-next-line no-unused-vars
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {
return nativeRevokeObjectURL.apply(NativeURL, arguments);
});
}
setToStringTag(URLConstructor, 'URL');
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
URL: URLConstructor
});
core-js-3.8.2/packages/core-js/modules/web.url.to-json.js 0000664 0000000 0000000 00000000421 13774351224 0023167 0 ustar 00root root 0000000 0000000 'use strict';
var $ = require('../internals/export');
// `URL.prototype.toJSON` method
// https://url.spec.whatwg.org/#dom-url-tojson
$({ target: 'URL', proto: true, enumerable: true }, {
toJSON: function toJSON() {
return URL.prototype.toString.call(this);
}
});
core-js-3.8.2/packages/core-js/package.json 0000664 0000000 0000000 00000002025 13774351224 0020503 0 ustar 00root root 0000000 0000000 {
"name": "core-js",
"description": "Standard library",
"version": "3.8.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
},
"main": "index.js",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
},
"license": "MIT",
"keywords": [
"ES3",
"ES5",
"ES6",
"ES7",
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020",
"ECMAScript 3",
"ECMAScript 5",
"ECMAScript 6",
"ECMAScript 7",
"ECMAScript 2015",
"ECMAScript 2016",
"ECMAScript 2017",
"ECMAScript 2018",
"ECMAScript 2019",
"ECMAScript 2020",
"Harmony",
"Strawman",
"Map",
"Set",
"WeakMap",
"WeakSet",
"Promise",
"Observable",
"Symbol",
"TypedArray",
"URL",
"URLSearchParams",
"queueMicrotask",
"setImmediate",
"polyfill",
"ponyfill",
"shim"
],
"scripts": {
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
}
}
core-js-3.8.2/packages/core-js/postinstall.js 0000664 0000000 0000000 00000004132 13774351224 0021130 0 ustar 00root root 0000000 0000000 /* eslint-disable max-len */
var fs = require('fs');
var os = require('os');
var path = require('path');
var env = process.env;
var ADBLOCK = is(env.ADBLOCK);
var COLOR = is(env.npm_config_color);
var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE);
var SILENT = ['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel) !== -1;
var OPEN_SOURCE_CONTRIBUTOR = is(env.OPEN_SOURCE_CONTRIBUTOR);
var MINUTE = 60 * 1000;
// you could add a PR with an env variable for your CI detection
var CI = [
'BUILD_NUMBER',
'CI',
'CONTINUOUS_INTEGRATION',
'DRONE',
'RUN_ID'
].some(function (it) { return is(env[it]); });
var BANNER = '\u001B[96mThank you for using core-js (\u001B[94m https://github.com/zloirock/core-js \u001B[96m) for polyfilling JavaScript standard library!\u001B[0m\n\n' +
'\u001B[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: \u001B[0m\n' +
'\u001B[96m>\u001B[94m https://opencollective.com/core-js \u001B[0m\n' +
'\u001B[96m>\u001B[94m https://www.patreon.com/zloirock \u001B[0m\n\n' +
'\u001B[96mAlso, the author of core-js (\u001B[94m https://github.com/zloirock \u001B[96m) is looking for a good job -)\u001B[0m\n';
function is(it) {
return !!it && it !== '0' && it !== 'false';
}
function isBannerRequired() {
if (ADBLOCK || CI || DISABLE_OPENCOLLECTIVE || SILENT || OPEN_SOURCE_CONTRIBUTOR) return false;
var file = path.join(os.tmpdir(), 'core-js-banners');
var banners = [];
try {
var DELTA = Date.now() - fs.statSync(file).mtime;
if (DELTA >= 0 && DELTA < MINUTE * 3) {
banners = JSON.parse(fs.readFileSync(file, 'utf8'));
if (banners.indexOf(BANNER) !== -1) return false;
}
} catch (error) {
banners = [];
}
try {
banners.push(BANNER);
fs.writeFileSync(file, JSON.stringify(banners), 'utf8');
} catch (error) { /* empty */ }
return true;
}
function showBanner() {
// eslint-disable-next-line no-console,no-control-regex
console.log(COLOR ? BANNER : BANNER.replace(/\u001B\[\d+m/g, ''));
}
if (isBannerRequired()) showBanner();
core-js-3.8.2/packages/core-js/proposals/ 0000775 0000000 0000000 00000000000 13774351224 0020240 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/proposals/array-filtering.js 0000664 0000000 0000000 00000000230 13774351224 0023670 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-array-filtering
require('../modules/esnext.array.filter-out');
require('../modules/esnext.typed-array.filter-out');
core-js-3.8.2/packages/core-js/proposals/array-is-template-object.js 0000664 0000000 0000000 00000000067 13774351224 0025405 0 ustar 00root root 0000000 0000000 require('../modules/esnext.array.is-template-object');
core-js-3.8.2/packages/core-js/proposals/array-last.js 0000664 0000000 0000000 00000000135 13774351224 0022654 0 ustar 00root root 0000000 0000000 require('../modules/esnext.array.last-index');
require('../modules/esnext.array.last-item');
core-js-3.8.2/packages/core-js/proposals/array-unique.js 0000664 0000000 0000000 00000000175 13774351224 0023223 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-array-unique
require('../modules/es.map');
require('../modules/esnext.array.unique-by');
core-js-3.8.2/packages/core-js/proposals/collection-methods.js 0000664 0000000 0000000 00000002160 13774351224 0024371 0 ustar 00root root 0000000 0000000 require('../modules/esnext.map.group-by');
require('../modules/esnext.map.key-by');
require('../modules/esnext.map.delete-all');
require('../modules/esnext.map.every');
require('../modules/esnext.map.filter');
require('../modules/esnext.map.find');
require('../modules/esnext.map.find-key');
require('../modules/esnext.map.includes');
require('../modules/esnext.map.key-of');
require('../modules/esnext.map.map-keys');
require('../modules/esnext.map.map-values');
require('../modules/esnext.map.merge');
require('../modules/esnext.map.reduce');
require('../modules/esnext.map.some');
require('../modules/esnext.map.update');
require('../modules/esnext.set.add-all');
require('../modules/esnext.set.delete-all');
require('../modules/esnext.set.every');
require('../modules/esnext.set.filter');
require('../modules/esnext.set.find');
require('../modules/esnext.set.join');
require('../modules/esnext.set.map');
require('../modules/esnext.set.reduce');
require('../modules/esnext.set.some');
require('../modules/esnext.weak-map.delete-all');
require('../modules/esnext.weak-set.add-all');
require('../modules/esnext.weak-set.delete-all');
core-js-3.8.2/packages/core-js/proposals/collection-of-from.js 0000664 0000000 0000000 00000000504 13774351224 0024273 0 ustar 00root root 0000000 0000000 require('../modules/esnext.map.from');
require('../modules/esnext.map.of');
require('../modules/esnext.set.from');
require('../modules/esnext.set.of');
require('../modules/esnext.weak-map.from');
require('../modules/esnext.weak-map.of');
require('../modules/esnext.weak-set.from');
require('../modules/esnext.weak-set.of');
core-js-3.8.2/packages/core-js/proposals/efficient-64-bit-arithmetic.js 0000664 0000000 0000000 00000000322 13774351224 0025661 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4` as withdrawn
require('../modules/esnext.math.iaddh');
require('../modules/esnext.math.isubh');
require('../modules/esnext.math.imulh');
require('../modules/esnext.math.umulh');
core-js-3.8.2/packages/core-js/proposals/global-this.js 0000664 0000000 0000000 00000000161 13774351224 0023001 0 ustar 00root root 0000000 0000000 require('../modules/esnext.global-this');
var global = require('../internals/global');
module.exports = global;
core-js-3.8.2/packages/core-js/proposals/index.js 0000664 0000000 0000000 00000000025 13774351224 0021702 0 ustar 00root root 0000000 0000000 require('../stage');
core-js-3.8.2/packages/core-js/proposals/iterator-helpers.js 0000664 0000000 0000000 00000002552 13774351224 0024073 0 ustar 00root root 0000000 0000000 require('../modules/esnext.async-iterator.constructor');
require('../modules/esnext.async-iterator.as-indexed-pairs');
require('../modules/esnext.async-iterator.drop');
require('../modules/esnext.async-iterator.every');
require('../modules/esnext.async-iterator.filter');
require('../modules/esnext.async-iterator.find');
require('../modules/esnext.async-iterator.flat-map');
require('../modules/esnext.async-iterator.for-each');
require('../modules/esnext.async-iterator.from');
require('../modules/esnext.async-iterator.map');
require('../modules/esnext.async-iterator.reduce');
require('../modules/esnext.async-iterator.some');
require('../modules/esnext.async-iterator.take');
require('../modules/esnext.async-iterator.to-array');
require('../modules/esnext.iterator.constructor');
require('../modules/esnext.iterator.as-indexed-pairs');
require('../modules/esnext.iterator.drop');
require('../modules/esnext.iterator.every');
require('../modules/esnext.iterator.filter');
require('../modules/esnext.iterator.find');
require('../modules/esnext.iterator.flat-map');
require('../modules/esnext.iterator.for-each');
require('../modules/esnext.iterator.from');
require('../modules/esnext.iterator.map');
require('../modules/esnext.iterator.reduce');
require('../modules/esnext.iterator.some');
require('../modules/esnext.iterator.take');
require('../modules/esnext.iterator.to-array');
core-js-3.8.2/packages/core-js/proposals/keys-composition.js 0000664 0000000 0000000 00000000133 13774351224 0024107 0 ustar 00root root 0000000 0000000 require('../modules/esnext.composite-key');
require('../modules/esnext.composite-symbol');
core-js-3.8.2/packages/core-js/proposals/map-update-or-insert.js 0000664 0000000 0000000 00000000072 13774351224 0024552 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('./map-upsert');
core-js-3.8.2/packages/core-js/proposals/map-upsert.js 0000664 0000000 0000000 00000000567 13774351224 0022703 0 ustar 00root root 0000000 0000000 // https://github.com/thumbsupep/proposal-upsert
require('../modules/esnext.map.emplace');
// TODO: remove from `core-js@4`
require('../modules/esnext.map.update-or-insert');
// TODO: remove from `core-js@4`
require('../modules/esnext.map.upsert');
require('../modules/esnext.weak-map.emplace');
// TODO: remove from `core-js@4`
require('../modules/esnext.weak-map.upsert');
core-js-3.8.2/packages/core-js/proposals/math-extensions.js 0000664 0000000 0000000 00000000460 13774351224 0023724 0 ustar 00root root 0000000 0000000 require('../modules/esnext.math.clamp');
require('../modules/esnext.math.deg-per-rad');
require('../modules/esnext.math.degrees');
require('../modules/esnext.math.fscale');
require('../modules/esnext.math.rad-per-deg');
require('../modules/esnext.math.radians');
require('../modules/esnext.math.scale');
core-js-3.8.2/packages/core-js/proposals/math-signbit.js 0000664 0000000 0000000 00000000053 13774351224 0023162 0 ustar 00root root 0000000 0000000 require('../modules/esnext.math.signbit');
core-js-3.8.2/packages/core-js/proposals/number-from-string.js 0000664 0000000 0000000 00000000061 13774351224 0024330 0 ustar 00root root 0000000 0000000 require('../modules/esnext.number.from-string');
core-js-3.8.2/packages/core-js/proposals/number-range.js 0000664 0000000 0000000 00000000207 13774351224 0023157 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-Number.range
require('../modules/esnext.bigint.range');
require('../modules/esnext.number.range');
core-js-3.8.2/packages/core-js/proposals/object-iteration.js 0000664 0000000 0000000 00000000311 13774351224 0024033 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4` as withdrawn
require('../modules/esnext.object.iterate-entries');
require('../modules/esnext.object.iterate-keys');
require('../modules/esnext.object.iterate-values');
core-js-3.8.2/packages/core-js/proposals/observable.js 0000664 0000000 0000000 00000000131 13774351224 0022715 0 ustar 00root root 0000000 0000000 require('../modules/esnext.observable');
require('../modules/esnext.symbol.observable');
core-js-3.8.2/packages/core-js/proposals/pattern-matching.js 0000664 0000000 0000000 00000000063 13774351224 0024042 0 ustar 00root root 0000000 0000000 require('../modules/esnext.symbol.pattern-match');
core-js-3.8.2/packages/core-js/proposals/promise-all-settled.js 0000664 0000000 0000000 00000000123 13774351224 0024460 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('../modules/esnext.promise.all-settled');
core-js-3.8.2/packages/core-js/proposals/promise-any.js 0000664 0000000 0000000 00000000130 13774351224 0023033 0 ustar 00root root 0000000 0000000 require('../modules/esnext.aggregate-error');
require('../modules/esnext.promise.any');
core-js-3.8.2/packages/core-js/proposals/promise-try.js 0000664 0000000 0000000 00000000052 13774351224 0023065 0 ustar 00root root 0000000 0000000 require('../modules/esnext.promise.try');
core-js-3.8.2/packages/core-js/proposals/reflect-metadata.js 0000664 0000000 0000000 00000000743 13774351224 0024004 0 ustar 00root root 0000000 0000000 require('../modules/esnext.reflect.define-metadata');
require('../modules/esnext.reflect.delete-metadata');
require('../modules/esnext.reflect.get-metadata');
require('../modules/esnext.reflect.get-metadata-keys');
require('../modules/esnext.reflect.get-own-metadata');
require('../modules/esnext.reflect.get-own-metadata-keys');
require('../modules/esnext.reflect.has-metadata');
require('../modules/esnext.reflect.has-own-metadata');
require('../modules/esnext.reflect.metadata');
core-js-3.8.2/packages/core-js/proposals/relative-indexing-method.js 0000664 0000000 0000000 00000000423 13774351224 0025471 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-relative-indexing-method
require('../modules/esnext.array.at');
// TODO: disabled by default because of the conflict with another proposal
// require('../modules/esnext.string.at-alternative');
require('../modules/esnext.typed-array.at');
core-js-3.8.2/packages/core-js/proposals/seeded-random.js 0000664 0000000 0000000 00000000057 13774351224 0023307 0 ustar 00root root 0000000 0000000 require('../modules/esnext.math.seeded-prng');
core-js-3.8.2/packages/core-js/proposals/set-methods.js 0000664 0000000 0000000 00000000516 13774351224 0023034 0 ustar 00root root 0000000 0000000 require('../modules/esnext.set.difference');
require('../modules/esnext.set.intersection');
require('../modules/esnext.set.is-disjoint-from');
require('../modules/esnext.set.is-subset-of');
require('../modules/esnext.set.is-superset-of');
require('../modules/esnext.set.union');
require('../modules/esnext.set.symmetric-difference');
core-js-3.8.2/packages/core-js/proposals/string-at.js 0000664 0000000 0000000 00000000050 13774351224 0022501 0 ustar 00root root 0000000 0000000 require('../modules/esnext.string.at');
core-js-3.8.2/packages/core-js/proposals/string-code-points.js 0000664 0000000 0000000 00000000061 13774351224 0024323 0 ustar 00root root 0000000 0000000 require('../modules/esnext.string.code-points');
core-js-3.8.2/packages/core-js/proposals/string-match-all.js 0000664 0000000 0000000 00000000120 13774351224 0023735 0 ustar 00root root 0000000 0000000 // TODO: Remove from `core-js@4`
require('../modules/esnext.string.match-all');
core-js-3.8.2/packages/core-js/proposals/string-replace-all.js 0000664 0000000 0000000 00000000142 13774351224 0024260 0 ustar 00root root 0000000 0000000 require('../modules/esnext.string.replace-all');
require('../modules/esnext.symbol.replace-all');
core-js-3.8.2/packages/core-js/proposals/url.js 0000664 0000000 0000000 00000000163 13774351224 0021400 0 ustar 00root root 0000000 0000000 require('../modules/web.url');
require('../modules/web.url.to-json');
require('../modules/web.url-search-params');
core-js-3.8.2/packages/core-js/proposals/using-statement.js 0000664 0000000 0000000 00000000224 13774351224 0023723 0 ustar 00root root 0000000 0000000 // https://github.com/tc39/proposal-using-statement
require('../modules/esnext.symbol.async-dispose');
require('../modules/esnext.symbol.dispose');
core-js-3.8.2/packages/core-js/stable/ 0000775 0000000 0000000 00000000000 13774351224 0017470 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/README.md 0000664 0000000 0000000 00000000222 13774351224 0020743 0 ustar 00root root 0000000 0000000 This folder contains entry points for all stable `core-js` features with dependencies. It's the recommended way for usage only required features.
core-js-3.8.2/packages/core-js/stable/aggregate-error.js 0000664 0000000 0000000 00000000231 13774351224 0023077 0 ustar 00root root 0000000 0000000 // TODO: remove from `core-js@4`
require('../modules/esnext.aggregate-error');
var parent = require('../es/aggregate-error');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array-buffer/ 0000775 0000000 0000000 00000000000 13774351224 0022055 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/array-buffer/constructor.js 0000664 0000000 0000000 00000000125 13774351224 0024776 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array-buffer/index.js 0000664 0000000 0000000 00000000111 13774351224 0023513 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array-buffer/is-view.js 0000664 0000000 0000000 00000000121 13774351224 0023770 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/is-view');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array-buffer/slice.js 0000664 0000000 0000000 00000000117 13774351224 0023511 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array-buffer/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/ 0000775 0000000 0000000 00000000000 13774351224 0020606 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/array/concat.js 0000664 0000000 0000000 00000000111 13774351224 0022404 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/copy-within.js 0000664 0000000 0000000 00000000116 13774351224 0023414 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/entries.js 0000664 0000000 0000000 00000000112 13774351224 0022607 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/every.js 0000664 0000000 0000000 00000000110 13774351224 0022266 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/fill.js 0000664 0000000 0000000 00000000107 13774351224 0022070 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/filter.js 0000664 0000000 0000000 00000000111 13774351224 0022422 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/find-index.js 0000664 0000000 0000000 00000000115 13774351224 0023166 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/find.js 0000664 0000000 0000000 00000000107 13774351224 0022062 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/flat-map.js 0000664 0000000 0000000 00000000113 13774351224 0022640 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/flat.js 0000664 0000000 0000000 00000000107 13774351224 0022070 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/for-each.js 0000664 0000000 0000000 00000000113 13774351224 0022623 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/from.js 0000664 0000000 0000000 00000000107 13774351224 0022105 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/from');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/includes.js 0000664 0000000 0000000 00000000113 13774351224 0022745 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/index-of.js 0000664 0000000 0000000 00000000113 13774351224 0022650 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/index.js 0000664 0000000 0000000 00000000102 13774351224 0022244 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/is-array.js 0000664 0000000 0000000 00000000113 13774351224 0022666 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/is-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/iterator.js 0000664 0000000 0000000 00000000113 13774351224 0022770 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/join.js 0000664 0000000 0000000 00000000107 13774351224 0022101 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/join');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/keys.js 0000664 0000000 0000000 00000000107 13774351224 0022115 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/last-index-of.js 0000664 0000000 0000000 00000000120 13774351224 0023607 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/map.js 0000664 0000000 0000000 00000000106 13774351224 0021716 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/of.js 0000664 0000000 0000000 00000000105 13774351224 0021544 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/reduce-right.js 0000664 0000000 0000000 00000000117 13774351224 0023525 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/reduce.js 0000664 0000000 0000000 00000000111 13774351224 0022404 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/reverse.js 0000664 0000000 0000000 00000000112 13774351224 0022611 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/slice.js 0000664 0000000 0000000 00000000110 13774351224 0022233 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/some.js 0000664 0000000 0000000 00000000107 13774351224 0022105 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/sort.js 0000664 0000000 0000000 00000000107 13774351224 0022131 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/splice.js 0000664 0000000 0000000 00000000111 13774351224 0022414 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/values.js 0000664 0000000 0000000 00000000111 13774351224 0022434 0 ustar 00root root 0000000 0000000 var parent = require('../../es/array/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0022274 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/array/virtual/concat.js 0000664 0000000 0000000 00000000124 13774351224 0024076 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/copy-within.js 0000664 0000000 0000000 00000000131 13774351224 0025077 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/entries.js 0000664 0000000 0000000 00000000125 13774351224 0024301 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/every.js 0000664 0000000 0000000 00000000123 13774351224 0023760 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/fill.js 0000664 0000000 0000000 00000000122 13774351224 0023553 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/filter.js 0000664 0000000 0000000 00000000124 13774351224 0024114 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/find-index.js 0000664 0000000 0000000 00000000130 13774351224 0024651 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/find.js 0000664 0000000 0000000 00000000122 13774351224 0023545 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/flat-map.js 0000664 0000000 0000000 00000000126 13774351224 0024332 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/flat.js 0000664 0000000 0000000 00000000122 13774351224 0023553 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/for-each.js 0000664 0000000 0000000 00000000126 13774351224 0024315 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/includes.js 0000664 0000000 0000000 00000000126 13774351224 0024437 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/index-of.js 0000664 0000000 0000000 00000000126 13774351224 0024342 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/index.js 0000664 0000000 0000000 00000000115 13774351224 0023736 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/iterator.js 0000664 0000000 0000000 00000000126 13774351224 0024462 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/join.js 0000664 0000000 0000000 00000000122 13774351224 0023564 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/join');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/keys.js 0000664 0000000 0000000 00000000122 13774351224 0023600 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/last-index-of.js 0000664 0000000 0000000 00000000133 13774351224 0025301 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/map.js 0000664 0000000 0000000 00000000121 13774351224 0023401 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/reduce-right.js 0000664 0000000 0000000 00000000132 13774351224 0025210 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/reduce.js 0000664 0000000 0000000 00000000124 13774351224 0024076 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/reverse.js 0000664 0000000 0000000 00000000125 13774351224 0024303 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/slice.js 0000664 0000000 0000000 00000000123 13774351224 0023725 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/some.js 0000664 0000000 0000000 00000000122 13774351224 0023570 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/sort.js 0000664 0000000 0000000 00000000122 13774351224 0023614 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/splice.js 0000664 0000000 0000000 00000000124 13774351224 0024106 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/array/virtual/values.js 0000664 0000000 0000000 00000000124 13774351224 0024126 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/array/virtual/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/clear-immediate.js 0000664 0000000 0000000 00000000165 13774351224 0023052 0 ustar 00root root 0000000 0000000 require('../modules/web.immediate');
var path = require('../internals/path');
module.exports = path.clearImmediate;
core-js-3.8.2/packages/core-js/stable/data-view/ 0000775 0000000 0000000 00000000000 13774351224 0021351 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/data-view/index.js 0000664 0000000 0000000 00000000106 13774351224 0023013 0 ustar 00root root 0000000 0000000 var parent = require('../../es/data-view');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/ 0000775 0000000 0000000 00000000000 13774351224 0020405 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/date/index.js 0000664 0000000 0000000 00000000101 13774351224 0022042 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/now.js 0000664 0000000 0000000 00000000105 13774351224 0021542 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/now');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/to-iso-string.js 0000664 0000000 0000000 00000000117 13774351224 0023460 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-iso-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/to-json.js 0000664 0000000 0000000 00000000111 13774351224 0022325 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-json');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/to-primitive.js 0000664 0000000 0000000 00000000116 13774351224 0023371 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-primitive');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/date/to-string.js 0000664 0000000 0000000 00000000113 13774351224 0022664 0 ustar 00root root 0000000 0000000 var parent = require('../../es/date/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/dom-collections/ 0000775 0000000 0000000 00000000000 13774351224 0022563 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/dom-collections/for-each.js 0000664 0000000 0000000 00000000212 13774351224 0024600 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.for-each');
var parent = require('../../internals/array-for-each');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/dom-collections/index.js 0000664 0000000 0000000 00000000626 13774351224 0024234 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.for-each');
require('../../modules/web.dom-collections.iterator');
var ArrayIterators = require('../../modules/es.array.iterator');
var forEach = require('../../internals/array-for-each');
module.exports = {
keys: ArrayIterators.keys,
values: ArrayIterators.values,
entries: ArrayIterators.entries,
iterator: ArrayIterators.values,
forEach: forEach
};
core-js-3.8.2/packages/core-js/stable/dom-collections/iterator.js 0000664 0000000 0000000 00000000244 13774351224 0024752 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.iterator');
var entryUnbind = require('../../internals/entry-unbind');
module.exports = entryUnbind('Array', 'values');
core-js-3.8.2/packages/core-js/stable/function/ 0000775 0000000 0000000 00000000000 13774351224 0021315 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/function/bind.js 0000664 0000000 0000000 00000000112 13774351224 0022561 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/function/has-instance.js 0000664 0000000 0000000 00000000122 13774351224 0024223 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/has-instance');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/function/index.js 0000664 0000000 0000000 00000000105 13774351224 0022756 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/function/name.js 0000664 0000000 0000000 00000000112 13774351224 0022565 0 ustar 00root root 0000000 0000000 var parent = require('../../es/function/name');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/function/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0023003 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/function/virtual/bind.js 0000664 0000000 0000000 00000000125 13774351224 0024253 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/function/virtual/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/function/virtual/index.js 0000664 0000000 0000000 00000000120 13774351224 0024441 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/function/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/global-this.js 0000664 0000000 0000000 00000000105 13774351224 0022227 0 ustar 00root root 0000000 0000000 var parent = require('../es/global-this');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/index.js 0000664 0000000 0000000 00000000146 13774351224 0021136 0 ustar 00root root 0000000 0000000 require('../es');
require('../web');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/stable/instance/ 0000775 0000000 0000000 00000000000 13774351224 0021274 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/instance/bind.js 0000664 0000000 0000000 00000000112 13774351224 0022540 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/bind');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/code-point-at.js 0000664 0000000 0000000 00000000123 13774351224 0024271 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/concat.js 0000664 0000000 0000000 00000000114 13774351224 0023075 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/concat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/copy-within.js 0000664 0000000 0000000 00000000121 13774351224 0024076 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/copy-within');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/ends-with.js 0000664 0000000 0000000 00000000117 13774351224 0023533 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/entries.js 0000664 0000000 0000000 00000001020 13774351224 0023274 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.iterator');
var entries = require('../array/virtual/entries');
var classof = require('../../internals/classof');
var ArrayPrototype = Array.prototype;
var DOMIterables = {
DOMTokenList: true,
NodeList: true
};
module.exports = function (it) {
var own = it.entries;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.entries)
// eslint-disable-next-line no-prototype-builtins
|| DOMIterables.hasOwnProperty(classof(it)) ? entries : own;
};
core-js-3.8.2/packages/core-js/stable/instance/every.js 0000664 0000000 0000000 00000000113 13774351224 0022757 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/every');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/fill.js 0000664 0000000 0000000 00000000112 13774351224 0022552 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/fill');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/filter.js 0000664 0000000 0000000 00000000114 13774351224 0023113 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/filter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/find-index.js 0000664 0000000 0000000 00000000120 13774351224 0023650 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/find-index');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/find.js 0000664 0000000 0000000 00000000112 13774351224 0022544 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/find');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/flags.js 0000664 0000000 0000000 00000000113 13774351224 0022721 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flags');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/flat-map.js 0000664 0000000 0000000 00000000116 13774351224 0023331 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flat-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/flat.js 0000664 0000000 0000000 00000000112 13774351224 0022552 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/flat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/for-each.js 0000664 0000000 0000000 00000001021 13774351224 0023310 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.iterator');
var forEach = require('../array/virtual/for-each');
var classof = require('../../internals/classof');
var ArrayPrototype = Array.prototype;
var DOMIterables = {
DOMTokenList: true,
NodeList: true
};
module.exports = function (it) {
var own = it.forEach;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach)
// eslint-disable-next-line no-prototype-builtins
|| DOMIterables.hasOwnProperty(classof(it)) ? forEach : own;
};
core-js-3.8.2/packages/core-js/stable/instance/includes.js 0000664 0000000 0000000 00000000116 13774351224 0023436 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/index-of.js 0000664 0000000 0000000 00000000116 13774351224 0023341 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/keys.js 0000664 0000000 0000000 00000001001 13774351224 0022575 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.iterator');
var keys = require('../array/virtual/keys');
var classof = require('../../internals/classof');
var ArrayPrototype = Array.prototype;
var DOMIterables = {
DOMTokenList: true,
NodeList: true
};
module.exports = function (it) {
var own = it.keys;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.keys)
// eslint-disable-next-line no-prototype-builtins
|| DOMIterables.hasOwnProperty(classof(it)) ? keys : own;
};
core-js-3.8.2/packages/core-js/stable/instance/last-index-of.js 0000664 0000000 0000000 00000000123 13774351224 0024300 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/last-index-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/map.js 0000664 0000000 0000000 00000000111 13774351224 0022400 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/match-all.js 0000664 0000000 0000000 00000000117 13774351224 0023473 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/pad-end.js 0000664 0000000 0000000 00000000115 13774351224 0023137 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/pad-start.js 0000664 0000000 0000000 00000000117 13774351224 0023530 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/reduce-right.js 0000664 0000000 0000000 00000000122 13774351224 0024207 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reduce-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/reduce.js 0000664 0000000 0000000 00000000114 13774351224 0023075 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reduce');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/repeat.js 0000664 0000000 0000000 00000000114 13774351224 0023106 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/replace-all.js 0000664 0000000 0000000 00000000121 13774351224 0024005 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/reverse.js 0000664 0000000 0000000 00000000115 13774351224 0023302 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/reverse');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/slice.js 0000664 0000000 0000000 00000000113 13774351224 0022724 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/slice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/some.js 0000664 0000000 0000000 00000000112 13774351224 0022567 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/some');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/sort.js 0000664 0000000 0000000 00000000112 13774351224 0022613 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/sort');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/splice.js 0000664 0000000 0000000 00000000114 13774351224 0023105 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/splice');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/starts-with.js 0000664 0000000 0000000 00000000121 13774351224 0024115 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/trim-end.js 0000664 0000000 0000000 00000000116 13774351224 0023347 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/trim-left.js 0000664 0000000 0000000 00000000117 13774351224 0023534 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/trim-right.js 0000664 0000000 0000000 00000000120 13774351224 0023711 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/trim-start.js 0000664 0000000 0000000 00000000120 13774351224 0023731 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/trim.js 0000664 0000000 0000000 00000000112 13774351224 0022577 0 ustar 00root root 0000000 0000000 var parent = require('../../es/instance/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/instance/values.js 0000664 0000000 0000000 00000001013 13774351224 0023124 0 ustar 00root root 0000000 0000000 require('../../modules/web.dom-collections.iterator');
var values = require('../array/virtual/values');
var classof = require('../../internals/classof');
var ArrayPrototype = Array.prototype;
var DOMIterables = {
DOMTokenList: true,
NodeList: true
};
module.exports = function (it) {
var own = it.values;
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.values)
// eslint-disable-next-line no-prototype-builtins
|| DOMIterables.hasOwnProperty(classof(it)) ? values : own;
};
core-js-3.8.2/packages/core-js/stable/json/ 0000775 0000000 0000000 00000000000 13774351224 0020441 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/json/index.js 0000664 0000000 0000000 00000000101 13774351224 0022076 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/json/stringify.js 0000664 0000000 0000000 00000000113 13774351224 0023010 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json/stringify');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/json/to-string-tag.js 0000664 0000000 0000000 00000000117 13774351224 0023475 0 ustar 00root root 0000000 0000000 var parent = require('../../es/json/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/map/ 0000775 0000000 0000000 00000000000 13774351224 0020245 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/map/index.js 0000664 0000000 0000000 00000000100 13774351224 0021701 0 ustar 00root root 0000000 0000000 var parent = require('../../es/map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/ 0000775 0000000 0000000 00000000000 13774351224 0020421 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/math/acosh.js 0000664 0000000 0000000 00000000107 13774351224 0022052 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/acosh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/asinh.js 0000664 0000000 0000000 00000000107 13774351224 0022057 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/asinh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/atanh.js 0000664 0000000 0000000 00000000107 13774351224 0022050 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/atanh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/cbrt.js 0000664 0000000 0000000 00000000106 13774351224 0021706 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/cbrt');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/clz32.js 0000664 0000000 0000000 00000000107 13774351224 0021712 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/clz32');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/cosh.js 0000664 0000000 0000000 00000000106 13774351224 0021710 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/cosh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/expm1.js 0000664 0000000 0000000 00000000107 13774351224 0022007 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/expm1');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/fround.js 0000664 0000000 0000000 00000000110 13774351224 0022244 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/fround');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/hypot.js 0000664 0000000 0000000 00000000107 13774351224 0022120 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/hypot');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/imul.js 0000664 0000000 0000000 00000000106 13774351224 0021722 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/imul');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/index.js 0000664 0000000 0000000 00000000101 13774351224 0022056 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/log10.js 0000664 0000000 0000000 00000000107 13774351224 0021677 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log10');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/log1p.js 0000664 0000000 0000000 00000000107 13774351224 0021777 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log1p');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/log2.js 0000664 0000000 0000000 00000000106 13774351224 0021617 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/log2');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/sign.js 0000664 0000000 0000000 00000000106 13774351224 0021714 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/sign');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/sinh.js 0000664 0000000 0000000 00000000106 13774351224 0021715 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/sinh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/tanh.js 0000664 0000000 0000000 00000000106 13774351224 0021706 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/tanh');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/to-string-tag.js 0000664 0000000 0000000 00000000117 13774351224 0023455 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/math/trunc.js 0000664 0000000 0000000 00000000107 13774351224 0022110 0 ustar 00root root 0000000 0000000 var parent = require('../../es/math/trunc');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/ 0000775 0000000 0000000 00000000000 13774351224 0020760 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/number/constructor.js 0000664 0000000 0000000 00000000117 13774351224 0023702 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/epsilon.js 0000664 0000000 0000000 00000000113 13774351224 0022762 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/epsilon');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/index.js 0000664 0000000 0000000 00000000103 13774351224 0022417 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/is-finite.js 0000664 0000000 0000000 00000000115 13774351224 0023202 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-finite');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/is-integer.js 0000664 0000000 0000000 00000000116 13774351224 0023362 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/is-nan.js 0000664 0000000 0000000 00000000112 13774351224 0022475 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-nan');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/is-safe-integer.js 0000664 0000000 0000000 00000000123 13774351224 0024274 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/is-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/max-safe-integer.js 0000664 0000000 0000000 00000000124 13774351224 0024447 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/max-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/min-safe-integer.js 0000664 0000000 0000000 00000000124 13774351224 0024445 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/min-safe-integer');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/parse-float.js 0000664 0000000 0000000 00000000117 13774351224 0023532 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/parse-float');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/parse-int.js 0000664 0000000 0000000 00000000115 13774351224 0023215 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/parse-int');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/to-fixed.js 0000664 0000000 0000000 00000000114 13774351224 0023031 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/to-fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/to-precision.js 0000664 0000000 0000000 00000000120 13774351224 0023722 0 ustar 00root root 0000000 0000000 var parent = require('../../es/number/to-precision');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0022446 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/number/virtual/index.js 0000664 0000000 0000000 00000000116 13774351224 0024111 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/virtual/to-fixed.js 0000664 0000000 0000000 00000000127 13774351224 0024523 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual/to-fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/number/virtual/to-precision.js 0000664 0000000 0000000 00000000133 13774351224 0025414 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/number/virtual/to-precision');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/ 0000775 0000000 0000000 00000000000 13774351224 0020736 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/object/assign.js 0000664 0000000 0000000 00000000112 13774351224 0022552 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/assign');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/create.js 0000664 0000000 0000000 00000000112 13774351224 0022531 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/create');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/define-getter.js 0000664 0000000 0000000 00000000121 13774351224 0024010 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-getter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/define-properties.js 0000664 0000000 0000000 00000000125 13774351224 0024716 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-properties');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/define-property.js 0000664 0000000 0000000 00000000123 13774351224 0024404 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/define-setter.js 0000664 0000000 0000000 00000000121 13774351224 0024024 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/define-setter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/entries.js 0000664 0000000 0000000 00000000113 13774351224 0022740 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/freeze.js 0000664 0000000 0000000 00000000112 13774351224 0022546 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/freeze');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/from-entries.js 0000664 0000000 0000000 00000000120 13774351224 0023677 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/from-entries');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/get-own-property-descriptor.js 0000664 0000000 0000000 00000000137 13774351224 0026713 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-descriptor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/get-own-property-descriptors.js 0000664 0000000 0000000 00000000140 13774351224 0027070 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-descriptors');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/get-own-property-names.js 0000664 0000000 0000000 00000000132 13774351224 0025633 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-names');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/get-own-property-symbols.js 0000664 0000000 0000000 00000000134 13774351224 0026222 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-own-property-symbols');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/get-prototype-of.js 0000664 0000000 0000000 00000000124 13774351224 0024515 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/get-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/index.js 0000664 0000000 0000000 00000000103 13774351224 0022375 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/is-extensible.js 0000664 0000000 0000000 00000000121 13774351224 0024041 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-extensible');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/is-frozen.js 0000664 0000000 0000000 00000000115 13774351224 0023205 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-frozen');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/is-sealed.js 0000664 0000000 0000000 00000000115 13774351224 0023137 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is-sealed');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/is.js 0000664 0000000 0000000 00000000106 13774351224 0021704 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/is');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/keys.js 0000664 0000000 0000000 00000000110 13774351224 0022237 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/lookup-getter.js 0000664 0000000 0000000 00000000121 13774351224 0024067 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/lookup-getter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/lookup-setter.js 0000664 0000000 0000000 00000000121 13774351224 0024103 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/lookup-setter');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/prevent-extensions.js 0000664 0000000 0000000 00000000126 13774351224 0025153 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/prevent-extensions');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/seal.js 0000664 0000000 0000000 00000000110 13774351224 0022210 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/seal');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/set-prototype-of.js 0000664 0000000 0000000 00000000124 13774351224 0024531 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/set-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/to-string.js 0000664 0000000 0000000 00000000115 13774351224 0023217 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/object/values.js 0000664 0000000 0000000 00000000112 13774351224 0022565 0 ustar 00root root 0000000 0000000 var parent = require('../../es/object/values');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/parse-float.js 0000664 0000000 0000000 00000000105 13774351224 0022237 0 ustar 00root root 0000000 0000000 var parent = require('../es/parse-float');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/parse-int.js 0000664 0000000 0000000 00000000103 13774351224 0021722 0 ustar 00root root 0000000 0000000 var parent = require('../es/parse-int');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/promise/ 0000775 0000000 0000000 00000000000 13774351224 0021146 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/promise/all-settled.js 0000664 0000000 0000000 00000000120 13774351224 0023707 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise/all-settled');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/promise/any.js 0000664 0000000 0000000 00000000110 13774351224 0022263 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise/any');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/promise/finally.js 0000664 0000000 0000000 00000000114 13774351224 0023136 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise/finally');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/promise/index.js 0000664 0000000 0000000 00000000104 13774351224 0022606 0 ustar 00root root 0000000 0000000 var parent = require('../../es/promise');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/queue-microtask.js 0000664 0000000 0000000 00000000112 13774351224 0023136 0 ustar 00root root 0000000 0000000 var parent = require('../web/queue-microtask');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/ 0000775 0000000 0000000 00000000000 13774351224 0021114 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/reflect/apply.js 0000664 0000000 0000000 00000000112 13774351224 0022571 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/apply');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/construct.js 0000664 0000000 0000000 00000000116 13774351224 0023474 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/construct');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/define-property.js 0000664 0000000 0000000 00000000124 13774351224 0024563 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/define-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/delete-property.js 0000664 0000000 0000000 00000000124 13774351224 0024573 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/delete-property');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/get-own-property-descriptor.js 0000664 0000000 0000000 00000000140 13774351224 0027063 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get-own-property-descriptor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/get-prototype-of.js 0000664 0000000 0000000 00000000125 13774351224 0024674 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/get.js 0000664 0000000 0000000 00000000110 13774351224 0022221 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/get');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/has.js 0000664 0000000 0000000 00000000110 13774351224 0022215 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/has');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/index.js 0000664 0000000 0000000 00000000104 13774351224 0022554 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/is-extensible.js 0000664 0000000 0000000 00000000122 13774351224 0024220 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/is-extensible');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/own-keys.js 0000664 0000000 0000000 00000000115 13774351224 0023223 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/own-keys');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/prevent-extensions.js 0000664 0000000 0000000 00000000127 13774351224 0025332 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/prevent-extensions');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/set-prototype-of.js 0000664 0000000 0000000 00000000125 13774351224 0024710 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/set-prototype-of');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/set.js 0000664 0000000 0000000 00000000110 13774351224 0022235 0 ustar 00root root 0000000 0000000 var parent = require('../../es/reflect/set');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/reflect/to-string-tag.js 0000664 0000000 0000000 00000000120 13774351224 0024142 0 ustar 00root root 0000000 0000000 require('../../modules/es.reflect.to-string-tag');
module.exports = 'Reflect';
core-js-3.8.2/packages/core-js/stable/regexp/ 0000775 0000000 0000000 00000000000 13774351224 0020762 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/regexp/constructor.js 0000664 0000000 0000000 00000000117 13774351224 0023704 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/constructor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/flags.js 0000664 0000000 0000000 00000000111 13774351224 0022405 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/flags');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/index.js 0000664 0000000 0000000 00000000103 13774351224 0022421 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/match.js 0000664 0000000 0000000 00000000111 13774351224 0022405 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/replace.js 0000664 0000000 0000000 00000000113 13774351224 0022726 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/search.js 0000664 0000000 0000000 00000000112 13774351224 0022557 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/split.js 0000664 0000000 0000000 00000000111 13774351224 0022444 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/sticky.js 0000664 0000000 0000000 00000000112 13774351224 0022620 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/sticky');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/test.js 0000664 0000000 0000000 00000000110 13774351224 0022267 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/test');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/regexp/to-string.js 0000664 0000000 0000000 00000000115 13774351224 0023243 0 ustar 00root root 0000000 0000000 var parent = require('../../es/regexp/to-string');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/set-immediate.js 0000664 0000000 0000000 00000000163 13774351224 0022555 0 ustar 00root root 0000000 0000000 require('../modules/web.immediate');
var path = require('../internals/path');
module.exports = path.setImmediate;
core-js-3.8.2/packages/core-js/stable/set-interval.js 0000664 0000000 0000000 00000000157 13774351224 0022446 0 ustar 00root root 0000000 0000000 require('../modules/web.timers');
var path = require('../internals/path');
module.exports = path.setInterval;
core-js-3.8.2/packages/core-js/stable/set-timeout.js 0000664 0000000 0000000 00000000156 13774351224 0022307 0 ustar 00root root 0000000 0000000 require('../modules/web.timers');
var path = require('../internals/path');
module.exports = path.setTimeout;
core-js-3.8.2/packages/core-js/stable/set/ 0000775 0000000 0000000 00000000000 13774351224 0020263 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/set/index.js 0000664 0000000 0000000 00000000100 13774351224 0021717 0 ustar 00root root 0000000 0000000 var parent = require('../../es/set');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/ 0000775 0000000 0000000 00000000000 13774351224 0020776 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/string/anchor.js 0000664 0000000 0000000 00000000112 13774351224 0022600 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/anchor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/big.js 0000664 0000000 0000000 00000000107 13774351224 0022073 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/big');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/blink.js 0000664 0000000 0000000 00000000111 13774351224 0022424 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/blink');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/bold.js 0000664 0000000 0000000 00000000110 13774351224 0022244 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/bold');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/code-point-at.js 0000664 0000000 0000000 00000000121 13774351224 0023771 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/ends-with.js 0000664 0000000 0000000 00000000115 13774351224 0023233 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/fixed.js 0000664 0000000 0000000 00000000111 13774351224 0022424 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/fontcolor.js 0000664 0000000 0000000 00000000115 13774351224 0023336 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fontcolor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/fontsize.js 0000664 0000000 0000000 00000000114 13774351224 0023171 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/fontsize');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/from-code-point.js 0000664 0000000 0000000 00000000123 13774351224 0024332 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/from-code-point');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/includes.js 0000664 0000000 0000000 00000000114 13774351224 0023136 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/index.js 0000664 0000000 0000000 00000000103 13774351224 0022435 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/italics.js 0000664 0000000 0000000 00000000113 13774351224 0022757 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/italics');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/iterator.js 0000664 0000000 0000000 00000000114 13774351224 0023161 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/link.js 0000664 0000000 0000000 00000000110 13774351224 0022261 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/link');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/match-all.js 0000664 0000000 0000000 00000000115 13774351224 0023173 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/match.js 0000664 0000000 0000000 00000000111 13774351224 0022421 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/pad-end.js 0000664 0000000 0000000 00000000113 13774351224 0022637 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/pad-start.js 0000664 0000000 0000000 00000000115 13774351224 0023230 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/raw.js 0000664 0000000 0000000 00000000107 13774351224 0022123 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/raw');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/repeat.js 0000664 0000000 0000000 00000000112 13774351224 0022606 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/replace-all.js 0000664 0000000 0000000 00000000117 13774351224 0023514 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/replace.js 0000664 0000000 0000000 00000000113 13774351224 0022742 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/search.js 0000664 0000000 0000000 00000000112 13774351224 0022573 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/small.js 0000664 0000000 0000000 00000000111 13774351224 0022435 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/small');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/split.js 0000664 0000000 0000000 00000000111 13774351224 0022460 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/starts-with.js 0000664 0000000 0000000 00000000117 13774351224 0023624 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/strike.js 0000664 0000000 0000000 00000000112 13774351224 0022627 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/strike');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/sub.js 0000664 0000000 0000000 00000000107 13774351224 0022123 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/sub');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/sup.js 0000664 0000000 0000000 00000000107 13774351224 0022141 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/sup');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/trim-end.js 0000664 0000000 0000000 00000000114 13774351224 0023047 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/trim-left.js 0000664 0000000 0000000 00000000115 13774351224 0023234 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/trim-right.js 0000664 0000000 0000000 00000000116 13774351224 0023420 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/trim-start.js 0000664 0000000 0000000 00000000116 13774351224 0023440 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/trim.js 0000664 0000000 0000000 00000000110 13774351224 0022277 0 ustar 00root root 0000000 0000000 var parent = require('../../es/string/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/ 0000775 0000000 0000000 00000000000 13774351224 0022464 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/string/virtual/anchor.js 0000664 0000000 0000000 00000000125 13774351224 0024272 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/anchor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/big.js 0000664 0000000 0000000 00000000122 13774351224 0023556 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/big');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/blink.js 0000664 0000000 0000000 00000000124 13774351224 0024116 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/blink');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/bold.js 0000664 0000000 0000000 00000000123 13774351224 0023736 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/bold');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/code-point-at.js 0000664 0000000 0000000 00000000134 13774351224 0025463 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/code-point-at');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/ends-with.js 0000664 0000000 0000000 00000000130 13774351224 0024716 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/ends-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/fixed.js 0000664 0000000 0000000 00000000124 13774351224 0024116 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fixed');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/fontcolor.js 0000664 0000000 0000000 00000000130 13774351224 0025021 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fontcolor');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/fontsize.js 0000664 0000000 0000000 00000000127 13774351224 0024663 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/fontsize');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/includes.js 0000664 0000000 0000000 00000000127 13774351224 0024630 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/includes');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/index.js 0000664 0000000 0000000 00000000116 13774351224 0024127 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/italics.js 0000664 0000000 0000000 00000000126 13774351224 0024451 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/italics');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/iterator.js 0000664 0000000 0000000 00000000127 13774351224 0024653 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/link.js 0000664 0000000 0000000 00000000123 13774351224 0023753 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/link');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/match-all.js 0000664 0000000 0000000 00000000130 13774351224 0024656 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/pad-end.js 0000664 0000000 0000000 00000000126 13774351224 0024331 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/pad-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/pad-start.js 0000664 0000000 0000000 00000000130 13774351224 0024713 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/pad-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/repeat.js 0000664 0000000 0000000 00000000125 13774351224 0024300 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/repeat');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/replace-all.js 0000664 0000000 0000000 00000000132 13774351224 0025177 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/replace-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/small.js 0000664 0000000 0000000 00000000124 13774351224 0024127 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/small');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/starts-with.js 0000664 0000000 0000000 00000000132 13774351224 0025307 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/starts-with');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/strike.js 0000664 0000000 0000000 00000000125 13774351224 0024321 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/strike');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/sub.js 0000664 0000000 0000000 00000000122 13774351224 0023606 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/sub');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/sup.js 0000664 0000000 0000000 00000000122 13774351224 0023624 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/sup');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/trim-end.js 0000664 0000000 0000000 00000000127 13774351224 0024541 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-end');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/trim-left.js 0000664 0000000 0000000 00000000130 13774351224 0024717 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-left');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/trim-right.js 0000664 0000000 0000000 00000000131 13774351224 0025103 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-right');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/trim-start.js 0000664 0000000 0000000 00000000131 13774351224 0025123 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim-start');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/string/virtual/trim.js 0000664 0000000 0000000 00000000123 13774351224 0023771 0 ustar 00root root 0000000 0000000 var parent = require('../../../es/string/virtual/trim');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/ 0000775 0000000 0000000 00000000000 13774351224 0020775 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/symbol/async-iterator.js 0000664 0000000 0000000 00000000122 13774351224 0024272 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/async-iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/description.js 0000664 0000000 0000000 00000000060 13774351224 0023652 0 ustar 00root root 0000000 0000000 require('../../modules/es.symbol.description');
core-js-3.8.2/packages/core-js/stable/symbol/for.js 0000664 0000000 0000000 00000000107 13774351224 0022117 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/for');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/has-instance.js 0000664 0000000 0000000 00000000120 13774351224 0023701 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/has-instance');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/index.js 0000664 0000000 0000000 00000000103 13774351224 0022434 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/is-concat-spreadable.js 0000664 0000000 0000000 00000000130 13774351224 0025305 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/is-concat-spreadable');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/iterator.js 0000664 0000000 0000000 00000000114 13774351224 0023160 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/iterator');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/key-for.js 0000664 0000000 0000000 00000000113 13774351224 0022702 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/key-for');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/match-all.js 0000664 0000000 0000000 00000000115 13774351224 0023172 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/match-all');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/match.js 0000664 0000000 0000000 00000000111 13774351224 0022420 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/match');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/replace.js 0000664 0000000 0000000 00000000113 13774351224 0022741 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/replace');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/search.js 0000664 0000000 0000000 00000000112 13774351224 0022572 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/search');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/species.js 0000664 0000000 0000000 00000000113 13774351224 0022761 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/species');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/split.js 0000664 0000000 0000000 00000000111 13774351224 0022457 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/split');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/to-primitive.js 0000664 0000000 0000000 00000000120 13774351224 0023754 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/to-primitive');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/to-string-tag.js 0000664 0000000 0000000 00000000121 13774351224 0024024 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/to-string-tag');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/symbol/unscopables.js 0000664 0000000 0000000 00000000117 13774351224 0023650 0 ustar 00root root 0000000 0000000 var parent = require('../../es/symbol/unscopables');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/ 0000775 0000000 0000000 00000000000 13774351224 0021731 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/typed-array/copy-within.js 0000664 0000000 0000000 00000000065 13774351224 0024542 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.copy-within');
core-js-3.8.2/packages/core-js/stable/typed-array/entries.js 0000664 0000000 0000000 00000000062 13774351224 0023736 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/stable/typed-array/every.js 0000664 0000000 0000000 00000000057 13774351224 0023423 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.every');
core-js-3.8.2/packages/core-js/stable/typed-array/fill.js 0000664 0000000 0000000 00000000056 13774351224 0023216 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.fill');
core-js-3.8.2/packages/core-js/stable/typed-array/filter.js 0000664 0000000 0000000 00000000060 13774351224 0023550 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.filter');
core-js-3.8.2/packages/core-js/stable/typed-array/find-index.js 0000664 0000000 0000000 00000000064 13774351224 0024314 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find-index');
core-js-3.8.2/packages/core-js/stable/typed-array/find.js 0000664 0000000 0000000 00000000056 13774351224 0023210 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.find');
core-js-3.8.2/packages/core-js/stable/typed-array/float32-array.js 0000664 0000000 0000000 00000000126 13774351224 0024654 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/float32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/float64-array.js 0000664 0000000 0000000 00000000126 13774351224 0024661 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/float64-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/for-each.js 0000664 0000000 0000000 00000000062 13774351224 0023751 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.for-each');
core-js-3.8.2/packages/core-js/stable/typed-array/from.js 0000664 0000000 0000000 00000000056 13774351224 0023233 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.from');
core-js-3.8.2/packages/core-js/stable/typed-array/includes.js 0000664 0000000 0000000 00000000062 13774351224 0024073 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.includes');
core-js-3.8.2/packages/core-js/stable/typed-array/index-of.js 0000664 0000000 0000000 00000000062 13774351224 0023776 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.index-of');
core-js-3.8.2/packages/core-js/stable/typed-array/index.js 0000664 0000000 0000000 00000000110 13774351224 0023366 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/int16-array.js 0000664 0000000 0000000 00000000124 13774351224 0024341 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int16-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/int32-array.js 0000664 0000000 0000000 00000000124 13774351224 0024337 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/int8-array.js 0000664 0000000 0000000 00000000123 13774351224 0024261 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/int8-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/iterator.js 0000664 0000000 0000000 00000000062 13774351224 0024116 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/stable/typed-array/join.js 0000664 0000000 0000000 00000000056 13774351224 0023227 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.join');
core-js-3.8.2/packages/core-js/stable/typed-array/keys.js 0000664 0000000 0000000 00000000062 13774351224 0023240 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/stable/typed-array/last-index-of.js 0000664 0000000 0000000 00000000067 13774351224 0024744 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.last-index-of');
core-js-3.8.2/packages/core-js/stable/typed-array/map.js 0000664 0000000 0000000 00000000055 13774351224 0023044 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.map');
core-js-3.8.2/packages/core-js/stable/typed-array/of.js 0000664 0000000 0000000 00000000054 13774351224 0022672 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.of');
core-js-3.8.2/packages/core-js/stable/typed-array/reduce-right.js 0000664 0000000 0000000 00000000066 13774351224 0024653 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce-right');
core-js-3.8.2/packages/core-js/stable/typed-array/reduce.js 0000664 0000000 0000000 00000000060 13774351224 0023532 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reduce');
core-js-3.8.2/packages/core-js/stable/typed-array/reverse.js 0000664 0000000 0000000 00000000061 13774351224 0023737 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.reverse');
core-js-3.8.2/packages/core-js/stable/typed-array/set.js 0000664 0000000 0000000 00000000055 13774351224 0023062 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.set');
core-js-3.8.2/packages/core-js/stable/typed-array/slice.js 0000664 0000000 0000000 00000000057 13774351224 0023370 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.slice');
core-js-3.8.2/packages/core-js/stable/typed-array/some.js 0000664 0000000 0000000 00000000056 13774351224 0023233 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.some');
core-js-3.8.2/packages/core-js/stable/typed-array/sort.js 0000664 0000000 0000000 00000000056 13774351224 0023257 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.sort');
core-js-3.8.2/packages/core-js/stable/typed-array/subarray.js 0000664 0000000 0000000 00000000062 13774351224 0024115 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.subarray');
core-js-3.8.2/packages/core-js/stable/typed-array/to-locale-string.js 0000664 0000000 0000000 00000000072 13774351224 0025451 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-locale-string');
core-js-3.8.2/packages/core-js/stable/typed-array/to-string.js 0000664 0000000 0000000 00000000063 13774351224 0024214 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.to-string');
core-js-3.8.2/packages/core-js/stable/typed-array/uint16-array.js 0000664 0000000 0000000 00000000125 13774351224 0024527 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint16-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/uint32-array.js 0000664 0000000 0000000 00000000125 13774351224 0024525 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint32-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/uint8-array.js 0000664 0000000 0000000 00000000124 13774351224 0024447 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint8-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/uint8-clamped-array.js 0000664 0000000 0000000 00000000134 13774351224 0026053 0 ustar 00root root 0000000 0000000 var parent = require('../../es/typed-array/uint8-clamped-array');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/typed-array/values.js 0000664 0000000 0000000 00000000062 13774351224 0023564 0 ustar 00root root 0000000 0000000 require('../../modules/es.typed-array.iterator');
core-js-3.8.2/packages/core-js/stable/url-search-params/ 0000775 0000000 0000000 00000000000 13774351224 0023016 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/url-search-params/index.js 0000664 0000000 0000000 00000000117 13774351224 0024462 0 ustar 00root root 0000000 0000000 var parent = require('../../web/url-search-params');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/url/ 0000775 0000000 0000000 00000000000 13774351224 0020272 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/url/index.js 0000664 0000000 0000000 00000000101 13774351224 0021727 0 ustar 00root root 0000000 0000000 var parent = require('../../web/url');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/url/to-json.js 0000664 0000000 0000000 00000000052 13774351224 0022216 0 ustar 00root root 0000000 0000000 require('../../modules/web.url.to-json');
core-js-3.8.2/packages/core-js/stable/weak-map/ 0000775 0000000 0000000 00000000000 13774351224 0021172 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/weak-map/index.js 0000664 0000000 0000000 00000000105 13774351224 0022633 0 ustar 00root root 0000000 0000000 var parent = require('../../es/weak-map');
module.exports = parent;
core-js-3.8.2/packages/core-js/stable/weak-set/ 0000775 0000000 0000000 00000000000 13774351224 0021210 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stable/weak-set/index.js 0000664 0000000 0000000 00000000105 13774351224 0022651 0 ustar 00root root 0000000 0000000 var parent = require('../../es/weak-set');
module.exports = parent;
core-js-3.8.2/packages/core-js/stage/ 0000775 0000000 0000000 00000000000 13774351224 0017321 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/stage/0.js 0000664 0000000 0000000 00000000254 13774351224 0020017 0 ustar 00root root 0000000 0000000 require('../proposals/efficient-64-bit-arithmetic');
require('../proposals/string-at');
require('../proposals/url');
var parent = require('./1');
module.exports = parent;
core-js-3.8.2/packages/core-js/stage/1.js 0000664 0000000 0000000 00000001275 13774351224 0020024 0 ustar 00root root 0000000 0000000 require('../proposals/array-filtering');
require('../proposals/array-last');
require('../proposals/array-unique');
require('../proposals/collection-methods');
require('../proposals/collection-of-from');
require('../proposals/keys-composition');
require('../proposals/math-extensions');
require('../proposals/math-signbit');
require('../proposals/number-from-string');
require('../proposals/number-range');
require('../proposals/object-iteration');
require('../proposals/observable');
require('../proposals/pattern-matching');
require('../proposals/promise-try');
require('../proposals/seeded-random');
require('../proposals/string-code-points');
var parent = require('./2');
module.exports = parent;
core-js-3.8.2/packages/core-js/stage/2.js 0000664 0000000 0000000 00000000405 13774351224 0020017 0 ustar 00root root 0000000 0000000 require('../proposals/array-is-template-object');
require('../proposals/iterator-helpers');
require('../proposals/map-upsert');
require('../proposals/set-methods');
require('../proposals/using-statement');
var parent = require('./3');
module.exports = parent;
core-js-3.8.2/packages/core-js/stage/3.js 0000664 0000000 0000000 00000000151 13774351224 0020016 0 ustar 00root root 0000000 0000000 require('../proposals/relative-indexing-method');
var parent = require('./4');
module.exports = parent;
core-js-3.8.2/packages/core-js/stage/4.js 0000664 0000000 0000000 00000000416 13774351224 0020023 0 ustar 00root root 0000000 0000000 require('../proposals/global-this');
require('../proposals/promise-all-settled');
require('../proposals/promise-any');
require('../proposals/string-match-all');
require('../proposals/string-replace-all');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/stage/README.md 0000664 0000000 0000000 00000000222 13774351224 0020574 0 ustar 00root root 0000000 0000000 This folder contains entry points for [ECMAScript proposals](https://github.com/zloirock/core-js/tree/v3#ecmascript-proposals) with dependencies.
core-js-3.8.2/packages/core-js/stage/index.js 0000664 0000000 0000000 00000000077 13774351224 0020772 0 ustar 00root root 0000000 0000000 var proposals = require('./pre');
module.exports = proposals;
core-js-3.8.2/packages/core-js/stage/pre.js 0000664 0000000 0000000 00000000141 13774351224 0020441 0 ustar 00root root 0000000 0000000 require('../proposals/reflect-metadata');
var parent = require('./0');
module.exports = parent;
core-js-3.8.2/packages/core-js/web/ 0000775 0000000 0000000 00000000000 13774351224 0016773 5 ustar 00root root 0000000 0000000 core-js-3.8.2/packages/core-js/web/README.md 0000664 0000000 0000000 00000000221 13774351224 0020245 0 ustar 00root root 0000000 0000000 This folder contains entry points for features from [WHATWG / W3C](https://github.com/zloirock/core-js/tree/v3#web-standards) with dependencies.
core-js-3.8.2/packages/core-js/web/dom-collections.js 0000664 0000000 0000000 00000000251 13774351224 0022422 0 ustar 00root root 0000000 0000000 require('../modules/web.dom-collections.for-each');
require('../modules/web.dom-collections.iterator');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/web/immediate.js 0000664 0000000 0000000 00000000146 13774351224 0021270 0 ustar 00root root 0000000 0000000 require('../modules/web.immediate');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/web/index.js 0000664 0000000 0000000 00000000616 13774351224 0020443 0 ustar 00root root 0000000 0000000 require('../modules/web.dom-collections.for-each');
require('../modules/web.dom-collections.iterator');
require('../modules/web.immediate');
require('../modules/web.queue-microtask');
require('../modules/web.timers');
require('../modules/web.url');
require('../modules/web.url.to-json');
require('../modules/web.url-search-params');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/web/queue-microtask.js 0000664 0000000 0000000 00000000173 13774351224 0022450 0 ustar 00root root 0000000 0000000 require('../modules/web.queue-microtask');
var path = require('../internals/path');
module.exports = path.queueMicrotask;
core-js-3.8.2/packages/core-js/web/timers.js 0000664 0000000 0000000 00000000143 13774351224 0020632 0 ustar 00root root 0000000 0000000 require('../modules/web.timers');
var path = require('../internals/path');
module.exports = path;
core-js-3.8.2/packages/core-js/web/url-search-params.js 0000664 0000000 0000000 00000000176 13774351224 0022663 0 ustar 00root root 0000000 0000000 require('../modules/web.url-search-params');
var path = require('../internals/path');
module.exports = path.URLSearchParams;
core-js-3.8.2/packages/core-js/web/url.js 0000664 0000000 0000000 00000000270 13774351224 0020132 0 ustar 00root root 0000000 0000000 require('../modules/web.url');
require('../modules/web.url.to-json');
require('../modules/web.url-search-params');
var path = require('../internals/path');
module.exports = path.URL;
core-js-3.8.2/scripts/ 0000775 0000000 0000000 00000000000 13774351224 0014565 5 ustar 00root root 0000000 0000000 core-js-3.8.2/scripts/check-dependencies.js 0000664 0000000 0000000 00000002314 13774351224 0020624 0 ustar 00root root 0000000 0000000 'use strict';
/* eslint-disable no-console */
const { promisify } = require('util');
const eq = require('semver/functions/eq');
const coerce = require('semver/functions/coerce');
const minVersion = require('semver/ranges/min-version');
const getDependencies = promisify(require('david').getDependencies);
const root = require('../package');
const builder = require('../packages/core-js-builder/package');
const compat = require('../packages/core-js-compat/package');
async function checkDependencies(pckg, title) {
const dependencies = await getDependencies(pckg);
const devDependencies = await getDependencies(pckg, { dev: true });
Object.assign(dependencies, devDependencies);
for (const name of Object.keys(dependencies)) {
const { required, stable, warn } = dependencies[name];
if (warn || eq(minVersion(required), coerce(stable))) delete dependencies[name];
}
if (Object.keys(dependencies).length) {
console.log(`\u001B[94m${ title || pckg.name }:\u001B[0m`);
console.table(dependencies);
}
}
(async function () {
await checkDependencies(root, 'root');
await checkDependencies(builder);
await checkDependencies(compat);
console.log('\u001B[32mdependencies checked\u001B[0m');
})();
core-js-3.8.2/scripts/update-version.js 0000664 0000000 0000000 00000004360 13774351224 0020073 0 ustar 00root root 0000000 0000000 'use strict';
/* eslint-disable no-console */
const { readdir, readFile, writeFile } = require('fs').promises;
const NEW_VERSION = require('../package').version;
const PREV_VERSION = require('../packages/core-js/package').version;
const now = new Date();
const NEW_VERSION_MINOR = NEW_VERSION.replace(/^(\d+\.\d+)\..*/, '$1');
const PREV_VERSION_MINOR = PREV_VERSION.replace(/^(\d+\.\d+)\..*/, '$1');
const CHANGELOG = './CHANGELOG.md';
const LICENSE = './LICENSE';
const README = './README.md';
const SHARED = './packages/core-js/internals/shared.js';
const CURRENT_YEAR = now.getFullYear();
(async function () {
const license = await readFile(LICENSE, 'utf8');
const OLD_YEAR = +license.match(/2014-(\d{4}) D/m)[1];
if (NEW_VERSION === PREV_VERSION && CURRENT_YEAR === OLD_YEAR) {
return console.log('\u001B[31mupdate is not required\u001B[0m');
}
await writeFile(LICENSE, license.split(OLD_YEAR).join(CURRENT_YEAR));
const readme = await readFile(README, 'utf8');
await writeFile(README, readme
.split(PREV_VERSION).join(NEW_VERSION)
.split(PREV_VERSION_MINOR).join(NEW_VERSION_MINOR));
const shared = await readFile(SHARED, 'utf8');
await writeFile(SHARED, shared
.split(PREV_VERSION).join(NEW_VERSION)
.split(OLD_YEAR).join(CURRENT_YEAR));
const packages = await readdir('./packages');
for (const NAME of packages) {
const PATH = `./packages/${ NAME }/package.json`;
const pkg = JSON.parse(await readFile(PATH, 'utf8'));
pkg.version = NEW_VERSION;
for (const field of ['dependencies', 'devDependencies']) {
if (pkg[field]) for (const dependency of packages) {
if (pkg[field][dependency]) pkg[field][dependency] = NEW_VERSION;
}
}
await writeFile(PATH, `${ JSON.stringify(pkg, null, ' ') }\n`);
}
const changelog = await readFile(CHANGELOG, 'utf8');
await writeFile(CHANGELOG, changelog.split('##### Unreleased').join(`##### Unreleased\n- Nothing\n\n##### ${
NEW_VERSION
} - ${
now.getFullYear() }.${ String(now.getMonth() + 1).padStart(2, '0') }.${ String(now.getDate()).padStart(2, '0')
}`));
if (CURRENT_YEAR !== OLD_YEAR) console.log('\u001B[32mthe year updated\u001B[0m');
if (NEW_VERSION !== PREV_VERSION) console.log('\u001B[32mthe version updated\u001B[0m');
})();
core-js-3.8.2/tests/ 0000775 0000000 0000000 00000000000 13774351224 0014240 5 ustar 00root root 0000000 0000000 core-js-3.8.2/tests/commonjs-entries-content.js 0000664 0000000 0000000 00000012504 13774351224 0021544 0 ustar 00root root 0000000 0000000 'use strict';
const { deepStrictEqual, ok } = require('assert');
const allModules = require('../packages/core-js-compat/modules');
const entries = require('../packages/core-js-compat/entries');
function filter(regexp) {
return allModules.filter(it => regexp.test(it));
}
function equal(name, required) {
const contains = new Set(entries[name]);
const shouldContain = new Set(Array.isArray(required) ? required : filter(required));
deepStrictEqual(contains, shouldContain);
}
function superset(name, required) {
const contains = new Set(entries[name]);
const shouldContain = Array.isArray(required) ? required : filter(required);
for (const module of shouldContain) {
ok(contains.has(module), module);
}
}
function subset(name, required) {
const contains = entries[name];
const shouldContain = new Set(Array.isArray(required) ? required : filter(required));
for (const module of contains) {
ok(shouldContain.has(module), module);
}
}
equal('core-js', allModules);
equal('core-js/es', /^es\./);
superset('core-js/es/array', /^es\.array\./);
superset('core-js/es/array-buffer', /^es\.array-buffer\./);
superset('core-js/es/data-view', /^es\.data-view\./);
superset('core-js/es/date', /^es\.date\./);
superset('core-js/es/function', /^es\.function\./);
superset('core-js/es/json', /^es\.json\./);
superset('core-js/es/map', /^es\.map/);
superset('core-js/es/math', /^es\.math\./);
superset('core-js/es/number', /^es\.number\./);
superset('core-js/es/object', /^es\.object\./);
superset('core-js/es/promise', /^es\.promise/);
superset('core-js/es/reflect', /^es\.reflect\./);
superset('core-js/es/regexp', /^es\.regexp\./);
superset('core-js/es/set', /^es\.set/);
superset('core-js/es/string', /^es\.string\./);
superset('core-js/es/symbol', /^es\.symbol/);
superset('core-js/es/typed-array', /^es\.typed-array\./);
superset('core-js/es/weak-map', /^es\.weak-map/);
superset('core-js/es/weak-set', /^es\.weak-set/);
equal('core-js/web', /^web\./);
equal('core-js/stable', /^(es|web)\./);
superset('core-js/stable/array', /^es\.array\./);
superset('core-js/stable/array-buffer', /^es\.array-buffer\./);
superset('core-js/stable/data-view', /^es\.data-view\./);
superset('core-js/stable/date', /^es\.date\./);
superset('core-js/stable/dom-collections', /^web\.dom-collections\./);
superset('core-js/stable/function', /^es\.function\./);
superset('core-js/stable/json', /^es\.json\./);
superset('core-js/stable/map', /^es\.map/);
superset('core-js/stable/math', /^es\.math\./);
superset('core-js/stable/number', /^es\.number\./);
superset('core-js/stable/object', /^es\.object\./);
superset('core-js/stable/promise', /^es\.promise/);
superset('core-js/stable/reflect', /^es\.reflect\./);
superset('core-js/stable/regexp', /^es\.regexp\./);
superset('core-js/stable/set', /^es\.set/);
superset('core-js/stable/string', /^es\.string\./);
superset('core-js/stable/symbol', /^es\.symbol/);
superset('core-js/stable/typed-array', /^es\.typed-array\./);
superset('core-js/stable/url', /^web\.url(\.|$)/);
superset('core-js/stable/url-search-params', /^web\.url-search-params/);
superset('core-js/stable/weak-map', /^es\.weak-map/);
superset('core-js/stable/weak-set', /^es\.weak-set/);
equal('core-js/features', allModules);
superset('core-js/features/array', /^(es|esnext)\.array\./);
superset('core-js/features/array-buffer', /^(es|esnext)\.array-buffer\./);
superset('core-js/features/async-iterator', /^(es|esnext)\.async-iterator\./);
equal('core-js/features/bigint', /^(es|esnext)\.bigint\./);
superset('core-js/features/data-view', /^(es|esnext)\.data-view\./);
superset('core-js/features/date', /^(es|esnext)\.date\./);
superset('core-js/features/dom-collections', /^web\.dom-collections\./);
superset('core-js/features/function', /^(es|esnext)\.function\./);
superset('core-js/features/iterator', /^(es|esnext)\.iterator\./);
superset('core-js/features/json', /^(es|esnext)\.json\./);
superset('core-js/features/map', /^(es|esnext)\.map/);
superset('core-js/features/math', /^(es|esnext)\.math\./);
superset('core-js/features/number', /^(es|esnext)\.number\./);
superset('core-js/features/object', /^(es|esnext)\.object\./);
superset('core-js/features/observable', /^(es|esnext)\.observable/);
superset('core-js/features/promise', /^(es|esnext)\.promise/);
superset('core-js/features/reflect', /^(es|esnext)\.reflect\./);
superset('core-js/features/regexp', /^(es|esnext)\.regexp\./);
superset('core-js/features/set', /^(es|esnext)\.set/);
superset('core-js/features/string', /^(es|esnext)\.string\./);
superset('core-js/features/symbol', /^(es|esnext)\.symbol/);
superset('core-js/features/typed-array', /^(es|esnext)\.typed-array\./);
superset('core-js/features/url', /^web\.url(\.|$)/);
superset('core-js/features/url-search-params', /^web\.url-search-params/);
superset('core-js/features/weak-map', /^(es|esnext)\.weak-map/);
superset('core-js/features/weak-set', /^(es|esnext)\.weak-set/);
equal('core-js/proposals', /^(es\.map|esnext\.|web\.url)/);
equal('core-js/stage', /^(es\.map|esnext\.|web\.url)/);
equal('core-js/stage/pre', /^(es\.map|esnext\.|web\.url)/);
subset('core-js/stage/0', /^(es\.map|esnext\.|web\.url)/);
subset('core-js/stage/1', /^(es\.map|esnext\.|web\.url)/);
subset('core-js/stage/2', /^esnext\./);
subset('core-js/stage/3', /^esnext\./);
subset('core-js/stage/4', /^esnext\./);
// eslint-disable-next-line no-console
console.log('\u001B[32mentry points content tested\u001B[0m');
core-js-3.8.2/tests/commonjs.js 0000664 0000000 0000000 00000256226 13774351224 0016440 0 ustar 00root root 0000000 0000000 /* eslint-disable import/no-dynamic-require */
'use strict';
const { ok } = require('assert');
const compat = require('../packages/core-js-compat/data');
let tested = 0;
let PATH;
function load(module) {
tested++;
// eslint-disable-next-line node/global-require
return require(`${ PATH }/${ module }`);
}
for (const _PATH of ['../packages/core-js-pure', '../packages/core-js']) {
PATH = _PATH;
ok(new (load('features/aggregate-error'))([42]).errors[0] === 42);
ok(load('features/object/assign')({ q: 1 }, { w: 2 }).w === 2);
ok(load('features/object/create')(Array.prototype) instanceof Array);
ok(load('features/object/define-property')({}, 'a', { value: 42 }).a === 42);
ok(load('features/object/define-properties')({}, { a: { value: 42 } }).a === 42);
ok(load('features/object/freeze')({}));
ok(load('features/object/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('features/object/get-own-property-names')({ q: 42 })[0] === 'q');
ok(load('features/object/get-own-property-symbols')({ [Symbol()]: 42 }).length === 1);
ok(load('features/object/get-prototype-of')([]) === Array.prototype);
ok(load('features/object/is')(NaN, NaN));
ok(load('features/object/is-extensible')({}));
ok(!load('features/object/is-frozen')({}));
ok(!load('features/object/is-sealed')({}));
ok(typeof load('features/object/iterate-entries')({}).next === 'function');
ok(typeof load('features/object/iterate-keys')({}).next === 'function');
ok(typeof load('features/object/iterate-values')({}).next === 'function');
ok(load('features/object/keys')({ q: 0 })[0] === 'q');
ok(load('features/object/prevent-extensions')({}));
ok(load('features/object/seal')({}));
ok(load('features/object/set-prototype-of')({}, []) instanceof Array);
ok(load('features/object/to-string')([]) === '[object Array]');
ok(load('features/object/entries')({ q: 2 })[0][0] === 'q');
ok(load('features/object/from-entries')([['a', 42]]).a === 42);
ok(load('features/object/values')({ q: 2 })[0] === 2);
ok(load('features/object/get-own-property-descriptors')({ q: 1 }).q.enumerable);
ok(typeof load('features/object/define-getter') === 'function');
ok(typeof load('features/object/define-setter') === 'function');
ok(typeof load('features/object/lookup-getter') === 'function');
ok(typeof load('features/object/lookup-setter') === 'function');
ok('values' in load('features/object'));
ok(load('features/function/bind')(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('features/function/virtual/bind').call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('features/function/virtual').bind.call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
load('features/function/name');
load('features/function/has-instance');
// eslint-disable-next-line prefer-arrow-callback
ok(Function[load('features/symbol/has-instance')](function () { /* empty */ }));
ok('bind' in load('features/function'));
ok(load('features/array/is-array')([]));
ok(typeof load('features/array/is-template-object') === 'function');
ok(Array.isArray(load('features/array/from')('qwe')));
ok(Array.isArray(load('features/array/of')('q', 'w', 'e')));
ok(load('features/array/at')([1, 2, 3], -2) === 2);
ok(load('features/array/join')('qwe', 1) === 'q1w1e');
ok(load('features/array/slice')('qwe', 1)[1] === 'e');
ok(load('features/array/sort')([1, 3, 2])[1] === 2);
ok(typeof load('features/array/for-each') === 'function');
ok(typeof load('features/array/map') === 'function');
ok(typeof load('features/array/filter') === 'function');
ok(typeof load('features/array/filter-out') === 'function');
ok(typeof load('features/array/flat') === 'function');
ok(typeof load('features/array/flat-map') === 'function');
ok(typeof load('features/array/some') === 'function');
ok(typeof load('features/array/every') === 'function');
ok(typeof load('features/array/reduce') === 'function');
ok(typeof load('features/array/reduce-right') === 'function');
ok(typeof load('features/array/reverse') === 'function');
ok(typeof load('features/array/index-of') === 'function');
ok(typeof load('features/array/last-index-of') === 'function');
ok(load('features/array/concat')([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('features/array/copy-within')([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok(load('features/array/splice')([1, 2, 3], 1, 2)[0] === 2);
ok('next' in load('features/array/entries')([]));
load('features/array/last-item');
load('features/array/last-index');
ok(load('features/array/fill')(Array(5), 2)[0] === 2);
ok(load('features/array/find')([2, 3, 4], it => it % 2) === 3);
ok(load('features/array/find-index')([2, 3, 4], it => it % 2) === 1);
ok('next' in load('features/array/keys')([]));
ok('next' in load('features/array/values')([]));
ok(load('features/array/includes')([1, 2, 3], 2));
ok('next' in load('features/array/iterator')([]));
ok(typeof load('features/array/unique-by') === 'function');
ok(load('features/array/virtual/at').call([1, 2, 3], -2) === 2);
ok(load('features/array/virtual/join').call('qwe', 1) === 'q1w1e');
ok(load('features/array/virtual/slice').call('qwe', 1)[1] === 'e');
ok(load('features/array/virtual/splice').call([1, 2, 3], 1, 2)[0] === 2);
ok(load('features/array/virtual/sort').call([1, 3, 2])[1] === 2);
ok(typeof load('features/array/virtual/for-each') === 'function');
ok(typeof load('features/array/virtual/map') === 'function');
ok(typeof load('features/array/virtual/filter') === 'function');
ok(typeof load('features/array/virtual/filter-out') === 'function');
ok(typeof load('features/array/virtual/flat') === 'function');
ok(typeof load('features/array/virtual/flat-map') === 'function');
ok(typeof load('features/array/virtual/some') === 'function');
ok(typeof load('features/array/virtual/every') === 'function');
ok(typeof load('features/array/virtual/reduce') === 'function');
ok(typeof load('features/array/virtual/reduce-right') === 'function');
ok(typeof load('features/array/virtual/reverse') === 'function');
ok(typeof load('features/array/virtual/index-of') === 'function');
ok(typeof load('features/array/virtual/last-index-of') === 'function');
ok(load('features/array/virtual/concat').call([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('features/array/virtual/copy-within').call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok('next' in load('features/array/virtual/entries').call([]));
ok(load('features/array/virtual/fill').call(Array(5), 2)[0] === 2);
ok(load('features/array/virtual/find').call([2, 3, 4], it => it % 2) === 3);
ok(load('features/array/virtual/find-index').call([2, 3, 4], it => it % 2) === 1);
ok('next' in load('features/array/virtual/keys').call([]));
ok('next' in load('features/array/virtual/values').call([]));
ok(load('features/array/virtual/includes').call([1, 2, 3], 2));
ok('next' in load('features/array/virtual/iterator').call([]));
ok(typeof load('features/array/virtual/unique-by') === 'function');
ok(load('features/array/virtual').includes.call([1, 2, 3], 2));
ok('from' in load('features/array'));
load('features/bigint/range');
load('features/bigint');
ok(load('features/math/acosh')(1) === 0);
ok(Object.is(load('features/math/asinh')(-0), -0));
ok(load('features/math/atanh')(1) === Infinity);
ok(load('features/math/cbrt')(-8) === -2);
ok(load('features/math/clz32')(0) === 32);
ok(load('features/math/cosh')(0) === 1);
ok(load('features/math/expm1')(-Infinity) === -1);
ok(load('features/math/fround')(0) === 0);
ok(load('features/math/hypot')(3, 4) === 5);
ok(load('features/math/imul')(2, 2) === 4);
ok(load('features/math/log10')(-0) === -Infinity);
ok(load('features/math/log1p')(-1) === -Infinity);
ok(load('features/math/log2')(1) === 0);
ok(load('features/math/sign')(-2) === -1);
ok(Object.is(load('features/math/sinh')(-0), -0));
ok(load('features/math/tanh')(Infinity) === 1);
ok(load('features/math/to-string-tag') === 'Math');
ok(load('features/math/trunc')(1.5) === 1);
ok(load('features/math/clamp')(6, 2, 4) === 4);
ok(load('features/math/deg-per-rad') === Math.PI / 180);
ok(load('features/math/degrees')(Math.PI) === 180);
ok(load('features/math/fscale')(3, 1, 2, 1, 2) === 3);
ok(load('features/math/iaddh')(3, 2, 0xFFFFFFFF, 4) === 7);
ok(load('features/math/isubh')(3, 4, 0xFFFFFFFF, 2) === 1);
ok(load('features/math/imulh')(0xFFFFFFFF, 7) === -1);
ok(load('features/math/rad-per-deg') === 180 / Math.PI);
ok(load('features/math/radians')(180) === Math.PI);
ok(load('features/math/scale')(3, 1, 2, 1, 2) === 3);
ok(load('features/math/umulh')(0xFFFFFFFF, 7) === 6);
ok(load('features/math/signbit')(-2) === true);
ok(typeof load('features/math/seeded-prng')({ seed: 42 }).next().value === 'number');
ok(load('features/number/constructor')('5') === 5);
ok(load('features/number/epsilon') === 2 ** -52);
ok(load('features/number/is-finite')(42.5));
ok(load('features/number/is-integer')(42.5) === false);
ok(load('features/number/is-nan')(NaN));
ok(load('features/number/is-safe-integer')(42));
ok(load('features/number/max-safe-integer') === 0x1FFFFFFFFFFFFF);
ok(load('features/number/min-safe-integer') === -0x1FFFFFFFFFFFFF);
ok(load('features/number/parse-float')('1.5') === 1.5);
ok(load('features/number/parse-int')('2.1') === 2);
ok(load('features/number/to-fixed')(1, 1) === '1.0');
ok(load('features/number/to-precision')(1) === '1');
ok(load('features/number/from-string')('12', 3) === 5);
ok(load('features/number/range')(1, 2).next().value === 1);
ok(load('features/parse-float')('1.5') === 1.5);
ok(load('features/parse-int')('2.1') === 2);
ok(load('features/number/virtual/to-fixed').call(1, 1) === '1.0');
ok(load('features/number/virtual/to-precision').call(1) === '1');
ok(load('features/number/virtual').toFixed.call(42, 2) === '42.00');
ok('isNaN' in load('features/number'));
ok(load('features/reflect/apply')((a, b) => a + b, null, [1, 2]) === 3);
ok(load('features/reflect/construct')(function () {
return this.a = 2;
}, []).a === 2);
let O;
load('features/reflect/define-property')(O = {}, 'a', { value: 42 });
ok(O.a === 42);
ok(load('features/reflect/delete-property')({ q: 1 }, 'q'));
ok(load('features/reflect/get')({ q: 1 }, 'q') === 1);
ok(load('features/reflect/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('features/reflect/get-prototype-of')([]) === Array.prototype);
ok(load('features/reflect/has')({ q: 1 }, 'q'));
ok(load('features/reflect/is-extensible')({}));
ok(load('features/reflect/own-keys')({ q: 1 })[0] === 'q');
ok(load('features/reflect/prevent-extensions')({}));
ok(load('features/reflect/set')({}, 'a', 42));
load('features/reflect/set-prototype-of')(O = {}, []);
ok(load('features/reflect/to-string-tag') === 'Reflect');
ok(O instanceof Array);
ok(typeof load('features/reflect/define-metadata') === 'function');
ok(typeof load('features/reflect/delete-metadata') === 'function');
ok(typeof load('features/reflect/get-metadata') === 'function');
ok(typeof load('features/reflect/get-metadata-keys') === 'function');
ok(typeof load('features/reflect/get-own-metadata') === 'function');
ok(typeof load('features/reflect/get-own-metadata-keys') === 'function');
ok(typeof load('features/reflect/has-metadata') === 'function');
ok(typeof load('features/reflect/has-own-metadata') === 'function');
ok(typeof load('features/reflect/metadata') === 'function');
ok('has' in load('features/reflect'));
ok(load('features/string/from-code-point')(97) === 'a');
ok(load('features/string/raw')({ raw: 'test' }, 0, 1, 2) === 't0e1s2t');
ok(load('features/string/trim')(' ab ') === 'ab');
ok(load('features/string/code-point-at')('a', 0) === 97);
ok(load('features/string/ends-with')('qwe', 'we'));
ok(load('features/string/includes')('qwe', 'w'));
// ok(load('features/string/at-alternative')('123', -2) === '2');
ok(load('features/string/repeat')('q', 3) === 'qqq');
ok(load('features/string/starts-with')('qwe', 'qw'));
ok(typeof load('features/string/anchor') === 'function');
ok(typeof load('features/string/big') === 'function');
ok(typeof load('features/string/blink') === 'function');
ok(typeof load('features/string/bold') === 'function');
ok(typeof load('features/string/fixed') === 'function');
ok(typeof load('features/string/fontcolor') === 'function');
ok(typeof load('features/string/fontsize') === 'function');
ok(typeof load('features/string/italics') === 'function');
ok(typeof load('features/string/link') === 'function');
ok(typeof load('features/string/small') === 'function');
ok(typeof load('features/string/strike') === 'function');
ok(typeof load('features/string/sub') === 'function');
ok(typeof load('features/string/sup') === 'function');
ok(load('features/string/at')('a', 0) === 'a');
ok('next' in load('features/string/code-points')('a'));
ok(load('features/string/pad-start')('a', 3) === ' a');
ok(load('features/string/pad-end')('a', 3) === 'a ');
ok(load('features/string/trim-start')(' a ') === 'a ');
ok(load('features/string/trim-end')(' a ') === ' a');
ok(load('features/string/trim-left')(' a ') === 'a ');
ok(load('features/string/trim-right')(' a ') === ' a');
ok('next' in load('features/string/match-all')('a', /./g));
ok(typeof load('features/string/replace-all') === 'function');
ok('next' in load('features/string/iterator')('qwe'));
ok(load('features/string/virtual/code-point-at').call('a', 0) === 97);
ok(load('features/string/virtual/ends-with').call('qwe', 'we'));
ok(load('features/string/virtual/includes').call('qwe', 'w'));
// ok(load('features/string/virtual/at-alternative').call('123', -2) === '2');
ok(load('features/string/virtual/repeat').call('q', 3) === 'qqq');
ok(load('features/string/virtual/starts-with').call('qwe', 'qw'));
ok(typeof load('features/string/virtual/anchor') === 'function');
ok(typeof load('features/string/virtual/big') === 'function');
ok(typeof load('features/string/virtual/blink') === 'function');
ok(typeof load('features/string/virtual/bold') === 'function');
ok(typeof load('features/string/virtual/fixed') === 'function');
ok(typeof load('features/string/virtual/fontcolor') === 'function');
ok(typeof load('features/string/virtual/fontsize') === 'function');
ok(typeof load('features/string/virtual/italics') === 'function');
ok(typeof load('features/string/virtual/link') === 'function');
ok(typeof load('features/string/virtual/small') === 'function');
ok(typeof load('features/string/virtual/strike') === 'function');
ok(typeof load('features/string/virtual/sub') === 'function');
ok(typeof load('features/string/virtual/sup') === 'function');
ok(load('features/string/virtual/at').call('a', 0) === 'a');
ok('next' in load('features/string/virtual/code-points').call('a'));
ok(load('features/string/virtual/pad-start').call('a', 3) === ' a');
ok(load('features/string/virtual/pad-end').call('a', 3) === 'a ');
ok(load('features/string/virtual/trim-start').call(' a ') === 'a ');
ok(load('features/string/virtual/trim-end').call(' a ') === ' a');
ok(load('features/string/virtual/trim-left').call(' a ') === 'a ');
ok(load('features/string/virtual/trim-right').call(' a ') === ' a');
ok('next' in load('features/string/virtual/match-all').call('a', /./g));
ok(typeof load('features/string/virtual/replace-all') === 'function');
ok(load('features/string/virtual').at.call('a', 0) === 'a');
ok('next' in load('features/string/virtual/iterator').call('qwe'));
ok('raw' in load('features/string'));
ok(String(load('features/regexp/constructor')('a', 'g')) === '/a/g');
ok(load('features/regexp/to-string')(/./g) === '/./g');
ok(load('features/regexp/flags')(/./g) === 'g');
ok(typeof load('features/regexp/match') === 'function');
ok(typeof load('features/regexp/replace') === 'function');
ok(typeof load('features/regexp/search') === 'function');
ok(typeof load('features/regexp/split') === 'function');
ok(typeof load('features/regexp/sticky') === 'function');
ok(typeof load('features/regexp/test') === 'function');
load('features/regexp');
ok(load('features/json').stringify([1]) === '[1]');
ok(load('features/json/stringify')([1]) === '[1]');
ok(load('features/json/to-string-tag') === 'JSON');
ok(typeof load('features/date/now')(new Date()) === 'number');
ok(typeof load('features/date/to-string')(new Date()) === 'string');
ok(typeof load('features/date/to-primitive')(new Date(), 'number') === 'number');
ok(typeof load('features/date/to-iso-string')(new Date()) === 'string');
ok(load('features/date/to-json')(Infinity) === null);
ok(load('features/date'));
load('features/symbol/description');
ok(load('features/symbol/has-instance'));
ok(load('features/symbol/is-concat-spreadable'));
ok(load('features/symbol/iterator'));
ok(load('features/symbol/match'));
ok(load('features/symbol/match-all'));
ok(load('features/symbol/replace'));
ok(load('features/symbol/search'));
ok(load('features/symbol/species'));
ok(load('features/symbol/split'));
ok(load('features/symbol/to-primitive'));
ok(load('features/symbol/to-string-tag'));
ok(load('features/symbol/unscopables'));
ok(load('features/symbol/async-iterator'));
ok(load('features/symbol/observable'));
ok(load('features/symbol/pattern-match'));
ok(load('features/symbol/replace-all'));
ok(load('features/symbol/async-dispose'));
ok(load('features/symbol/dispose'));
ok(typeof load('features/symbol/for') === 'function');
ok(typeof load('features/symbol/key-for') === 'function');
ok('iterator' in load('features/symbol'));
let Map = load('features/map');
let Set = load('features/set');
let WeakMap = load('features/weak-map');
let WeakSet = load('features/weak-set');
ok(new Map([[1, 2], [3, 4]]).size === 2);
ok(new Set([1, 2, 3, 2, 1]).size === 3);
ok(new WeakMap([[O = {}, 42]]).get(O) === 42);
ok(new WeakSet([O = {}]).has(O));
ok(load('features/map/of')([1, 2], [3, 4]) instanceof Map);
ok(load('features/set/of')(1, 2, 3, 2, 1) instanceof Set);
ok(load('features/weak-map/of')([{}, 1], [[], 2]) instanceof WeakMap);
ok(load('features/weak-set/of')({}, []) instanceof WeakSet);
ok(load('features/map/from')([[1, 2], [3, 4]]) instanceof Map);
ok(load('features/set/from')([1, 2, 3, 2, 1]) instanceof Set);
ok(load('features/weak-map/from')([[{}, 1], [[], 2]]) instanceof WeakMap);
ok(load('features/weak-set/from')([{}, []]) instanceof WeakSet);
ok(load('features/map/delete-all')(new Map(), 1, 2) === false);
ok(load('features/map/emplace')(new Map([[1, 2]]), 1, { update: it => it ** 2 }) === 4);
ok(load('features/map/every')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2) === false);
ok(load('features/map/filter')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2).size === 1);
ok(load('features/map/find')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2) === 3);
ok(load('features/map/find-key')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2) === 2);
ok(load('features/map/group-by')([], it => it) instanceof Map);
ok(load('features/map/includes')(new Map([[1, 2]]), 2), true);
ok(load('features/map/key-by')([], it => it) instanceof Map);
ok(load('features/map/key-of')(new Map([[1, 2]]), 2), 1);
ok(load('features/map/map-keys')(new Map([[1, 2], [2, 3], [3, 4]]), it => it).size === 3);
ok(load('features/map/map-values')(new Map([[1, 2], [2, 3], [3, 4]]), it => it).size === 3);
ok(load('features/map/merge')(new Map([[1, 2], [2, 3]]), [[2, 4], [4, 5]]).size === 3);
ok(load('features/map/reduce')(new Map([[1, 2], [2, 3], [3, 4]]), (a, b) => a + b) === 9);
ok(load('features/map/some')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2) === true);
ok(load('features/map/update')(new Map([[1, 2]]), 1, it => it * 2).get(1) === 4);
ok(load('features/map/update-or-insert')(new Map([[1, 2]]), 1, it => it ** 2, () => 42) === 4);
ok(load('features/map/upsert')(new Map([[1, 2]]), 1, it => it ** 2, () => 42) === 4);
ok(load('features/set/add-all')(new Set([1, 2, 3]), 4, 5).size === 5);
ok(load('features/set/delete-all')(new Set([1, 2, 3]), 4, 5) === false);
ok(load('features/set/difference')(new Set([1, 2, 3]), [3, 4, 5]).size === 2);
ok(load('features/set/every')(new Set([1, 2, 3]), it => typeof it == 'number'));
ok(load('features/set/filter')(new Set([1, 2, 3]), it => it % 2).size === 2);
ok(load('features/set/find')(new Set([2, 3, 4]), it => it % 2) === 3);
ok(load('features/set/intersection')(new Set([1, 2, 3]), [1, 3, 4]).size === 2);
ok(load('features/set/is-disjoint-from')(new Set([1, 2, 3]), [4, 5, 6]));
ok(load('features/set/is-subset-of')(new Set([1, 2, 3]), [1, 2, 3, 4]));
ok(load('features/set/is-superset-of')(new Set([1, 2, 3, 4]), [1, 2, 3]));
ok(load('features/set/join')(new Set([1, 2, 3])) === '1,2,3');
ok(load('features/set/map')(new Set([1, 2, 3]), it => it % 2).size === 2);
ok(load('features/set/reduce')(new Set([1, 2, 3]), (it, v) => it + v) === 6);
ok(load('features/set/some')(new Set([1, 2, 3]), it => typeof it == 'number'));
ok(load('features/set/symmetric-difference')(new Set([1, 2, 3]), [3, 4, 5]).size === 4);
ok(load('features/set/union')(new Set([1, 2, 3]), [3, 4, 5]).size === 5);
ok(load('features/weak-map/delete-all')(new WeakMap(), [], {}) === false);
ok(load('features/weak-map/emplace')(new WeakMap(), {}, { insert: () => ({ a: 42 }) }).a === 42);
ok(load('features/weak-map/upsert')(new WeakMap(), {}, null, () => 42) === 42);
ok(load('features/weak-set/add-all')(new WeakSet(), [], {}) instanceof WeakSet);
ok(load('features/weak-set/delete-all')(new WeakSet(), [], {}) === false);
let Promise = load('features/promise');
ok('all' in Promise);
ok(load('features/promise/all-settled')([1, 2, 3]) instanceof Promise);
ok(load('features/promise/any')([1, 2, 3]) instanceof Promise);
ok(load('features/promise/try')(() => 42) instanceof load('features/promise'));
ok('from' in load('features/observable'));
ok(load('es/global-this').Math === Math);
ok(load('stable/global-this').Math === Math);
ok(load('features/global-this').Math === Math);
ok(typeof load('features/dom-collections').iterator === 'function');
ok(typeof load('features/dom-collections/iterator') === 'function');
ok(typeof load('features/set-timeout') === 'function');
ok(typeof load('features/set-interval') === 'function');
ok(typeof load('features/set-immediate') === 'function');
ok(typeof load('features/clear-immediate') === 'function');
ok(typeof load('features/queue-microtask') === 'function');
ok(typeof load('features/composite-key')({}, 1, {}) === 'object');
ok(typeof load('features/composite-symbol')({}, 1, {}) === 'symbol');
ok(typeof load('features/async-iterator') === 'function');
ok(typeof load('features/async-iterator/as-indexed-pairs') === 'function');
ok(typeof load('features/async-iterator/drop') === 'function');
ok(typeof load('features/async-iterator/every') === 'function');
ok(typeof load('features/async-iterator/filter') === 'function');
ok(typeof load('features/async-iterator/find') === 'function');
ok(typeof load('features/async-iterator/flat-map') === 'function');
ok(typeof load('features/async-iterator/for-each') === 'function');
ok(typeof load('features/async-iterator/from') === 'function');
ok(typeof load('features/async-iterator/map') === 'function');
ok(typeof load('features/async-iterator/reduce') === 'function');
ok(typeof load('features/async-iterator/some') === 'function');
ok(typeof load('features/async-iterator/take') === 'function');
ok(typeof load('features/async-iterator/to-array') === 'function');
ok(typeof load('features/iterator') === 'function');
ok(typeof load('features/iterator/as-indexed-pairs') === 'function');
ok(typeof load('features/iterator/drop') === 'function');
ok(typeof load('features/iterator/every') === 'function');
ok(typeof load('features/iterator/filter') === 'function');
ok(typeof load('features/iterator/find') === 'function');
ok(typeof load('features/iterator/flat-map') === 'function');
ok(typeof load('features/iterator/for-each') === 'function');
ok(typeof load('features/iterator/from') === 'function');
ok(typeof load('features/iterator/map') === 'function');
ok(typeof load('features/iterator/reduce') === 'function');
ok(typeof load('features/iterator/some') === 'function');
ok(typeof load('features/iterator/take') === 'function');
ok(typeof load('features/iterator/to-array') === 'function');
ok(typeof load('features/url') === 'function');
load('features/url/to-json');
ok(typeof load('features/url-search-params') === 'function');
ok(load('features/is-iterable')([]));
ok(typeof load('features/get-iterator-method')([]) === 'function');
ok('next' in load('features/get-iterator')([]));
ok(load('features'));
ok(new (load('stable/aggregate-error'))([42]).errors[0] === 42);
ok(load('stable/object/assign')({ q: 1 }, { w: 2 }).w === 2);
ok(load('stable/object/create')(Array.prototype) instanceof Array);
ok(load('stable/object/define-property')({}, 'a', { value: 42 }).a === 42);
ok(load('stable/object/define-properties')({}, { a: { value: 42 } }).a === 42);
ok(load('stable/object/freeze')({}));
ok(load('stable/object/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('stable/object/get-own-property-names')({ q: 42 })[0] === 'q');
ok(load('stable/object/get-own-property-symbols')({ [Symbol()]: 42 }).length === 1);
ok(load('stable/object/get-prototype-of')([]) === Array.prototype);
ok(load('stable/object/is')(NaN, NaN));
ok(load('stable/object/is-extensible')({}));
ok(!load('stable/object/is-frozen')({}));
ok(!load('stable/object/is-sealed')({}));
ok(load('stable/object/keys')({ q: 0 })[0] === 'q');
ok(load('stable/object/prevent-extensions')({}));
ok(load('stable/object/seal')({}));
ok(load('stable/object/set-prototype-of')({}, []) instanceof Array);
ok(load('stable/object/to-string')([]) === '[object Array]');
ok(load('stable/object/entries')({ q: 2 })[0][0] === 'q');
ok(load('stable/object/from-entries')([['a', 42]]).a === 42);
ok(load('stable/object/values')({ q: 2 })[0] === 2);
ok(load('stable/object/get-own-property-descriptors')({ q: 1 }).q.enumerable);
ok(typeof load('stable/object/define-getter') === 'function');
ok(typeof load('stable/object/define-setter') === 'function');
ok(typeof load('stable/object/lookup-getter') === 'function');
ok(typeof load('stable/object/lookup-setter') === 'function');
ok('values' in load('stable/object'));
ok(load('stable/function/bind')(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('stable/function/virtual/bind').call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('stable/function/virtual').bind.call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
load('stable/function/name');
load('stable/function/has-instance');
// eslint-disable-next-line prefer-arrow-callback
ok(Function[load('stable/symbol/has-instance')](function () { /* empty */ }));
ok('bind' in load('stable/function'));
ok(load('stable/array/is-array')([]));
ok(Array.isArray(load('stable/array/from')('qwe')));
ok(Array.isArray(load('stable/array/of')('q', 'w', 'e')));
ok(load('stable/array/join')('qwe', 1) === 'q1w1e');
ok(load('stable/array/slice')('qwe', 1)[1] === 'e');
ok(load('stable/array/sort')([1, 3, 2])[1] === 2);
ok(typeof load('stable/array/for-each') === 'function');
ok(typeof load('stable/array/map') === 'function');
ok(typeof load('stable/array/filter') === 'function');
ok(typeof load('stable/array/flat') === 'function');
ok(typeof load('stable/array/flat-map') === 'function');
ok(typeof load('stable/array/some') === 'function');
ok(typeof load('stable/array/every') === 'function');
ok(typeof load('stable/array/reduce') === 'function');
ok(typeof load('stable/array/reduce-right') === 'function');
ok(typeof load('stable/array/reverse') === 'function');
ok(typeof load('stable/array/index-of') === 'function');
ok(typeof load('stable/array/last-index-of') === 'function');
ok(load('stable/array/concat')([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('stable/array/copy-within')([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok('next' in load('stable/array/entries')([]));
ok(load('stable/array/fill')(Array(5), 2)[0] === 2);
ok(load('stable/array/find')([2, 3, 4], it => it % 2) === 3);
ok(load('stable/array/find-index')([2, 3, 4], it => it % 2) === 1);
ok('next' in load('stable/array/keys')([]));
ok('next' in load('stable/array/values')([]));
ok(load('stable/array/includes')([1, 2, 3], 2));
ok('next' in load('stable/array/iterator')([]));
ok(load('stable/array/virtual/join').call('qwe', 1) === 'q1w1e');
ok(load('stable/array/virtual/slice').call('qwe', 1)[1] === 'e');
ok(load('stable/array/virtual/splice').call([1, 2, 3], 1, 2)[0] === 2);
ok(load('stable/array/virtual/sort').call([1, 3, 2])[1] === 2);
ok(typeof load('stable/array/virtual/for-each') === 'function');
ok(typeof load('stable/array/virtual/map') === 'function');
ok(typeof load('stable/array/virtual/filter') === 'function');
ok(typeof load('stable/array/virtual/flat') === 'function');
ok(typeof load('stable/array/virtual/flat-map') === 'function');
ok(typeof load('stable/array/virtual/some') === 'function');
ok(typeof load('stable/array/virtual/every') === 'function');
ok(typeof load('stable/array/virtual/reduce') === 'function');
ok(typeof load('stable/array/virtual/reduce-right') === 'function');
ok(typeof load('stable/array/virtual/reverse') === 'function');
ok(typeof load('stable/array/virtual/index-of') === 'function');
ok(typeof load('stable/array/virtual/last-index-of') === 'function');
ok(load('stable/array/virtual/concat').call([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('stable/array/virtual/copy-within').call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok('next' in load('stable/array/virtual/entries').call([]));
ok(load('stable/array/virtual/fill').call(Array(5), 2)[0] === 2);
ok(load('stable/array/virtual/find').call([2, 3, 4], it => it % 2) === 3);
ok(load('stable/array/virtual/find-index').call([2, 3, 4], it => it % 2) === 1);
ok('next' in load('stable/array/virtual/keys').call([]));
ok('next' in load('stable/array/virtual/values').call([]));
ok(load('stable/array/virtual/includes').call([1, 2, 3], 2));
ok('next' in load('stable/array/virtual/iterator').call([]));
ok(load('stable/array/virtual').includes.call([1, 2, 3], 2));
ok('from' in load('stable/array'));
ok(load('stable/array/splice')([1, 2, 3], 1, 2)[0] === 2);
ok(load('stable/math/acosh')(1) === 0);
ok(Object.is(load('stable/math/asinh')(-0), -0));
ok(load('stable/math/atanh')(1) === Infinity);
ok(load('stable/math/cbrt')(-8) === -2);
ok(load('stable/math/clz32')(0) === 32);
ok(load('stable/math/cosh')(0) === 1);
ok(load('stable/math/expm1')(-Infinity) === -1);
ok(load('stable/math/fround')(0) === 0);
ok(load('stable/math/hypot')(3, 4) === 5);
ok(load('stable/math/imul')(2, 2) === 4);
ok(load('stable/math/log10')(-0) === -Infinity);
ok(load('stable/math/log1p')(-1) === -Infinity);
ok(load('stable/math/log2')(1) === 0);
ok(load('stable/math/sign')(-2) === -1);
ok(Object.is(load('stable/math/sinh')(-0), -0));
ok(load('stable/math/tanh')(Infinity) === 1);
ok(load('stable/math/to-string-tag') === 'Math');
ok(load('stable/math/trunc')(1.5) === 1);
ok(load('stable/number/constructor')('5') === 5);
ok(load('stable/number/epsilon') === 2 ** -52);
ok(load('stable/number/is-finite')(42.5));
ok(load('stable/number/is-integer')(42.5) === false);
ok(load('stable/number/is-nan')(NaN));
ok(load('stable/number/is-safe-integer')(42));
ok(load('stable/number/max-safe-integer') === 0x1FFFFFFFFFFFFF);
ok(load('stable/number/min-safe-integer') === -0x1FFFFFFFFFFFFF);
ok(load('stable/number/parse-float')('1.5') === 1.5);
ok(load('stable/number/parse-int')('2.1') === 2);
ok(load('stable/number/to-fixed')(1, 1) === '1.0');
ok(load('stable/number/to-precision')(1) === '1');
ok(load('stable/parse-float')('1.5') === 1.5);
ok(load('stable/parse-int')('2.1') === 2);
ok(load('stable/number/virtual/to-fixed').call(1, 1) === '1.0');
ok(load('stable/number/virtual/to-precision').call(1) === '1');
ok(load('stable/number/virtual').toFixed.call(42, 2) === '42.00');
ok('isNaN' in load('stable/number'));
ok(load('stable/reflect/apply')((a, b) => a + b, null, [1, 2]) === 3);
ok(load('stable/reflect/construct')(function () {
return this.a = 2;
}, []).a === 2);
load('stable/reflect/define-property')(O = {}, 'a', { value: 42 });
ok(O.a === 42);
ok(load('stable/reflect/delete-property')({ q: 1 }, 'q'));
ok(load('stable/reflect/get')({ q: 1 }, 'q') === 1);
ok(load('stable/reflect/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('stable/reflect/get-prototype-of')([]) === Array.prototype);
ok(load('stable/reflect/has')({ q: 1 }, 'q'));
ok(load('stable/reflect/is-extensible')({}));
ok(load('stable/reflect/own-keys')({ q: 1 })[0] === 'q');
ok(load('stable/reflect/prevent-extensions')({}));
ok(load('stable/reflect/set')({}, 'a', 42));
load('stable/reflect/set-prototype-of')(O = {}, []);
ok(load('stable/reflect/to-string-tag') === 'Reflect');
ok(O instanceof Array);
ok('has' in load('stable/reflect'));
ok(load('stable/string/from-code-point')(97) === 'a');
ok(load('stable/string/raw')({ raw: 'test' }, 0, 1, 2) === 't0e1s2t');
ok(load('stable/string/trim')(' ab ') === 'ab');
ok(load('stable/string/code-point-at')('a', 0) === 97);
ok(load('stable/string/ends-with')('qwe', 'we'));
ok(load('stable/string/includes')('qwe', 'w'));
ok(load('stable/string/repeat')('q', 3) === 'qqq');
ok('next' in load('stable/string/match-all')('a', /./g));
ok(load('stable/string/starts-with')('qwe', 'qw'));
ok(typeof load('stable/string/anchor') === 'function');
ok(typeof load('stable/string/big') === 'function');
ok(typeof load('stable/string/blink') === 'function');
ok(typeof load('stable/string/bold') === 'function');
ok(typeof load('stable/string/fixed') === 'function');
ok(typeof load('stable/string/fontcolor') === 'function');
ok(typeof load('stable/string/fontsize') === 'function');
ok(typeof load('stable/string/italics') === 'function');
ok(typeof load('stable/string/link') === 'function');
ok(typeof load('stable/string/small') === 'function');
ok(typeof load('stable/string/strike') === 'function');
ok(typeof load('stable/string/sub') === 'function');
ok(typeof load('stable/string/sup') === 'function');
ok(typeof load('stable/string/replace-all') === 'function');
ok(load('stable/string/pad-start')('a', 3) === ' a');
ok(load('stable/string/pad-end')('a', 3) === 'a ');
ok(load('stable/string/trim-start')(' a ') === 'a ');
ok(load('stable/string/trim-end')(' a ') === ' a');
ok(load('stable/string/trim-left')(' a ') === 'a ');
ok(load('stable/string/trim-right')(' a ') === ' a');
ok('next' in load('stable/string/iterator')('qwe'));
ok(load('stable/string/virtual/code-point-at').call('a', 0) === 97);
ok(load('stable/string/virtual/ends-with').call('qwe', 'we'));
ok(load('stable/string/virtual/includes').call('qwe', 'w'));
ok(typeof load('stable/string/virtual/match-all') === 'function');
ok(typeof load('stable/string/virtual/replace-all') === 'function');
ok(load('stable/string/virtual/repeat').call('q', 3) === 'qqq');
ok(load('stable/string/virtual/starts-with').call('qwe', 'qw'));
ok(typeof load('stable/string/virtual/anchor') === 'function');
ok(typeof load('stable/string/virtual/big') === 'function');
ok(typeof load('stable/string/virtual/blink') === 'function');
ok(typeof load('stable/string/virtual/bold') === 'function');
ok(typeof load('stable/string/virtual/fixed') === 'function');
ok(typeof load('stable/string/virtual/fontcolor') === 'function');
ok(typeof load('stable/string/virtual/fontsize') === 'function');
ok(typeof load('stable/string/virtual/italics') === 'function');
ok(typeof load('stable/string/virtual/link') === 'function');
ok(typeof load('stable/string/virtual/small') === 'function');
ok(typeof load('stable/string/virtual/strike') === 'function');
ok(typeof load('stable/string/virtual/sub') === 'function');
ok(typeof load('stable/string/virtual/sup') === 'function');
ok(load('stable/string/virtual/pad-start').call('a', 3) === ' a');
ok(load('stable/string/virtual/pad-end').call('a', 3) === 'a ');
ok(load('stable/string/virtual/trim-start').call(' a ') === 'a ');
ok(load('stable/string/virtual/trim-end').call(' a ') === ' a');
ok(load('stable/string/virtual/trim-left').call(' a ') === 'a ');
ok(load('stable/string/virtual/trim-right').call(' a ') === ' a');
ok(load('stable/string/virtual').at.call('a', 0) === 'a');
ok('next' in load('stable/string/virtual/iterator').call('qwe'));
ok('raw' in load('stable/string'));
ok(String(load('stable/regexp/constructor')('a', 'g')) === '/a/g');
ok(load('stable/regexp/to-string')(/./g) === '/./g');
ok(load('stable/regexp/flags')(/./g) === 'g');
ok(typeof load('stable/regexp/match') === 'function');
ok(typeof load('stable/regexp/replace') === 'function');
ok(typeof load('stable/regexp/search') === 'function');
ok(typeof load('stable/regexp/split') === 'function');
ok(typeof load('stable/regexp/sticky') === 'function');
ok(typeof load('stable/regexp/test') === 'function');
load('stable/regexp');
ok(load('stable/json').stringify([1]) === '[1]');
ok(load('stable/json/stringify')([1]) === '[1]');
ok(load('stable/json/to-string-tag') === 'JSON');
ok(typeof load('stable/date/now')(new Date()) === 'number');
ok(typeof load('stable/date/to-string')(new Date()) === 'string');
ok(typeof load('stable/date/to-primitive')(new Date(), 'number') === 'number');
ok(typeof load('stable/date/to-iso-string')(new Date()) === 'string');
ok(load('stable/date/to-json')(Infinity) === null);
ok(load('stable/date'));
load('stable/symbol/description');
ok(load('stable/symbol/has-instance'));
ok(load('stable/symbol/is-concat-spreadable'));
ok(load('stable/symbol/iterator'));
ok(load('stable/symbol/match'));
ok(load('stable/symbol/match-all'));
ok(load('stable/symbol/replace'));
ok(load('stable/symbol/search'));
ok(load('stable/symbol/species'));
ok(load('stable/symbol/split'));
ok(load('stable/symbol/to-primitive'));
ok(load('stable/symbol/to-string-tag'));
ok(load('stable/symbol/unscopables'));
ok(load('stable/symbol/async-iterator'));
ok(typeof load('stable/symbol/for') === 'function');
ok(typeof load('stable/symbol/key-for') === 'function');
ok('iterator' in load('stable/symbol'));
Map = load('stable/map');
Set = load('stable/set');
WeakMap = load('stable/weak-map');
WeakSet = load('stable/weak-set');
ok(new Map([[1, 2], [3, 4]]).size === 2);
ok(new Set([1, 2, 3, 2, 1]).size === 3);
ok(new WeakMap([[O = {}, 42]]).get(O) === 42);
ok(new WeakSet([O = {}]).has(O));
Promise = load('stable/promise');
ok('all' in Promise);
ok(load('stable/promise/all-settled')([1, 2, 3]) instanceof Promise);
ok(load('stable/promise/any')([1, 2, 3]) instanceof Promise);
ok(typeof load('stable/dom-collections').iterator === 'function');
ok(typeof load('stable/dom-collections/iterator') === 'function');
ok(typeof load('stable/set-timeout') === 'function');
ok(typeof load('stable/set-interval') === 'function');
ok(typeof load('stable/set-immediate') === 'function');
ok(typeof load('stable/clear-immediate') === 'function');
ok(typeof load('stable/queue-microtask') === 'function');
ok(typeof load('stable/url') === 'function');
load('stable/url/to-json');
ok(typeof load('stable/url-search-params') === 'function');
ok(load('stable'));
ok(new (load('es/aggregate-error'))([42]).errors[0] === 42);
ok(load('es/object/assign')({ q: 1 }, { w: 2 }).w === 2);
ok(load('es/object/create')(Array.prototype) instanceof Array);
ok(load('es/object/define-property')({}, 'a', { value: 42 }).a === 42);
ok(load('es/object/define-properties')({}, { a: { value: 42 } }).a === 42);
ok(load('es/object/freeze')({}));
ok(load('es/object/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('es/object/get-own-property-names')({ q: 42 })[0] === 'q');
ok(load('es/object/get-own-property-symbols')({ [Symbol()]: 42 }).length === 1);
ok(load('es/object/get-prototype-of')([]) === Array.prototype);
ok(load('es/object/is')(NaN, NaN));
ok(load('es/object/is-extensible')({}));
ok(!load('es/object/is-frozen')({}));
ok(!load('es/object/is-sealed')({}));
ok(load('es/object/keys')({ q: 0 })[0] === 'q');
ok(load('es/object/prevent-extensions')({}));
ok(load('es/object/seal')({}));
ok(load('es/object/set-prototype-of')({}, []) instanceof Array);
ok(load('es/object/to-string')([]) === '[object Array]');
ok(load('es/object/entries')({ q: 2 })[0][0] === 'q');
ok(load('es/object/from-entries')([['a', 42]]).a === 42);
ok(load('es/object/values')({ q: 2 })[0] === 2);
ok(load('es/object/get-own-property-descriptors')({ q: 1 }).q.enumerable);
ok(typeof load('es/object/define-getter') === 'function');
ok(typeof load('es/object/define-setter') === 'function');
ok(typeof load('es/object/lookup-getter') === 'function');
ok(typeof load('es/object/lookup-setter') === 'function');
ok('values' in load('es/object'));
ok(load('es/function/bind')(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('es/function/virtual/bind').call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
ok(load('es/function/virtual').bind.call(function (a, b) {
return this + a + b;
}, 1, 2)(3) === 6);
load('es/function/name');
load('es/function/has-instance');
// eslint-disable-next-line prefer-arrow-callback
ok(Function[load('es/symbol/has-instance')](function () { /* empty */ }));
ok('bind' in load('es/function'));
ok(load('es/array/is-array')([]));
ok(Array.isArray(load('es/array/from')('qwe')));
ok(Array.isArray(load('es/array/of')('q', 'w', 'e')));
ok(load('es/array/join')('qwe', 1) === 'q1w1e');
ok(load('es/array/slice')('qwe', 1)[1] === 'e');
ok(load('es/array/sort')([1, 3, 2])[1] === 2);
ok(typeof load('es/array/for-each') === 'function');
ok(typeof load('es/array/map') === 'function');
ok(typeof load('es/array/filter') === 'function');
ok(typeof load('es/array/flat') === 'function');
ok(typeof load('es/array/flat-map') === 'function');
ok(typeof load('es/array/some') === 'function');
ok(typeof load('es/array/every') === 'function');
ok(typeof load('es/array/reduce') === 'function');
ok(typeof load('es/array/reduce-right') === 'function');
ok(typeof load('es/array/reverse') === 'function');
ok(typeof load('es/array/index-of') === 'function');
ok(typeof load('es/array/last-index-of') === 'function');
ok(load('es/array/concat')([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('es/array/copy-within')([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok('next' in load('es/array/entries')([]));
ok(load('es/array/fill')(Array(5), 2)[0] === 2);
ok(load('es/array/find')([2, 3, 4], it => it % 2) === 3);
ok(load('es/array/find-index')([2, 3, 4], it => it % 2) === 1);
ok('next' in load('es/array/keys')([]));
ok('next' in load('es/array/values')([]));
ok(load('es/array/includes')([1, 2, 3], 2));
ok('next' in load('es/array/iterator')([]));
ok(load('es/array/virtual/join').call('qwe', 1) === 'q1w1e');
ok(load('es/array/virtual/slice').call('qwe', 1)[1] === 'e');
ok(load('es/array/virtual/splice').call([1, 2, 3], 1, 2)[0] === 2);
ok(load('es/array/virtual/sort').call([1, 3, 2])[1] === 2);
ok(typeof load('es/array/virtual/for-each') === 'function');
ok(typeof load('es/array/virtual/map') === 'function');
ok(typeof load('es/array/virtual/filter') === 'function');
ok(typeof load('es/array/virtual/flat') === 'function');
ok(typeof load('es/array/virtual/flat-map') === 'function');
ok(typeof load('es/array/virtual/some') === 'function');
ok(typeof load('es/array/virtual/every') === 'function');
ok(typeof load('es/array/virtual/reduce') === 'function');
ok(typeof load('es/array/virtual/reduce-right') === 'function');
ok(typeof load('es/array/virtual/reverse') === 'function');
ok(typeof load('es/array/virtual/index-of') === 'function');
ok(typeof load('es/array/virtual/last-index-of') === 'function');
ok(load('es/array/virtual/concat').call([1, 2, 3], [4, 5, 6]).length === 6);
ok(load('es/array/virtual/copy-within').call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
ok('next' in load('es/array/virtual/entries').call([]));
ok(load('es/array/virtual/fill').call(Array(5), 2)[0] === 2);
ok(load('es/array/virtual/find').call([2, 3, 4], it => it % 2) === 3);
ok(load('es/array/virtual/find-index').call([2, 3, 4], it => it % 2) === 1);
ok('next' in load('es/array/virtual/keys').call([]));
ok('next' in load('es/array/virtual/values').call([]));
ok(load('es/array/virtual/includes').call([1, 2, 3], 2));
ok('next' in load('es/array/virtual/iterator').call([]));
ok(load('es/array/virtual').includes.call([1, 2, 3], 2));
ok('from' in load('es/array'));
ok(load('es/array/splice')([1, 2, 3], 1, 2)[0] === 2);
ok(load('es/math/acosh')(1) === 0);
ok(Object.is(load('es/math/asinh')(-0), -0));
ok(load('es/math/atanh')(1) === Infinity);
ok(load('es/math/cbrt')(-8) === -2);
ok(load('es/math/clz32')(0) === 32);
ok(load('es/math/cosh')(0) === 1);
ok(load('es/math/expm1')(-Infinity) === -1);
ok(load('es/math/fround')(0) === 0);
ok(load('es/math/hypot')(3, 4) === 5);
ok(load('es/math/imul')(2, 2) === 4);
ok(load('es/math/log10')(-0) === -Infinity);
ok(load('es/math/log1p')(-1) === -Infinity);
ok(load('es/math/log2')(1) === 0);
ok(load('es/math/sign')(-2) === -1);
ok(Object.is(load('es/math/sinh')(-0), -0));
ok(load('es/math/tanh')(Infinity) === 1);
ok(load('es/math/to-string-tag') === 'Math');
ok(load('es/math/trunc')(1.5) === 1);
ok(load('es/number/constructor')('5') === 5);
ok(load('es/number/epsilon') === 2 ** -52);
ok(load('es/number/is-finite')(42.5));
ok(load('es/number/is-integer')(42.5) === false);
ok(load('es/number/is-nan')(NaN));
ok(load('es/number/is-safe-integer')(42));
ok(load('es/number/max-safe-integer') === 0x1FFFFFFFFFFFFF);
ok(load('es/number/min-safe-integer') === -0x1FFFFFFFFFFFFF);
ok(load('es/number/parse-float')('1.5') === 1.5);
ok(load('es/number/parse-int')('2.1') === 2);
ok(load('es/number/to-fixed')(1, 1) === '1.0');
ok(load('es/number/to-precision')(1) === '1');
ok(load('es/parse-float')('1.5') === 1.5);
ok(load('es/parse-int')('2.1') === 2);
ok(load('es/number/virtual/to-fixed').call(1, 1) === '1.0');
ok(load('es/number/virtual/to-precision').call(1) === '1');
ok(load('es/number/virtual').toFixed.call(42, 2) === '42.00');
ok('isNaN' in load('es/number'));
ok(load('es/reflect/apply')((a, b) => a + b, null, [1, 2]) === 3);
ok(load('es/reflect/construct')(function () {
return this.a = 2;
}, []).a === 2);
load('es/reflect/define-property')(O = {}, 'a', { value: 42 });
ok(O.a === 42);
ok(load('es/reflect/delete-property')({ q: 1 }, 'q'));
ok(load('es/reflect/get')({ q: 1 }, 'q') === 1);
ok(load('es/reflect/get-own-property-descriptor')({ q: 1 }, 'q').enumerable);
ok(load('es/reflect/get-prototype-of')([]) === Array.prototype);
ok(load('es/reflect/has')({ q: 1 }, 'q'));
ok(load('es/reflect/is-extensible')({}));
ok(load('es/reflect/own-keys')({ q: 1 })[0] === 'q');
ok(load('es/reflect/prevent-extensions')({}));
ok(load('es/reflect/set')({}, 'a', 42));
load('es/reflect/set-prototype-of')(O = {}, []);
ok(load('es/reflect/to-string-tag') === 'Reflect');
ok(O instanceof Array);
ok('has' in load('es/reflect'));
ok(load('es/string/from-code-point')(97) === 'a');
ok(load('es/string/raw')({ raw: 'test' }, 0, 1, 2) === 't0e1s2t');
ok(load('es/string/trim')(' ab ') === 'ab');
ok(load('es/string/trim-start')(' a ') === 'a ');
ok(load('es/string/trim-end')(' a ') === ' a');
ok(load('es/string/trim-left')(' a ') === 'a ');
ok(load('es/string/trim-right')(' a ') === ' a');
ok(load('es/string/code-point-at')('a', 0) === 97);
ok(load('es/string/ends-with')('qwe', 'we'));
ok(load('es/string/includes')('qwe', 'w'));
ok(load('es/string/repeat')('q', 3) === 'qqq');
ok(load('es/string/starts-with')('qwe', 'qw'));
ok(typeof load('es/string/anchor') === 'function');
ok(typeof load('es/string/big') === 'function');
ok(typeof load('es/string/blink') === 'function');
ok(typeof load('es/string/bold') === 'function');
ok(typeof load('es/string/fixed') === 'function');
ok(typeof load('es/string/fontcolor') === 'function');
ok(typeof load('es/string/fontsize') === 'function');
ok(typeof load('es/string/italics') === 'function');
ok(typeof load('es/string/link') === 'function');
ok(typeof load('es/string/small') === 'function');
ok(typeof load('es/string/strike') === 'function');
ok(typeof load('es/string/sub') === 'function');
ok(typeof load('es/string/sup') === 'function');
ok(typeof load('es/string/replace-all') === 'function');
ok(load('es/string/pad-start')('a', 3) === ' a');
ok(load('es/string/pad-end')('a', 3) === 'a ');
ok('next' in load('es/string/iterator')('qwe'));
ok(load('es/string/virtual/code-point-at').call('a', 0) === 97);
ok(load('es/string/virtual/ends-with').call('qwe', 'we'));
ok(load('es/string/virtual/includes').call('qwe', 'w'));
ok(typeof load('es/string/virtual/match-all') === 'function');
ok(typeof load('es/string/virtual/replace-all') === 'function');
ok(load('es/string/virtual/repeat').call('q', 3) === 'qqq');
ok(load('es/string/virtual/starts-with').call('qwe', 'qw'));
ok(load('es/string/virtual/trim').call(' ab ') === 'ab');
ok(load('es/string/virtual/trim-start').call(' a ') === 'a ');
ok(load('es/string/virtual/trim-end').call(' a ') === ' a');
ok(load('es/string/virtual/trim-left').call(' a ') === 'a ');
ok(load('es/string/virtual/trim-right').call(' a ') === ' a');
ok(typeof load('es/string/virtual/anchor') === 'function');
ok(typeof load('es/string/virtual/big') === 'function');
ok(typeof load('es/string/virtual/blink') === 'function');
ok(typeof load('es/string/virtual/bold') === 'function');
ok(typeof load('es/string/virtual/fixed') === 'function');
ok(typeof load('es/string/virtual/fontcolor') === 'function');
ok(typeof load('es/string/virtual/fontsize') === 'function');
ok(typeof load('es/string/virtual/italics') === 'function');
ok(typeof load('es/string/virtual/link') === 'function');
ok(typeof load('es/string/virtual/small') === 'function');
ok(typeof load('es/string/virtual/strike') === 'function');
ok(typeof load('es/string/virtual/sub') === 'function');
ok(typeof load('es/string/virtual/sup') === 'function');
ok(load('es/string/virtual/pad-start').call('a', 3) === ' a');
ok(load('es/string/virtual/pad-end').call('a', 3) === 'a ');
ok(load('es/string/virtual').trim.call(' a') === 'a');
ok('next' in load('es/string/virtual/iterator').call('qwe'));
ok('raw' in load('es/string'));
ok(String(load('es/regexp/constructor')('a', 'g')) === '/a/g');
ok(load('es/regexp/to-string')(/./g) === '/./g');
ok(load('es/regexp/flags')(/./g) === 'g');
ok(typeof load('es/regexp/match') === 'function');
ok(typeof load('es/regexp/replace') === 'function');
ok(typeof load('es/regexp/search') === 'function');
ok(typeof load('es/regexp/split') === 'function');
ok(typeof load('es/regexp/sticky') === 'function');
ok(typeof load('es/regexp/test') === 'function');
load('es/regexp');
ok(load('es/json').stringify([1]) === '[1]');
ok(load('es/json/stringify')([1]) === '[1]');
ok(load('es/json/to-string-tag') === 'JSON');
ok(typeof load('es/date/now')(new Date()) === 'number');
ok(typeof load('es/date/to-string')(new Date()) === 'string');
ok(typeof load('es/date/to-primitive')(new Date(), 'number') === 'number');
ok(typeof load('es/date/to-iso-string')(new Date()) === 'string');
ok(load('es/date/to-json')(Infinity) === null);
ok(load('es/date'));
ok(load('es/symbol/has-instance'));
ok(load('es/symbol/is-concat-spreadable'));
ok(load('es/symbol/iterator'));
ok(load('es/symbol/match'));
ok(load('es/symbol/match-all'));
ok(load('es/symbol/replace'));
ok(load('es/symbol/search'));
ok(load('es/symbol/species'));
ok(load('es/symbol/split'));
ok(load('es/symbol/to-primitive'));
ok(load('es/symbol/to-string-tag'));
ok(load('es/symbol/unscopables'));
ok(load('es/symbol/async-iterator'));
load('es/symbol/description');
ok(typeof load('es/symbol/for') === 'function');
ok(typeof load('es/symbol/key-for') === 'function');
ok('iterator' in load('es/symbol'));
Map = load('es/map');
Set = load('es/set');
WeakMap = load('es/weak-map');
WeakSet = load('es/weak-set');
ok(new Map([[1, 2], [3, 4]]).size === 2);
ok(new Set([1, 2, 3, 2, 1]).size === 3);
ok(new WeakMap([[O = {}, 42]]).get(O) === 42);
ok(new WeakSet([O = {}]).has(O));
Promise = load('es/promise');
ok('all' in Promise);
ok(load('es/promise/all-settled')([1, 2, 3]) instanceof Promise);
ok(load('es/promise/any')([1, 2, 3]) instanceof Promise);
ok('Map' in load('es'));
ok('setTimeout' in load('web/timers'));
ok('setImmediate' in load('web/immediate'));
ok(typeof load('web/queue-microtask') === 'function');
load('web/dom-collections');
ok(typeof load('web/url') === 'function');
ok(typeof load('web/url-search-params') === 'function');
ok('setImmediate' in load('web'));
load('proposals/array-is-template-object');
load('proposals/array-last');
load('proposals/collection-methods');
load('proposals/collection-of-from');
load('proposals/efficient-64-bit-arithmetic');
load('proposals/global-this');
load('proposals/iterator-helpers');
load('proposals/math-extensions');
load('proposals/math-signbit');
load('proposals/number-from-string');
load('proposals/number-range');
load('proposals/object-iteration');
load('proposals/observable');
load('proposals/pattern-matching');
load('proposals/promise-all-settled');
load('proposals/promise-any');
load('proposals/promise-try');
load('proposals/reflect-metadata');
load('proposals/relative-indexing-method');
load('proposals/keys-composition');
load('proposals/seeded-random');
load('proposals/set-methods');
load('proposals/string-at');
load('proposals/string-code-points');
load('proposals/string-match-all');
load('proposals/string-replace-all');
load('proposals/using-statement');
load('proposals/url');
load('proposals');
ok(load('stage/4'));
ok(load('stage/3'));
ok(load('stage/2'));
ok(load('stage/1'));
ok(load('stage/0'));
ok(load('stage/pre'));
ok(load('stage'));
ok(load('index'));
const instanceAt = load('features/instance/at');
ok(typeof instanceAt === 'function');
ok(instanceAt({}) === undefined);
ok(typeof instanceAt([]) === 'function');
ok(typeof instanceAt('') === 'function');
ok(instanceAt([]).call([1, 2, 3], 2) === 3);
ok(instanceAt('').call('123', 2) === '3');
let instanceBind = load('features/instance/bind');
ok(typeof instanceBind === 'function');
ok(instanceBind({}) === undefined);
ok(typeof instanceBind(it => it) === 'function');
ok(instanceBind(it => it).call(it => it, 1, 2)() === 2);
instanceBind = load('stable/instance/bind');
ok(typeof instanceBind === 'function');
ok(instanceBind({}) === undefined);
ok(typeof instanceBind(it => it) === 'function');
ok(instanceBind(it => it).call(it => it, 1, 2)() === 2);
instanceBind = load('es/instance/bind');
ok(typeof instanceBind === 'function');
ok(instanceBind({}) === undefined);
ok(typeof instanceBind(it => it) === 'function');
ok(instanceBind(it => it).call(it => it, 1, 2)() === 2);
let instanceCodePointAt = load('features/instance/code-point-at');
ok(typeof instanceCodePointAt === 'function');
ok(instanceCodePointAt({}) === undefined);
ok(typeof instanceCodePointAt('') === 'function');
ok(instanceCodePointAt('').call('a', 0) === 97);
instanceCodePointAt = load('stable/instance/code-point-at');
ok(typeof instanceCodePointAt === 'function');
ok(instanceCodePointAt({}) === undefined);
ok(typeof instanceCodePointAt('') === 'function');
ok(instanceCodePointAt('').call('a', 0) === 97);
instanceCodePointAt = load('es/instance/code-point-at');
ok(typeof instanceCodePointAt === 'function');
ok(instanceCodePointAt({}) === undefined);
ok(typeof instanceCodePointAt('') === 'function');
ok(instanceCodePointAt('').call('a', 0) === 97);
const instanceCodePoints = load('features/instance/code-points');
ok(typeof instanceCodePoints === 'function');
ok(instanceCodePoints({}) === undefined);
ok(typeof instanceCodePoints('') === 'function');
ok(instanceCodePoints('').call('abc').next().value.codePoint === 97);
let instanceConcat = load('features/instance/concat');
ok(typeof instanceConcat === 'function');
ok(instanceConcat({}) === undefined);
ok(typeof instanceConcat([]) === 'function');
ok(instanceConcat([]).call([1, 2, 3], [4, 5, 6]).length === 6);
instanceConcat = load('stable/instance/concat');
ok(typeof instanceConcat === 'function');
ok(instanceConcat({}) === undefined);
ok(typeof instanceConcat([]) === 'function');
ok(instanceConcat([]).call([1, 2, 3], [4, 5, 6]).length === 6);
instanceConcat = load('es/instance/concat');
ok(typeof instanceConcat === 'function');
ok(instanceConcat({}) === undefined);
ok(typeof instanceConcat([]) === 'function');
ok(instanceConcat([]).call([1, 2, 3], [4, 5, 6]).length === 6);
let instanceCopyWithin = load('features/instance/copy-within');
ok(typeof instanceCopyWithin === 'function');
ok(instanceCopyWithin({}) === undefined);
ok(typeof instanceCopyWithin([]) === 'function');
ok(instanceCopyWithin([]).call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
instanceCopyWithin = load('stable/instance/copy-within');
ok(typeof instanceCopyWithin === 'function');
ok(instanceCopyWithin({}) === undefined);
ok(typeof instanceCopyWithin([]) === 'function');
ok(instanceCopyWithin([]).call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
instanceCopyWithin = load('es/instance/copy-within');
ok(typeof instanceCopyWithin === 'function');
ok(instanceCopyWithin({}) === undefined);
ok(typeof instanceCopyWithin([]) === 'function');
ok(instanceCopyWithin([]).call([1, 2, 3, 4, 5], 0, 3)[0] === 4);
let instanceEndsWith = load('features/instance/ends-with');
ok(typeof instanceEndsWith === 'function');
ok(instanceEndsWith({}) === undefined);
ok(typeof instanceEndsWith('') === 'function');
ok(instanceEndsWith('').call('qwe', 'we'));
instanceEndsWith = load('stable/instance/ends-with');
ok(typeof instanceEndsWith === 'function');
ok(instanceEndsWith({}) === undefined);
ok(typeof instanceEndsWith('') === 'function');
ok(instanceEndsWith('').call('qwe', 'we'));
instanceEndsWith = load('es/instance/ends-with');
ok(typeof instanceEndsWith === 'function');
ok(instanceEndsWith({}) === undefined);
ok(typeof instanceEndsWith('') === 'function');
ok(instanceEndsWith('').call('qwe', 'we'));
let instanceEntries = load('features/instance/entries');
ok(typeof instanceEntries === 'function');
ok(instanceEntries({}) === undefined);
ok(typeof instanceEntries([]) === 'function');
ok(instanceEntries([]).call([1, 2, 3]).next().value[1] === 1);
instanceEntries = load('stable/instance/entries');
ok(typeof instanceEntries === 'function');
ok(instanceEntries({}) === undefined);
ok(typeof instanceEntries([]) === 'function');
ok(instanceEntries([]).call([1, 2, 3]).next().value[1] === 1);
instanceEntries = load('es/instance/entries');
ok(typeof instanceEntries === 'function');
ok(instanceEntries({}) === undefined);
ok(typeof instanceEntries([]) === 'function');
ok(instanceEntries([]).call([1, 2, 3]).next().value[1] === 1);
let instanceEvery = load('features/instance/every');
ok(typeof instanceEvery === 'function');
ok(instanceEvery({}) === undefined);
ok(typeof instanceEvery([]) === 'function');
ok(instanceEvery([]).call([1, 2, 3], it => typeof it === 'number'));
instanceEvery = load('stable/instance/every');
ok(typeof instanceEvery === 'function');
ok(instanceEvery({}) === undefined);
ok(typeof instanceEvery([]) === 'function');
ok(instanceEvery([]).call([1, 2, 3], it => typeof it === 'number'));
instanceEvery = load('es/instance/every');
ok(typeof instanceEvery === 'function');
ok(instanceEvery({}) === undefined);
ok(typeof instanceEvery([]) === 'function');
ok(instanceEvery([]).call([1, 2, 3], it => typeof it === 'number'));
let instanceFill = load('features/instance/fill');
ok(typeof instanceFill === 'function');
ok(instanceFill({}) === undefined);
ok(typeof instanceFill([]) === 'function');
ok(instanceFill([]).call(Array(5), 42)[3] === 42);
instanceFill = load('stable/instance/fill');
ok(typeof instanceFill === 'function');
ok(instanceFill({}) === undefined);
ok(typeof instanceFill([]) === 'function');
ok(instanceFill([]).call(Array(5), 42)[3] === 42);
instanceFill = load('es/instance/fill');
ok(typeof instanceFill === 'function');
ok(instanceFill({}) === undefined);
ok(typeof instanceFill([]) === 'function');
ok(instanceFill([]).call(Array(5), 42)[3] === 42);
let instanceFilter = load('features/instance/filter');
ok(typeof instanceFilter === 'function');
ok(instanceFilter({}) === undefined);
ok(typeof instanceFilter([]) === 'function');
ok(instanceFilter([]).call([1, 2, 3], it => it % 2).length === 2);
instanceFilter = load('stable/instance/filter');
ok(typeof instanceFilter === 'function');
ok(instanceFilter({}) === undefined);
ok(typeof instanceFilter([]) === 'function');
ok(instanceFilter([]).call([1, 2, 3], it => it % 2).length === 2);
instanceFilter = load('es/instance/filter');
ok(typeof instanceFilter === 'function');
ok(instanceFilter({}) === undefined);
ok(typeof instanceFilter([]) === 'function');
ok(instanceFilter([]).call([1, 2, 3], it => it % 2).length === 2);
const instanceFilterOut = load('features/instance/filter-out');
ok(typeof instanceFilterOut === 'function');
ok(instanceFilterOut({}) === undefined);
ok(typeof instanceFilterOut([]) === 'function');
ok(instanceFilterOut([]).call([1, 2, 3], it => it % 2).length === 1);
let instanceFindIndex = load('features/instance/find-index');
ok(typeof instanceFindIndex === 'function');
ok(instanceFindIndex({}) === undefined);
ok(typeof instanceFindIndex([]) === 'function');
ok(instanceFindIndex([]).call([1, 2, 3], it => it % 2) === 0);
instanceFindIndex = load('stable/instance/find-index');
ok(typeof instanceFindIndex === 'function');
ok(instanceFindIndex({}) === undefined);
ok(typeof instanceFindIndex([]) === 'function');
ok(instanceFindIndex([]).call([1, 2, 3], it => it % 2) === 0);
instanceFindIndex = load('es/instance/find-index');
ok(typeof instanceFindIndex === 'function');
ok(instanceFindIndex({}) === undefined);
ok(typeof instanceFindIndex([]) === 'function');
ok(instanceFindIndex([]).call([1, 2, 3], it => it % 2) === 0);
let instanceFind = load('features/instance/find');
ok(typeof instanceFind === 'function');
ok(instanceFind({}) === undefined);
ok(typeof instanceFind([]) === 'function');
ok(instanceFind([]).call([1, 2, 3], it => it % 2) === 1);
instanceFind = load('stable/instance/find');
ok(typeof instanceFind === 'function');
ok(instanceFind({}) === undefined);
ok(typeof instanceFind([]) === 'function');
ok(instanceFind([]).call([1, 2, 3], it => it % 2) === 1);
instanceFind = load('es/instance/find');
ok(typeof instanceFind === 'function');
ok(instanceFind({}) === undefined);
ok(typeof instanceFind([]) === 'function');
ok(instanceFind([]).call([1, 2, 3], it => it % 2) === 1);
let instanceFlags = load('features/instance/flags');
ok(typeof instanceFlags === 'function');
ok(instanceFlags({}) === undefined);
ok(instanceFlags(/./g) === 'g');
instanceFlags = load('stable/instance/flags');
ok(typeof instanceFlags === 'function');
ok(instanceFlags({}) === undefined);
ok(instanceFlags(/./g) === 'g');
instanceFlags = load('es/instance/flags');
ok(typeof instanceFlags === 'function');
ok(instanceFlags({}) === undefined);
ok(instanceFlags(/./g) === 'g');
let instanceFlatMap = load('features/instance/flat-map');
ok(typeof instanceFlatMap === 'function');
ok(instanceFlatMap({}) === undefined);
ok(typeof instanceFlatMap([]) === 'function');
ok(instanceFlatMap([]).call([1, 2, 3], (v, i) => [v, i]).length === 6);
instanceFlatMap = load('stable/instance/flat-map');
ok(typeof instanceFlatMap === 'function');
ok(instanceFlatMap({}) === undefined);
ok(typeof instanceFlatMap([]) === 'function');
ok(instanceFlatMap([]).call([1, 2, 3], (v, i) => [v, i]).length === 6);
instanceFlatMap = load('es/instance/flat-map');
ok(typeof instanceFlatMap === 'function');
ok(instanceFlatMap({}) === undefined);
ok(typeof instanceFlatMap([]) === 'function');
ok(instanceFlatMap([]).call([1, 2, 3], (v, i) => [v, i]).length === 6);
let instanceFlat = load('features/instance/flat');
ok(typeof instanceFlat === 'function');
ok(instanceFlat({}) === undefined);
ok(typeof instanceFlat([]) === 'function');
ok(instanceFlat([]).call([1, [2, 3], [4, [5, [6]]]]).length === 5);
instanceFlat = load('stable/instance/flat');
ok(typeof instanceFlat === 'function');
ok(instanceFlat({}) === undefined);
ok(typeof instanceFlat([]) === 'function');
ok(instanceFlat([]).call([1, [2, 3], [4, [5, [6]]]]).length === 5);
instanceFlat = load('es/instance/flat');
ok(typeof instanceFlat === 'function');
ok(instanceFlat({}) === undefined);
ok(typeof instanceFlat([]) === 'function');
ok(instanceFlat([]).call([1, [2, 3], [4, [5, [6]]]]).length === 5);
let instanceForEach = load('features/instance/for-each');
ok(typeof instanceForEach === 'function');
ok(instanceForEach({}) === undefined);
ok(typeof instanceForEach([]) === 'function');
instanceForEach = load('stable/instance/for-each');
ok(typeof instanceForEach === 'function');
ok(instanceForEach({}) === undefined);
ok(typeof instanceForEach([]) === 'function');
instanceForEach = load('es/instance/for-each');
ok(typeof instanceForEach === 'function');
ok(instanceForEach({}) === undefined);
ok(typeof instanceForEach([]) === 'function');
let instanceIncludes = load('features/instance/includes');
ok(typeof instanceIncludes === 'function');
ok(instanceIncludes({}) === undefined);
ok(typeof instanceIncludes([]) === 'function');
ok(typeof instanceIncludes('') === 'function');
ok(instanceIncludes([]).call([1, 2, 3], 2));
ok(instanceIncludes('').call('123', '2'));
instanceIncludes = load('stable/instance/includes');
ok(typeof instanceIncludes === 'function');
ok(instanceIncludes({}) === undefined);
ok(typeof instanceIncludes([]) === 'function');
ok(typeof instanceIncludes('') === 'function');
ok(instanceIncludes([]).call([1, 2, 3], 2));
ok(instanceIncludes('').call('123', '2'));
instanceIncludes = load('es/instance/includes');
ok(typeof instanceIncludes === 'function');
ok(instanceIncludes({}) === undefined);
ok(typeof instanceIncludes([]) === 'function');
ok(typeof instanceIncludes('') === 'function');
ok(instanceIncludes([]).call([1, 2, 3], 2));
ok(instanceIncludes('').call('123', '2'));
let instanceIndexOf = load('features/instance/index-of');
ok(typeof instanceIndexOf === 'function');
ok(instanceIndexOf({}) === undefined);
ok(typeof instanceIndexOf([]) === 'function');
ok(instanceIndexOf([]).call([1, 2, 3], 2) === 1);
instanceIndexOf = load('stable/instance/index-of');
ok(typeof instanceIndexOf === 'function');
ok(instanceIndexOf({}) === undefined);
ok(typeof instanceIndexOf([]) === 'function');
ok(instanceIndexOf([]).call([1, 2, 3], 2) === 1);
instanceIndexOf = load('es/instance/index-of');
ok(typeof instanceIndexOf === 'function');
ok(instanceIndexOf({}) === undefined);
ok(typeof instanceIndexOf([]) === 'function');
ok(instanceIndexOf([]).call([1, 2, 3], 2) === 1);
let instanceKeys = load('features/instance/keys');
ok(typeof instanceKeys === 'function');
ok(instanceKeys({}) === undefined);
ok(typeof instanceKeys([]) === 'function');
ok(instanceKeys([]).call([1, 2, 3]).next().value === 0);
instanceKeys = load('stable/instance/keys');
ok(typeof instanceKeys === 'function');
ok(instanceKeys({}) === undefined);
ok(typeof instanceKeys([]) === 'function');
ok(instanceKeys([]).call([1, 2, 3]).next().value === 0);
instanceKeys = load('es/instance/keys');
ok(typeof instanceKeys === 'function');
ok(instanceKeys({}) === undefined);
ok(typeof instanceKeys([]) === 'function');
ok(instanceKeys([]).call([1, 2, 3]).next().value === 0);
let instanceLastIndexOf = load('features/instance/last-index-of');
ok(typeof instanceLastIndexOf === 'function');
ok(instanceLastIndexOf({}) === undefined);
ok(typeof instanceLastIndexOf([]) === 'function');
ok(instanceLastIndexOf([]).call([1, 2, 3], 2) === 1);
instanceLastIndexOf = load('stable/instance/last-index-of');
ok(typeof instanceLastIndexOf === 'function');
ok(instanceLastIndexOf({}) === undefined);
ok(typeof instanceLastIndexOf([]) === 'function');
ok(instanceLastIndexOf([]).call([1, 2, 3], 2) === 1);
instanceLastIndexOf = load('es/instance/last-index-of');
ok(typeof instanceLastIndexOf === 'function');
ok(instanceLastIndexOf({}) === undefined);
ok(typeof instanceLastIndexOf([]) === 'function');
ok(instanceLastIndexOf([]).call([1, 2, 3], 2) === 1);
let instanceMap = load('features/instance/map');
ok(typeof instanceMap === 'function');
ok(instanceMap({}) === undefined);
ok(typeof instanceMap([]) === 'function');
ok(instanceMap([]).call([1, 2, 3], it => it % 2)[1] === 0);
instanceMap = load('stable/instance/map');
ok(typeof instanceMap === 'function');
ok(instanceMap({}) === undefined);
ok(typeof instanceMap([]) === 'function');
ok(instanceMap([]).call([1, 2, 3], it => it % 2)[1] === 0);
instanceMap = load('es/instance/map');
ok(typeof instanceMap === 'function');
ok(instanceMap({}) === undefined);
ok(typeof instanceMap([]) === 'function');
ok(instanceMap([]).call([1, 2, 3], it => it % 2)[1] === 0);
let instanceMatchAll = load('features/instance/match-all');
ok(typeof instanceMatchAll === 'function');
ok(instanceMatchAll({}) === undefined);
ok(typeof instanceMatchAll('') === 'function');
ok(instanceMatchAll('').call('test1test2', /t(e)(st(\d?))/g).next().value[0] === 'test1');
instanceMatchAll = load('stable/instance/match-all');
ok(typeof instanceMatchAll === 'function');
ok(instanceMatchAll({}) === undefined);
ok(typeof instanceMatchAll('') === 'function');
ok(instanceMatchAll('').call('test1test2', /t(e)(st(\d?))/g).next().value[0] === 'test1');
instanceMatchAll = load('es/instance/match-all');
ok(typeof instanceMatchAll === 'function');
ok(instanceMatchAll({}) === undefined);
ok(typeof instanceMatchAll('') === 'function');
ok(instanceMatchAll('').call('test1test2', /t(e)(st(\d?))/g).next().value[0] === 'test1');
let instancePadEnd = load('features/instance/pad-end');
ok(typeof instancePadEnd === 'function');
ok(instancePadEnd({}) === undefined);
ok(typeof instancePadEnd('') === 'function');
ok(instancePadEnd('').call('a', 3, 'b') === 'abb');
instancePadEnd = load('stable/instance/pad-end');
ok(typeof instancePadEnd === 'function');
ok(instancePadEnd({}) === undefined);
ok(typeof instancePadEnd('') === 'function');
ok(instancePadEnd('').call('a', 3, 'b') === 'abb');
instancePadEnd = load('es/instance/pad-end');
ok(typeof instancePadEnd === 'function');
ok(instancePadEnd({}) === undefined);
ok(typeof instancePadEnd('') === 'function');
ok(instancePadEnd('').call('a', 3, 'b') === 'abb');
let instancePadStart = load('features/instance/pad-start');
ok(typeof instancePadStart === 'function');
ok(instancePadStart({}) === undefined);
ok(typeof instancePadStart('') === 'function');
ok(instancePadStart('').call('a', 3, 'b') === 'bba');
instancePadStart = load('stable/instance/pad-start');
ok(typeof instancePadStart === 'function');
ok(instancePadStart({}) === undefined);
ok(typeof instancePadStart('') === 'function');
ok(instancePadStart('').call('a', 3, 'b') === 'bba');
instancePadStart = load('es/instance/pad-start');
ok(typeof instancePadStart === 'function');
ok(instancePadStart({}) === undefined);
ok(typeof instancePadStart('') === 'function');
ok(instancePadStart('').call('a', 3, 'b') === 'bba');
let instanceReduceRight = load('features/instance/reduce-right');
ok(typeof instanceReduceRight === 'function');
ok(instanceReduceRight({}) === undefined);
ok(typeof instanceReduceRight([]) === 'function');
ok(instanceReduceRight([]).call([1, 2, 3], (memo, it) => it + memo, '') === '123');
instanceReduceRight = load('stable/instance/reduce-right');
ok(typeof instanceReduceRight === 'function');
ok(instanceReduceRight({}) === undefined);
ok(typeof instanceReduceRight([]) === 'function');
ok(instanceReduceRight([]).call([1, 2, 3], (memo, it) => it + memo, '') === '123');
instanceReduceRight = load('es/instance/reduce-right');
ok(typeof instanceReduceRight === 'function');
ok(instanceReduceRight({}) === undefined);
ok(typeof instanceReduceRight([]) === 'function');
ok(instanceReduceRight([]).call([1, 2, 3], (memo, it) => it + memo, '') === '123');
let instanceReduce = load('features/instance/reduce');
ok(typeof instanceReduce === 'function');
ok(instanceReduce({}) === undefined);
ok(typeof instanceReduce([]) === 'function');
ok(instanceReduce([]).call([1, 2, 3], (memo, it) => it + memo, '') === '321');
instanceReduce = load('stable/instance/reduce');
ok(typeof instanceReduce === 'function');
ok(instanceReduce({}) === undefined);
ok(typeof instanceReduce([]) === 'function');
ok(instanceReduce([]).call([1, 2, 3], (memo, it) => it + memo, '') === '321');
instanceReduce = load('es/instance/reduce');
ok(typeof instanceReduce === 'function');
ok(instanceReduce({}) === undefined);
ok(typeof instanceReduce([]) === 'function');
ok(instanceReduce([]).call([1, 2, 3], (memo, it) => it + memo, '') === '321');
let instanceRepeat = load('features/instance/repeat');
ok(typeof instanceRepeat === 'function');
ok(instanceRepeat({}) === undefined);
ok(typeof instanceRepeat('') === 'function');
ok(instanceRepeat('').call('a', 3) === 'aaa');
instanceRepeat = load('stable/instance/repeat');
ok(typeof instanceRepeat === 'function');
ok(instanceRepeat({}) === undefined);
ok(typeof instanceRepeat('') === 'function');
ok(instanceRepeat('').call('a', 3) === 'aaa');
instanceRepeat = load('es/instance/repeat');
ok(typeof instanceRepeat === 'function');
ok(instanceRepeat({}) === undefined);
ok(typeof instanceRepeat('') === 'function');
ok(instanceRepeat('').call('a', 3) === 'aaa');
let instanceReplaceAll = load('features/instance/replace-all');
ok(typeof instanceReplaceAll === 'function');
ok(instanceReplaceAll({}) === undefined);
ok(typeof instanceReplaceAll('') === 'function');
ok(instanceReplaceAll('').call('aba', 'a', 'c') === 'cbc');
instanceReplaceAll = load('stable/instance/replace-all');
ok(typeof instanceReplaceAll === 'function');
ok(instanceReplaceAll({}) === undefined);
ok(typeof instanceReplaceAll('') === 'function');
ok(instanceReplaceAll('').call('aba', 'a', 'c') === 'cbc');
instanceReplaceAll = load('es/instance/replace-all');
ok(typeof instanceReplaceAll === 'function');
ok(instanceReplaceAll({}) === undefined);
ok(typeof instanceReplaceAll('') === 'function');
ok(instanceReplaceAll('').call('aba', 'a', 'c') === 'cbc');
let instanceReverse = load('features/instance/reverse');
ok(typeof instanceReverse === 'function');
ok(instanceReverse({}) === undefined);
ok(typeof instanceReverse([]) === 'function');
instanceReverse = load('stable/instance/reverse');
ok(typeof instanceReverse === 'function');
ok(instanceReverse({}) === undefined);
ok(typeof instanceReverse([]) === 'function');
instanceReverse = load('es/instance/reverse');
ok(typeof instanceReverse === 'function');
ok(instanceReverse({}) === undefined);
ok(typeof instanceReverse([]) === 'function');
let instanceSlice = load('features/instance/slice');
ok(typeof instanceSlice === 'function');
ok(instanceSlice({}) === undefined);
ok(typeof instanceSlice([]) === 'function');
instanceSlice = load('stable/instance/slice');
ok(typeof instanceSlice === 'function');
ok(instanceSlice({}) === undefined);
ok(typeof instanceSlice([]) === 'function');
instanceSlice = load('es/instance/slice');
ok(typeof instanceSlice === 'function');
ok(instanceSlice({}) === undefined);
ok(typeof instanceSlice([]) === 'function');
let instanceSome = load('features/instance/some');
ok(typeof instanceSome === 'function');
ok(instanceSome({}) === undefined);
ok(typeof instanceSome([]) === 'function');
ok(instanceSome([]).call([1, 2, 3], it => typeof it === 'number'));
instanceSome = load('stable/instance/some');
ok(typeof instanceSome === 'function');
ok(instanceSome({}) === undefined);
ok(typeof instanceSome([]) === 'function');
ok(instanceSome([]).call([1, 2, 3], it => typeof it === 'number'));
instanceSome = load('es/instance/some');
ok(typeof instanceSome === 'function');
ok(instanceSome({}) === undefined);
ok(typeof instanceSome([]) === 'function');
ok(instanceSome([]).call([1, 2, 3], it => typeof it === 'number'));
let instanceSort = load('features/instance/sort');
ok(typeof instanceSort === 'function');
ok(instanceSort({}) === undefined);
ok(typeof instanceSort([]) === 'function');
instanceSort = load('stable/instance/sort');
ok(typeof instanceSort === 'function');
ok(instanceSort({}) === undefined);
ok(typeof instanceSort([]) === 'function');
instanceSort = load('es/instance/sort');
ok(typeof instanceSort === 'function');
ok(instanceSort({}) === undefined);
ok(typeof instanceSort([]) === 'function');
let instanceSplice = load('features/instance/splice');
ok(typeof instanceSplice === 'function');
ok(instanceSplice({}) === undefined);
ok(typeof instanceSplice([]) === 'function');
instanceSplice = load('stable/instance/splice');
ok(typeof instanceSplice === 'function');
ok(instanceSplice({}) === undefined);
ok(typeof instanceSplice([]) === 'function');
instanceSplice = load('es/instance/splice');
ok(typeof instanceSplice === 'function');
ok(instanceSplice({}) === undefined);
ok(typeof instanceSplice([]) === 'function');
let instanceStartsWith = load('features/instance/starts-with');
ok(typeof instanceStartsWith === 'function');
ok(instanceStartsWith({}) === undefined);
ok(typeof instanceStartsWith('') === 'function');
ok(instanceStartsWith('').call('qwe', 'qw'));
instanceStartsWith = load('stable/instance/starts-with');
ok(typeof instanceStartsWith === 'function');
ok(instanceStartsWith({}) === undefined);
ok(typeof instanceStartsWith('') === 'function');
ok(instanceStartsWith('').call('qwe', 'qw'));
instanceStartsWith = load('es/instance/starts-with');
ok(typeof instanceStartsWith === 'function');
ok(instanceStartsWith({}) === undefined);
ok(typeof instanceStartsWith('') === 'function');
ok(instanceStartsWith('').call('qwe', 'qw'));
let instanceTrimEnd = load('features/instance/trim-end');
ok(typeof instanceTrimEnd === 'function');
ok(instanceTrimEnd({}) === undefined);
ok(typeof instanceTrimEnd('') === 'function');
ok(instanceTrimEnd('').call(' 1 ') === ' 1');
instanceTrimEnd = load('stable/instance/trim-end');
ok(typeof instanceTrimEnd === 'function');
ok(instanceTrimEnd({}) === undefined);
ok(typeof instanceTrimEnd('') === 'function');
ok(instanceTrimEnd('').call(' 1 ') === ' 1');
instanceTrimEnd = load('es/instance/trim-end');
ok(typeof instanceTrimEnd === 'function');
ok(instanceTrimEnd({}) === undefined);
ok(typeof instanceTrimEnd('') === 'function');
ok(instanceTrimEnd('').call(' 1 ') === ' 1');
let instanceTrimLeft = load('features/instance/trim-left');
ok(typeof instanceTrimLeft === 'function');
ok(instanceTrimLeft({}) === undefined);
ok(typeof instanceTrimLeft('') === 'function');
ok(instanceTrimLeft('').call(' 1 ') === '1 ');
instanceTrimLeft = load('stable/instance/trim-left');
ok(typeof instanceTrimLeft === 'function');
ok(instanceTrimLeft({}) === undefined);
ok(typeof instanceTrimLeft('') === 'function');
ok(instanceTrimLeft('').call(' 1 ') === '1 ');
instanceTrimLeft = load('es/instance/trim-left');
ok(typeof instanceTrimLeft === 'function');
ok(instanceTrimLeft({}) === undefined);
ok(typeof instanceTrimLeft('') === 'function');
ok(instanceTrimLeft('').call(' 1 ') === '1 ');
let instanceTrimRight = load('features/instance/trim-right');
ok(typeof instanceTrimRight === 'function');
ok(instanceTrimRight({}) === undefined);
ok(typeof instanceTrimRight('') === 'function');
ok(instanceTrimRight('').call(' 1 ') === ' 1');
instanceTrimRight = load('stable/instance/trim-right');
ok(typeof instanceTrimRight === 'function');
ok(instanceTrimRight({}) === undefined);
ok(typeof instanceTrimRight('') === 'function');
ok(instanceTrimRight('').call(' 1 ') === ' 1');
instanceTrimRight = load('es/instance/trim-right');
ok(typeof instanceTrimRight === 'function');
ok(instanceTrimRight({}) === undefined);
ok(typeof instanceTrimRight('') === 'function');
ok(instanceTrimRight('').call(' 1 ') === ' 1');
let instanceTrimStart = load('features/instance/trim-start');
ok(typeof instanceTrimStart === 'function');
ok(instanceTrimStart({}) === undefined);
ok(typeof instanceTrimStart('') === 'function');
ok(instanceTrimStart('').call(' 1 ') === '1 ');
instanceTrimStart = load('stable/instance/trim-start');
ok(typeof instanceTrimStart === 'function');
ok(instanceTrimStart({}) === undefined);
ok(typeof instanceTrimStart('') === 'function');
ok(instanceTrimStart('').call(' 1 ') === '1 ');
instanceTrimStart = load('es/instance/trim-start');
ok(typeof instanceTrimStart === 'function');
ok(instanceTrimStart({}) === undefined);
ok(typeof instanceTrimStart('') === 'function');
ok(instanceTrimStart('').call(' 1 ') === '1 ');
let instanceTrim = load('features/instance/trim');
ok(typeof instanceTrim === 'function');
ok(instanceTrim({}) === undefined);
ok(typeof instanceTrim('') === 'function');
ok(instanceTrim('').call(' 1 ') === '1');
instanceTrim = load('stable/instance/trim');
ok(typeof instanceTrim === 'function');
ok(instanceTrim({}) === undefined);
ok(typeof instanceTrim('') === 'function');
ok(instanceTrim('').call(' 1 ') === '1');
instanceTrim = load('es/instance/trim');
ok(typeof instanceTrim === 'function');
ok(instanceTrim({}) === undefined);
ok(typeof instanceTrim('') === 'function');
ok(instanceTrim('').call(' 1 ') === '1');
const instanceUniqueBy = load('features/instance/unique-by');
ok(typeof instanceUniqueBy === 'function');
ok(instanceUniqueBy({}) === undefined);
ok(typeof instanceUniqueBy([]) === 'function');
ok(instanceUniqueBy([]).call([1, 2, 3, 2, 1]).length === 3);
let instanceValues = load('features/instance/values');
ok(typeof instanceValues === 'function');
ok(instanceValues({}) === undefined);
ok(typeof instanceValues([]) === 'function');
ok(instanceValues([]).call([1, 2, 3]).next().value === 1);
instanceValues = load('stable/instance/values');
ok(typeof instanceValues === 'function');
ok(instanceValues({}) === undefined);
ok(typeof instanceValues([]) === 'function');
ok(instanceValues([]).call([1, 2, 3]).next().value === 1);
instanceValues = load('es/instance/values');
ok(typeof instanceValues === 'function');
ok(instanceValues({}) === undefined);
ok(typeof instanceValues([]) === 'function');
ok(instanceValues([]).call([1, 2, 3]).next().value === 1);
for (const key in compat) load(`modules/${ key }`);
}
ok(typeof load('features/string/match') === 'function');
ok(typeof load('features/string/replace') === 'function');
ok(typeof load('features/string/search') === 'function');
ok(load('features/string/split')('a s d', ' ').length === 3);
ok(typeof load('features/array-buffer') === 'function');
ok(typeof load('features/array-buffer/constructor') === 'function');
ok(typeof load('features/array-buffer/is-view') === 'function');
load('features/array-buffer/slice');
ok(typeof load('features/data-view') === 'function');
ok(typeof load('features/typed-array/int8-array') === 'function');
ok(typeof load('features/typed-array/uint8-array') === 'function');
ok(typeof load('features/typed-array/uint8-clamped-array') === 'function');
ok(typeof load('features/typed-array/int16-array') === 'function');
ok(typeof load('features/typed-array/uint16-array') === 'function');
ok(typeof load('features/typed-array/int32-array') === 'function');
ok(typeof load('features/typed-array/uint32-array') === 'function');
ok(typeof load('features/typed-array/float32-array') === 'function');
ok(typeof load('features/typed-array/float64-array') === 'function');
load('features/typed-array/at');
load('features/typed-array/copy-within');
load('features/typed-array/entries');
load('features/typed-array/every');
load('features/typed-array/fill');
load('features/typed-array/filter');
load('features/typed-array/filter-out');
load('features/typed-array/find');
load('features/typed-array/find-index');
load('features/typed-array/for-each');
load('features/typed-array/from');
load('features/typed-array/includes');
load('features/typed-array/index-of');
load('features/typed-array/iterator');
load('features/typed-array/join');
load('features/typed-array/keys');
load('features/typed-array/last-index-of');
load('features/typed-array/map');
load('features/typed-array/of');
load('features/typed-array/reduce');
load('features/typed-array/reduce-right');
load('features/typed-array/reverse');
load('features/typed-array/set');
load('features/typed-array/slice');
load('features/typed-array/some');
load('features/typed-array/sort');
load('features/typed-array/subarray');
load('features/typed-array/to-locale-string');
load('features/typed-array/to-string');
load('features/typed-array/values');
ok(typeof load('features/typed-array').Uint32Array === 'function');
ok(typeof load('es/string/match') === 'function');
ok('next' in load('es/string/match-all')('a', /./g));
ok(typeof load('es/string/replace') === 'function');
ok(typeof load('es/string/search') === 'function');
ok(load('es/string/split')('a s d', ' ').length === 3);
ok(typeof load('es/array-buffer') === 'function');
ok(typeof load('es/array-buffer/constructor') === 'function');
ok(typeof load('es/array-buffer/is-view') === 'function');
load('es/array-buffer/slice');
ok(typeof load('es/data-view') === 'function');
ok(typeof load('es/typed-array/int8-array') === 'function');
ok(typeof load('es/typed-array/uint8-array') === 'function');
ok(typeof load('es/typed-array/uint8-clamped-array') === 'function');
ok(typeof load('es/typed-array/int16-array') === 'function');
ok(typeof load('es/typed-array/uint16-array') === 'function');
ok(typeof load('es/typed-array/int32-array') === 'function');
ok(typeof load('es/typed-array/uint32-array') === 'function');
ok(typeof load('es/typed-array/float32-array') === 'function');
ok(typeof load('es/typed-array/float64-array') === 'function');
load('es/typed-array/copy-within');
load('es/typed-array/entries');
load('es/typed-array/every');
load('es/typed-array/fill');
load('es/typed-array/filter');
load('es/typed-array/find');
load('es/typed-array/find-index');
load('es/typed-array/for-each');
load('es/typed-array/from');
load('es/typed-array/includes');
load('es/typed-array/index-of');
load('es/typed-array/iterator');
load('es/typed-array/join');
load('es/typed-array/keys');
load('es/typed-array/last-index-of');
load('es/typed-array/map');
load('es/typed-array/of');
load('es/typed-array/reduce');
load('es/typed-array/reduce-right');
load('es/typed-array/reverse');
load('es/typed-array/set');
load('es/typed-array/slice');
load('es/typed-array/some');
load('es/typed-array/sort');
load('es/typed-array/subarray');
load('es/typed-array/to-locale-string');
load('es/typed-array/to-string');
load('es/typed-array/values');
ok(typeof load('es/typed-array').Uint32Array === 'function');
// eslint-disable-next-line no-console
console.log(`\u001B[32mtested ${ tested } commonjs entry points\u001B[0m`);
core-js-3.8.2/tests/compat/ 0000775 0000000 0000000 00000000000 13774351224 0015523 5 ustar 00root root 0000000 0000000 core-js-3.8.2/tests/compat/browsers-runner.js 0000664 0000000 0000000 00000001222 13774351224 0021233 0 ustar 00root root 0000000 0000000 var table = document.getElementById('table');
for (var key in window.tests) {
var test = window.tests[key];
var result = true;
try {
if (typeof test == 'function') {
result = !!test();
} else {
for (var i = 0; i < test.length; i++) result = result && !!test[i].call(undefined);
}
} catch (error) {
result = false;
}
var tr = document.createElement('tr');
tr.className = result;
var td1 = document.createElement('td');
td1.innerHTML = key;
tr.appendChild(td1);
var td2 = document.createElement('td');
td2.innerHTML = result ? 'not required' : 'required';
tr.appendChild(td2);
table.appendChild(tr);
}
core-js-3.8.2/tests/compat/index.html 0000664 0000000 0000000 00000000433 13774351224 0017520 0 ustar 00root root 0000000 0000000
core-js-compat
core-js-3.8.2/tests/compat/node-runner.js 0000664 0000000 0000000 00000000703 13774351224 0020315 0 ustar 00root root 0000000 0000000 require('./tests');
var tests = global.tests;
var result = {};
for (var key in tests) {
var test = tests[key];
try {
if (typeof test == 'function') {
result[key] = !!test();
} else result[key] = test.reduce(function (accumulator, $test) {
return accumulator && !!$test();
}, true);
} catch (error) {
result[key] = false;
}
}
// eslint-disable-next-line no-console
console.log(JSON.stringify(result, null, ' '));
core-js-3.8.2/tests/compat/tests.js 0000664 0000000 0000000 00000133303 13774351224 0017226 0 ustar 00root root 0000000 0000000 /* eslint-disable no-new, radix */
// eslint-disable-next-line no-new-func
var GLOBAL = Function('return this')();
// eslint-disable-next-line max-len
var WHITESPACES = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
var NOT_WHITESPACES = '\u200B\u0085\u180E';
var USERAGENT = GLOBAL.navigator && GLOBAL.navigator.userAgent || '';
// eslint-disable-next-line unicorn/no-unsafe-regex
var WEBKIT_STRING_PAD_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(USERAGENT);
var DESCRIPTORS_SUPPORT = function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a == 7;
};
var PROMISES_SUPPORT = function () {
var process = GLOBAL.process;
var IS_NODE = Object.prototype.toString.call(process) == '[object process]';
var v8 = process && process.versions && process.versions.v8 || '';
var promise = Promise.resolve(1);
var empty = function () { /* empty */ };
var FakePromise = (promise.constructor = {})[Symbol.species] = function (exec) {
exec(empty, empty);
};
return (IS_NODE || typeof PromiseRejectionEvent == 'function')
&& promise.then(empty) instanceof FakePromise
&& v8.indexOf('6.6') !== 0
&& USERAGENT.indexOf('Chrome/66') === -1;
};
var SYMBOLS_SUPPORT = function () {
return String(Symbol());
};
var URL_AND_URL_SEARCH_PARAMS_SUPPORT = function () {
var url = new URL('b?a=1&b=2&c=3', 'http://a');
var searchParams = url.searchParams;
var result = '';
url.pathname = 'c%20d';
searchParams.forEach(function (value, key) {
searchParams['delete']('b');
result += key + value;
});
return searchParams.sort
&& url.href === 'http://a/c%20d?a=1&c=3'
&& searchParams.get('c') === '3'
&& String(new URLSearchParams('?a=1')) === 'a=1'
&& searchParams[Symbol.iterator]
&& new URL('https://a@b').username === 'a'
&& new URLSearchParams(new URLSearchParams('a=b')).get('a') === 'b'
&& new URL('http://тест').host === 'xn--e1aybc'
&& new URL('http://a#б').hash === '#%D0%B1'
&& result === 'a1c3'
&& new URL('http://x', undefined).host === 'x';
};
var OBJECT_PROTOTYPE_ACCESSORS_SUPPORT = function () {
try {
Object.prototype.__defineSetter__.call(null, Math.random(), function () { /* empty */ });
} catch (error) {
return Object.prototype.__defineSetter__;
}
};
var SAFE_ITERATION_CLOSING_SUPPORT = function () {
var SAFE_CLOSING = false;
try {
var called = 0;
var iteratorWithReturn = {
next: function () {
return { done: !!called++ };
},
'return': function () {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[Symbol.iterator] = function () {
return this;
};
Array.from(iteratorWithReturn, function () { throw Error('close'); });
} catch (error) {
return SAFE_CLOSING;
}
};
var ARRAY_BUFFER_SUPPORT = function () {
return ArrayBuffer && DataView;
};
var TYPED_ARRAY_CONSTRUCTORS_LIST = {
Int8Array: 1,
Uint8Array: 1,
Uint8ClampedArray: 1,
Int16Array: 2,
Uint16Array: 2,
Int32Array: 4,
Uint32Array: 4,
Float32Array: 4,
Float64Array: 8
};
var ARRAY_BUFFER_VIEWS_SUPPORT = function () {
for (var constructor in TYPED_ARRAY_CONSTRUCTORS_LIST) if (!GLOBAL[constructor]) return false;
return ARRAY_BUFFER_SUPPORT();
};
var TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS = function () {
try {
return !Int8Array(1);
} catch (error) { /* empty */ }
try {
return !new Int8Array(-1);
} catch (error) { /* empty */ }
new Int8Array();
new Int8Array(null);
new Int8Array(1.5);
var called = 0;
var iterable = {
next: function () {
return { done: !!called++, value: 1 };
}
};
iterable[Symbol.iterator] = function () {
return this;
};
return new Int8Array(iterable)[0] == 1
&& new Int8Array(new ArrayBuffer(2), 1, undefined).length == 1;
};
function createIsRegExpLogicTest(name) {
return function () {
var regexp = /./;
try {
'/./'[name](regexp);
} catch (error1) {
try {
regexp[Symbol.match] = false;
return '/./'[name](regexp);
} catch (error2) { /* empty */ }
} return false;
};
}
function createStringHTMLMethodTest(METHOD_NAME) {
return function () {
var test = ''[METHOD_NAME]('"');
return test == test.toLowerCase() && test.split('"').length <= 3;
};
}
function createStringTrimMethodTest(METHOD_NAME) {
return function () {
return !WHITESPACES[METHOD_NAME]()
&& NOT_WHITESPACES[METHOD_NAME]() === NOT_WHITESPACES
&& WHITESPACES[METHOD_NAME].name === METHOD_NAME;
};
}
GLOBAL.tests = {
'es.symbol': [SYMBOLS_SUPPORT, function () {
return Object.getOwnPropertySymbols
&& Object.getOwnPropertySymbols('qwe')
&& Symbol['for']
&& Symbol.keyFor
&& JSON.stringify([Symbol()]) == '[null]'
&& JSON.stringify({ a: Symbol() }) == '{}'
&& JSON.stringify(Object(Symbol())) == '{}'
&& Symbol.prototype[Symbol.toPrimitive]
&& Symbol.prototype[Symbol.toStringTag];
}],
'es.symbol.description': function () {
return Symbol('foo').description == 'foo' && Symbol().description === undefined;
},
'es.symbol.async-iterator': function () {
return Symbol.asyncIterator;
},
'es.symbol.has-instance': [SYMBOLS_SUPPORT, function () {
return Symbol.hasInstance;
}],
'es.symbol.is-concat-spreadable': [SYMBOLS_SUPPORT, function () {
return Symbol.isConcatSpreadable;
}],
'es.symbol.iterator': [SYMBOLS_SUPPORT, function () {
return Symbol.iterator;
}],
'es.symbol.match': [SYMBOLS_SUPPORT, function () {
return Symbol.match;
}],
'es.symbol.match-all': [SYMBOLS_SUPPORT, function () {
return Symbol.matchAll;
}],
'es.symbol.replace': [SYMBOLS_SUPPORT, function () {
return Symbol.replace;
}],
'es.symbol.search': [SYMBOLS_SUPPORT, function () {
return Symbol.search;
}],
'es.symbol.species': [SYMBOLS_SUPPORT, function () {
return Symbol.species;
}],
'es.symbol.split': [SYMBOLS_SUPPORT, function () {
return Symbol.split;
}],
'es.symbol.to-primitive': [SYMBOLS_SUPPORT, function () {
return Symbol.toPrimitive;
}],
'es.symbol.to-string-tag': [SYMBOLS_SUPPORT, function () {
return Symbol.toStringTag;
}],
'es.symbol.unscopables': [SYMBOLS_SUPPORT, function () {
return Symbol.unscopables;
}],
'es.aggregate-error': function () {
return typeof AggregateError === 'function';
},
'es.array.concat': function () {
var array1 = [];
array1[Symbol.isConcatSpreadable] = false;
var array2 = [];
var constructor = array2.constructor = {};
constructor[Symbol.species] = function () {
return { foo: 1 };
};
return array1.concat()[0] === array1 && array2.concat().foo === 1;
},
'es.array.copy-within': function () {
return Array.prototype.copyWithin && Array.prototype[Symbol.unscopables].copyWithin;
},
'es.array.every': function () {
[].every.call({ length: -1, 0: 1 }, function (it) { throw it; });
try {
Array.prototype.every.call(null, function () { /* empty */ });
return false;
} catch (error) { /* empty */ }
return Array.prototype.every;
},
'es.array.fill': function () {
return Array.prototype.fill && Array.prototype[Symbol.unscopables].fill;
},
'es.array.filter': function () {
[].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
var array = [];
var constructor = array.constructor = {};
constructor[Symbol.species] = function () {
return { foo: 1 };
};
return array.filter(Boolean).foo === 1;
},
'es.array.find': function () {
[].find.call({ length: -1, 0: 1 }, function (it) { throw it; });
var SKIPS_HOLES = true;
Array(1).find(function () { return SKIPS_HOLES = false; });
return !SKIPS_HOLES && Array.prototype[Symbol.unscopables].find;
},
'es.array.find-index': function () {
[].findIndex.call({ length: -1, 0: 1 }, function (it) { throw it; });
var SKIPS_HOLES = true;
Array(1).findIndex(function () { return SKIPS_HOLES = false; });
return !SKIPS_HOLES && Array.prototype[Symbol.unscopables].findIndex;
},
'es.array.flat': function () {
return Array.prototype.flat;
},
'es.array.flat-map': function () {
return Array.prototype.flatMap;
},
'es.array.for-each': function () {
[].forEach.call({ length: -1, 0: 1 }, function (it) { throw it; });
try {
Array.prototype.forEach.call(null, function () { /* empty */ });
return false;
} catch (error) { /* empty */ }
return Array.prototype.forEach;
},
'es.array.from': SAFE_ITERATION_CLOSING_SUPPORT,
'es.array.includes': function () {
[].includes.call(Object.defineProperty({ length: -1 }, 0, {
enumerable: true,
get: function (it) { throw it; }
}), 0);
return Array.prototype[Symbol.unscopables].includes;
},
'es.array.index-of': function () {
[].indexOf.call(Object.defineProperty({ length: -1 }, 0, {
enumerable: true,
get: function (it) { throw it; }
}), 0);
try {
[].indexOf.call(null);
} catch (error) {
return 1 / [1].indexOf(1, -0) > 0;
}
},
'es.array.is-array': function () {
return Array.isArray;
},
'es.array.iterator': [SYMBOLS_SUPPORT, function () {
return [][Symbol.iterator] === [].values
&& [][Symbol.iterator].name === 'values'
&& [].entries()[Symbol.toStringTag] === 'Array Iterator'
&& [].keys().next()
&& [][Symbol.unscopables].keys
&& [][Symbol.unscopables].values
&& [][Symbol.unscopables].entries;
}],
'es.array.join': function () {
try {
if (!Object.prototype.propertyIsEnumerable.call(Object('z'), 0)) return false;
} catch (error) {
return false;
}
try {
Array.prototype.join.call(null);
return false;
} catch (error) { /* empty */ }
return true;
},
'es.array.last-index-of': function () {
[].indexOf.call(Object.defineProperty({ length: -1 }, 0, {
enumerable: true,
get: function (it) { throw it; }
}), 0);
try {
[].lastIndexOf.call(null);
} catch (error) {
return 1 / [1].lastIndexOf(1, -0) > 0;
}
},
'es.array.map': function () {
[].map.call({ length: -1, 0: 1 }, function (it) { throw it; });
var array = [];
var constructor = array.constructor = {};
constructor[Symbol.species] = function () {
return { foo: 1 };
};
return array.map(function () { return true; }).foo === 1;
},
'es.array.of': function () {
function F() { /* empty */ }
return Array.of.call(F) instanceof F;
},
'es.array.reduce': function () {
[].reduce.call({ length: -1, 0: 1 }, function (it) { throw it; }, 1);
try {
Array.prototype.reduce.call(null, function () { /* empty */ }, 1);
} catch (error) {
return Array.prototype.reduce;
}
},
'es.array.reduce-right': function () {
[].reduce.call({ length: -1, 0: 1 }, function (it) { throw it; }, 0);
try {
Array.prototype.reduceRight.call(null, function () { /* empty */ }, 1);
} catch (error) {
return Array.prototype.reduceRight;
}
},
'es.array.reverse': function () {
var test = [1, 2];
return String(test) !== String(test.reverse());
},
'es.array.slice': function () {
if ([].slice.call({ length: -1, 0: 1 }, 0, 1).length) return false;
var array = [];
var constructor = array.constructor = {};
constructor[Symbol.species] = function () {
return { foo: 1 };
};
return array.slice().foo === 1;
},
'es.array.some': function () {
[].some.call({ length: -1, 0: 1 }, function (it) { throw it; });
try {
Array.prototype.some.call(null, function () { /* empty */ });
} catch (error) {
return Array.prototype.some;
}
},
'es.array.sort': function () {
try {
Array.prototype.sort.call(null);
} catch (error1) {
try {
[1, 2, 3].sort(null);
} catch (error2) {
[1, 2, 3].sort(undefined);
return true;
}
}
},
'es.array.species': [SYMBOLS_SUPPORT, function () {
return Array[Symbol.species];
}],
'es.array.splice': function () {
[].splice.call(Object.defineProperty({ length: -1 }, 0, {
enumerable: true,
get: function (it) { throw it; }
}), 0, 1);
var array = [];
var constructor = array.constructor = {};
constructor[Symbol.species] = function () {
return { foo: 1 };
};
return array.splice().foo === 1;
},
'es.array.unscopables.flat': function () {
return Array.prototype[Symbol.unscopables].flat;
},
'es.array.unscopables.flat-map': function () {
return Array.prototype[Symbol.unscopables].flatMap;
},
'es.array-buffer.constructor': [ARRAY_BUFFER_SUPPORT, function () {
try {
return !ArrayBuffer(1);
} catch (error) { /* empty */ }
try {
return !new ArrayBuffer(-1);
} catch (error) { /* empty */ }
new ArrayBuffer();
new ArrayBuffer(1.5);
new ArrayBuffer(NaN);
return ArrayBuffer.name == 'ArrayBuffer';
}],
'es.array-buffer.is-view': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return ArrayBuffer.isView;
}],
'es.array-buffer.slice': [ARRAY_BUFFER_SUPPORT, function () {
return new ArrayBuffer(2).slice(1, undefined).byteLength;
}],
'es.data-view': ARRAY_BUFFER_SUPPORT,
'es.date.now': function () {
return Date.now;
},
'es.date.to-iso-string': function () {
try {
new Date(NaN).toISOString();
} catch (error) {
return new Date(-5e13 - 1).toISOString() == '0385-07-25T07:06:39.999Z';
}
},
'es.date.to-json': function () {
return new Date(NaN).toJSON() === null
&& Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) === 1;
},
'es.date.to-primitive': [SYMBOLS_SUPPORT, function () {
return Date.prototype[Symbol.toPrimitive];
}],
'es.date.to-string': function () {
return new Date(NaN).toString() == 'Invalid Date';
},
'es.function.bind': function () {
return Function.prototype.bind;
},
'es.function.has-instance': [SYMBOLS_SUPPORT, function () {
return Symbol.hasInstance in Function.prototype;
}],
'es.function.name': function () {
return 'name' in Function.prototype;
},
'es.global-this': function () {
return globalThis;
},
'es.json.stringify': function () {
return JSON.stringify('\uDF06\uD834') === '"\\udf06\\ud834"'
&& JSON.stringify('\uDEAD') === '"\\udead"';
},
'es.json.to-string-tag': [SYMBOLS_SUPPORT, function () {
return JSON[Symbol.toStringTag];
}],
'es.map': [SAFE_ITERATION_CLOSING_SUPPORT, function () {
var called = 0;
var iterable = {
next: function () {
return { done: !!called++, value: [1, 2] };
}
};
iterable[Symbol.iterator] = function () {
return this;
};
var map = new Map(iterable);
return map.forEach
&& map[Symbol.iterator]().next()
&& map.get(1) == 2
&& map.set(-0, 3) == map
&& map.has(0)
&& map[Symbol.toStringTag];
}],
'es.math.acosh': function () {
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
return Math.floor(Math.acosh(Number.MAX_VALUE)) == 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
&& Math.acosh(Infinity) == Infinity;
},
'es.math.asinh': function () {
return 1 / Math.asinh(0) > 0;
},
'es.math.atanh': function () {
return 1 / Math.atanh(-0) < 0;
},
'es.math.cbrt': function () {
return Math.cbrt;
},
'es.math.clz32': function () {
return Math.clz32;
},
'es.math.cosh': function () {
return Math.cosh(710) !== Infinity;
},
'es.math.expm1': function () {
// Old FF bug
return Math.expm1(10) <= 22025.465794806719 && Math.expm1(10) >= 22025.4657948067165168
// Tor Browser bug
&& Math.expm1(-2e-17) == -2e-17;
},
'es.math.fround': function () {
return Math.fround;
},
'es.math.hypot': function () {
return Math.hypot && Math.hypot(Infinity, NaN) === Infinity;
},
'es.math.imul': function () {
return Math.imul(0xFFFFFFFF, 5) == -5 && Math.imul.length == 2;
},
'es.math.log10': function () {
return Math.log10;
},
'es.math.log1p': function () {
return Math.log1p;
},
'es.math.log2': function () {
return Math.log2;
},
'es.math.sign': function () {
return Math.sign;
},
'es.math.sinh': function () {
return Math.sinh(-2e-17) == -2e-17;
},
'es.math.tanh': function () {
return Math.tanh;
},
'es.math.to-string-tag': function () {
return Math[Symbol.toStringTag];
},
'es.math.trunc': function () {
return Math.trunc;
},
'es.number.constructor': function () {
return Number(' 0o1') && Number('0b1') && !Number('+0x1');
},
'es.number.epsilon': function () {
return Number.EPSILON;
},
'es.number.is-finite': function () {
return Number.isFinite;
},
'es.number.is-integer': function () {
return Number.isInteger;
},
'es.number.is-nan': function () {
return Number.isNaN;
},
'es.number.is-safe-integer': function () {
return Number.isSafeInteger;
},
'es.number.max-safe-integer': function () {
return Number.MAX_SAFE_INTEGER;
},
'es.number.min-safe-integer': function () {
return Number.MIN_SAFE_INTEGER;
},
'es.number.parse-float': function () {
return Number.parseFloat === parseFloat
&& 1 / Number.parseFloat(WHITESPACES + '-0') === -Infinity;
},
'es.number.parse-int': function () {
return Number.parseInt === parseInt
&& Number.parseInt(WHITESPACES + '08') === 8
&& Number.parseInt(WHITESPACES + '0x16') === 22;
},
'es.number.to-fixed': function () {
try {
Number.prototype.toFixed.call({});
} catch (error) {
return 0.00008.toFixed(3) === '0.000'
&& 0.9.toFixed(0) === '1'
&& 1.255.toFixed(2) === '1.25'
&& 1000000000000000128.0.toFixed(0) === '1000000000000000128';
}
},
'es.number.to-precision': function () {
try {
Number.prototype.toPrecision.call({});
} catch (error) {
return 1.0.toPrecision(undefined) === '1';
}
},
'es.object.assign': function () {
if (DESCRIPTORS_SUPPORT && Object.assign({ b: 1 }, Object.assign(Object.defineProperty({}, 'a', {
enumerable: true,
get: function () {
Object.defineProperty(this, 'b', {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1) return false;
var A = {};
var B = {};
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return Object.assign({}, A)[symbol] == 7 && Object.keys(Object.assign({}, B)).join('') == alphabet;
},
'es.object.create': function () {
return Object.create;
},
'es.object.define-getter': OBJECT_PROTOTYPE_ACCESSORS_SUPPORT,
'es.object.define-properties': [DESCRIPTORS_SUPPORT, function () {
return Object.defineProperties;
}],
'es.object.define-property': DESCRIPTORS_SUPPORT,
'es.object.define-setter': OBJECT_PROTOTYPE_ACCESSORS_SUPPORT,
'es.object.entries': function () {
return Object.entries;
},
'es.object.freeze': function () {
return Object.freeze(true);
},
'es.object.from-entries': function () {
return Object.fromEntries;
},
'es.object.get-own-property-descriptor': [DESCRIPTORS_SUPPORT, function () {
return Object.getOwnPropertyDescriptor('qwe', '0');
}],
'es.object.get-own-property-descriptors': function () {
return Object.getOwnPropertyDescriptors;
},
'es.object.get-own-property-names': function () {
return Object.getOwnPropertyNames('qwe');
},
'es.object.get-prototype-of': function () {
return Object.getPrototypeOf('qwe');
},
'es.object.is': function () {
return Object.is;
},
'es.object.is-extensible': function () {
return !Object.isExtensible('qwe');
},
'es.object.is-frozen': function () {
return Object.isFrozen('qwe');
},
'es.object.is-sealed': function () {
return Object.isSealed('qwe');
},
'es.object.keys': function () {
return Object.keys('qwe');
},
'es.object.lookup-getter': OBJECT_PROTOTYPE_ACCESSORS_SUPPORT,
'es.object.lookup-setter': OBJECT_PROTOTYPE_ACCESSORS_SUPPORT,
'es.object.prevent-extensions': function () {
return Object.preventExtensions(true);
},
'es.object.seal': function () {
return Object.seal(true);
},
'es.object.set-prototype-of': function () {
return Object.setPrototypeOf;
},
'es.object.to-string': [SYMBOLS_SUPPORT, function () {
var O = {};
O[Symbol.toStringTag] = 'foo';
return String(O) === '[object foo]';
}],
'es.object.values': function () {
return Object.values;
},
'es.parse-float': function () {
return 1 / parseFloat(WHITESPACES + '-0') === -Infinity;
},
'es.parse-int': function () {
return parseInt(WHITESPACES + '08') === 8
&& parseInt(WHITESPACES + '0x16') === 22;
},
'es.promise': PROMISES_SUPPORT,
'es.promise.all-settled': function () {
return Promise.allSettled;
},
'es.promise.any': function () {
return Promise.any;
},
'es.promise.finally': [PROMISES_SUPPORT, function () {
return Promise.prototype['finally'].call({ then: function () { return this; } }, function () { /* empty */ });
}],
'es.reflect.apply': function () {
try {
return Reflect.apply(function () {
return false;
});
} catch (error) {
return Reflect.apply(function () {
return true;
}, null, []);
}
},
'es.reflect.construct': function () {
try {
return !Reflect.construct(function () { /* empty */ });
} catch (error) { /* empty */ }
function F() { /* empty */ }
return Reflect.construct(function () { /* empty */ }, [], F) instanceof F;
},
'es.reflect.define-property': function () {
return !Reflect.defineProperty(Object.defineProperty({}, 1, { value: 1 }), 1, { value: 2 });
},
'es.reflect.delete-property': function () {
return Reflect.deleteProperty;
},
'es.reflect.get': function () {
return Reflect.get;
},
'es.reflect.get-own-property-descriptor': function () {
return Reflect.getOwnPropertyDescriptor;
},
'es.reflect.get-prototype-of': function () {
return Reflect.getPrototypeOf;
},
'es.reflect.has': function () {
return Reflect.has;
},
'es.reflect.is-extensible': function () {
return Reflect.isExtensible;
},
'es.reflect.own-keys': function () {
return Reflect.ownKeys;
},
'es.reflect.prevent-extensions': function () {
return Reflect.preventExtensions;
},
'es.reflect.set': function () {
var object = Object.defineProperty({}, 'a', { configurable: true });
return Reflect.set(Object.getPrototypeOf(object), 'a', 1, object) === false;
},
'es.reflect.set-prototype-of': function () {
return Reflect.setPrototypeOf;
},
'es.reflect.to-string-tag': function () {
return Reflect[Symbol.toStringTag];
},
'es.regexp.constructor': function () {
var re1 = /a/g;
var re2 = /a/g;
re2[Symbol.match] = false;
return new RegExp(re1) !== re1
&& RegExp(re1) === re1
&& RegExp(re2) !== re2
&& RegExp(re1, 'i') == '/a/i'
&& new RegExp('a', 'y') // just check that it doesn't throw
&& RegExp[Symbol.species];
},
'es.regexp.exec': function () {
var re1 = /a/;
var re2 = /b*/g;
var reSticky = new RegExp('a', 'y');
var reStickyAnchored = new RegExp('^a', 'y');
re1.exec('a');
re2.exec('a');
return re1.lastIndex === 0 && re2.lastIndex === 0
&& /()??/.exec('')[1] === undefined
&& reSticky.exec('abc')[0] === 'a'
&& reSticky.exec('abc') === null
&& (reSticky.lastIndex = 1, reSticky.exec('bac')[0] === 'a')
&& (reStickyAnchored.lastIndex = 2, reStickyAnchored.exec('cba') === null);
},
'es.regexp.flags': function () {
return /./g.flags === 'g' && new RegExp('a', 'y').flags === 'y';
},
'es.regexp.sticky': function () {
return new RegExp('a', 'y').sticky === true;
},
'es.regexp.test': function () {
var execCalled = false;
var re = /[ac]/;
re.exec = function () {
execCalled = true;
return /./.exec.apply(this, arguments);
};
return re.test('abc') === true && execCalled;
},
'es.regexp.to-string': function () {
return RegExp.prototype.toString.call({ source: 'a', flags: 'b' }) === '/a/b'
&& RegExp.prototype.toString.name === 'toString';
},
'es.set': [SAFE_ITERATION_CLOSING_SUPPORT, function () {
var called = 0;
var iterable = {
next: function () {
return { done: !!called++, value: 1 };
}
};
iterable[Symbol.iterator] = function () {
return this;
};
var set = new Set(iterable);
return set.forEach
&& set[Symbol.iterator]().next()
&& set.has(1)
&& set.add(-0) == set
&& set.has(0)
&& set[Symbol.toStringTag];
}],
'es.string.code-point-at': function () {
return String.prototype.codePointAt;
},
'es.string.ends-with': createIsRegExpLogicTest('endsWith'),
'es.string.from-code-point': function () {
return String.fromCodePoint;
},
'es.string.includes': createIsRegExpLogicTest('includes'),
'es.string.iterator': [SYMBOLS_SUPPORT, function () {
return ''[Symbol.iterator];
}],
'es.string.match': function () {
var O = {};
O[Symbol.match] = function () { return 7; };
var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re[Symbol.match]('');
return ''.match(O) == 7 && execCalled;
},
'es.string.match-all': function () {
try {
'a'.matchAll(/./);
} catch (error) {
return 'a'.matchAll(/./g);
}
},
'es.string.pad-end': function () {
return String.prototype.padEnd && !WEBKIT_STRING_PAD_BUG;
},
'es.string.pad-start': function () {
return String.prototype.padStart && !WEBKIT_STRING_PAD_BUG;
},
'es.string.raw': function () {
return String.raw;
},
'es.string.repeat': function () {
return String.prototype.repeat;
},
'es.string.replace': function () {
var O = {};
O[Symbol.replace] = function () { return 7; };
var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re[Symbol.replace]('');
var re2 = /./;
re2.exec = function () {
var result = [];
result.groups = { a: '7' };
return result;
};
return ''.replace(O) == 7
&& execCalled
&& ''.replace(re2, '$') === '7'
&& 'a'.replace(/./, '$0') === '$0'
&& /./[Symbol.replace]('a', '$0') === '$0';
},
'es.string.replace-all': function () {
return String.prototype.replaceAll;
},
'es.string.search': function () {
var O = {};
O[Symbol.search] = function () { return 7; };
var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re[Symbol.search]('');
return ''.search(O) == 7 && execCalled;
},
'es.string.split': function () {
var O = {};
O[Symbol.split] = function () { return 7; };
var execCalled = false;
var re = /a/;
re.exec = function () { execCalled = true; return null; };
re.constructor = {};
re.constructor[Symbol.species] = function () { return re; };
re[Symbol.split]('');
var re2 = /(?:)/;
var originalExec = re2.exec;
re2.exec = function () { return originalExec.apply(this, arguments); };
var result = 'ab'.split(re2);
return ''.split(O) == 7 && execCalled && result.length === 2 && result[0] === 'a' && result[1] === 'b';
},
'es.string.starts-with': createIsRegExpLogicTest('startsWith'),
'es.string.trim': createStringTrimMethodTest('trim'),
'es.string.trim-end': [createStringTrimMethodTest('trimEnd'), function () {
return String.prototype.trimRight === String.prototype.trimEnd;
}],
'es.string.trim-start': [createStringTrimMethodTest('trimStart'), function () {
return String.prototype.trimLeft === String.prototype.trimStart;
}],
'es.string.anchor': createStringHTMLMethodTest('anchor'),
'es.string.big': createStringHTMLMethodTest('big'),
'es.string.blink': createStringHTMLMethodTest('blink'),
'es.string.bold': createStringHTMLMethodTest('bold'),
'es.string.fixed': createStringHTMLMethodTest('fixed'),
'es.string.fontcolor': createStringHTMLMethodTest('fontcolor'),
'es.string.fontsize': createStringHTMLMethodTest('fontsize'),
'es.string.italics': createStringHTMLMethodTest('italics'),
'es.string.link': createStringHTMLMethodTest('link'),
'es.string.small': createStringHTMLMethodTest('small'),
'es.string.strike': createStringHTMLMethodTest('strike'),
'es.string.sub': createStringHTMLMethodTest('sub'),
'es.string.sup': createStringHTMLMethodTest('sup'),
'es.typed-array.float32-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.float64-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.int8-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.int16-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.int32-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.uint8-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.uint8-clamped-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.uint16-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.uint32-array': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS
],
'es.typed-array.copy-within': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.copyWithin;
}],
'es.typed-array.every': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.every;
}],
'es.typed-array.fill': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.fill;
}],
'es.typed-array.filter': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.filter;
}],
'es.typed-array.find': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.find;
}],
'es.typed-array.find-index': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.findIndex;
}],
'es.typed-array.for-each': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.forEach;
}],
'es.typed-array.from': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS,
function () {
return Int8Array.from;
}
],
'es.typed-array.includes': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.includes;
}],
'es.typed-array.index-of': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.indexOf;
}],
'es.typed-array.iterator': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype[Symbol.iterator].name === 'values'
&& Int8Array.prototype[Symbol.iterator] === Int8Array.prototype.values
&& Int8Array.prototype.keys
&& Int8Array.prototype.entries;
}],
'es.typed-array.join': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.join;
}],
'es.typed-array.last-index-of': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.lastIndexOf;
}],
'es.typed-array.map': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.map;
}],
'es.typed-array.of': [
ARRAY_BUFFER_VIEWS_SUPPORT,
TYPED_ARRAY_CONSTRUCTORS_NOT_REQUIRES_WRAPPERS,
function () {
return Int8Array.of;
}
],
'es.typed-array.reduce': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.reduce;
}],
'es.typed-array.reduce-right': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.reduceRight;
}],
'es.typed-array.reverse': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.reverse;
}],
'es.typed-array.set': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
new Int8Array(1).set({});
return true;
}],
'es.typed-array.slice': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return new Int8Array(1).slice();
}],
'es.typed-array.some': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.some;
}],
'es.typed-array.sort': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.sort;
}],
'es.typed-array.subarray': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.subarray;
}],
'es.typed-array.to-locale-string': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
try {
Int8Array.prototype.toLocaleString.call([1, 2]);
} catch (error) {
return [1, 2].toLocaleString() == new Int8Array([1, 2]).toLocaleString();
}
}],
'es.typed-array.to-string': [ARRAY_BUFFER_VIEWS_SUPPORT, function () {
return Int8Array.prototype.toString == Array.prototype.toString;
}],
'es.weak-map': [SAFE_ITERATION_CLOSING_SUPPORT, function () {
var key = Object.freeze({});
var called = 0;
var iterable = {
next: function () {
return { done: !!called++, value: [key, 1] };
}
};
iterable[Symbol.iterator] = function () {
return this;
};
var map = new WeakMap(iterable);
return map.get(key) == 1
&& map.get(null) == undefined
&& map.set({}, 2) == map
&& map[Symbol.toStringTag];
}],
'es.weak-set': [SAFE_ITERATION_CLOSING_SUPPORT, function () {
var key = {};
var called = 0;
var iterable = {
next: function () {
return { done: !!called++, value: key };
}
};
iterable[Symbol.iterator] = function () {
return this;
};
var set = new WeakSet(iterable);
return set.has(key)
&& !set.has(null)
&& set.add({}) == set
&& set[Symbol.toStringTag];
}],
'esnext.array.at': function () {
return [].at;
},
'esnext.array.filter-out': function () {
return [].filterOut;
},
'esnext.array.last-index': function () {
return [1, 2, 3].lastIndex && Array.prototype[Symbol.unscopables].lastIndex;
},
'esnext.array.last-item': function () {
return [1, 2, 3].lastItem && Array.prototype[Symbol.unscopables].lastItem;
},
'esnext.array.unique-by': function () {
return [].uniqueBy;
},
'esnext.async-iterator.constructor': function () {
return typeof AsyncIterator == 'function';
},
'esnext.async-iterator.as-indexed-pairs': function () {
return AsyncIterator.prototype.asIndexedPairs;
},
'esnext.async-iterator.drop': function () {
return AsyncIterator.prototype.drop;
},
'esnext.async-iterator.every': function () {
return AsyncIterator.prototype.every;
},
'esnext.async-iterator.filter': function () {
return AsyncIterator.prototype.filter;
},
'esnext.async-iterator.find': function () {
return AsyncIterator.prototype.find;
},
'esnext.async-iterator.flat-map': function () {
return AsyncIterator.prototype.flatMap;
},
'esnext.async-iterator.for-each': function () {
return AsyncIterator.prototype.forEach;
},
'esnext.async-iterator.from': function () {
return AsyncIterator.from;
},
'esnext.async-iterator.map': function () {
return AsyncIterator.prototype.map;
},
'esnext.async-iterator.reduce': function () {
return AsyncIterator.prototype.reduce;
},
'esnext.async-iterator.some': function () {
return AsyncIterator.prototype.some;
},
'esnext.async-iterator.take': function () {
return AsyncIterator.prototype.take;
},
'esnext.async-iterator.to-array': function () {
return AsyncIterator.prototype.toArray;
},
'esnext.bigint.range': function () {
// eslint-disable-next-line no-undef
return BigInt.range;
},
'esnext.composite-key': function () {
return compositeKey;
},
'esnext.composite-symbol': function () {
return compositeSymbol;
},
'esnext.iterator.constructor': function () {
try {
Iterator({});
} catch (error) {
return typeof Iterator == 'function'
&& Iterator.prototype === Object.getPrototypeOf(Object.getPrototypeOf([].values()));
}
},
'esnext.iterator.as-indexed-pairs': function () {
return Iterator.prototype.asIndexedPairs;
},
'esnext.iterator.drop': function () {
return Iterator.prototype.drop;
},
'esnext.iterator.every': function () {
return Iterator.prototype.every;
},
'esnext.iterator.filter': function () {
return Iterator.prototype.filter;
},
'esnext.iterator.find': function () {
return Iterator.prototype.find;
},
'esnext.iterator.flat-map': function () {
return Iterator.prototype.flatMap;
},
'esnext.iterator.for-each': function () {
return Iterator.prototype.forEach;
},
'esnext.iterator.from': function () {
return Iterator.from;
},
'esnext.iterator.map': function () {
return Iterator.prototype.map;
},
'esnext.iterator.reduce': function () {
return Iterator.prototype.reduce;
},
'esnext.iterator.some': function () {
return Iterator.prototype.some;
},
'esnext.iterator.take': function () {
return Iterator.prototype.take;
},
'esnext.iterator.to-array': function () {
return Iterator.prototype.toArray;
},
'esnext.map.delete-all': function () {
return Map.prototype.deleteAll;
},
'esnext.map.emplace': function () {
return Map.prototype.emplace;
},
'esnext.map.every': function () {
return Map.prototype.every;
},
'esnext.map.filter': function () {
return Map.prototype.filter;
},
'esnext.map.find': function () {
return Map.prototype.find;
},
'esnext.map.find-key': function () {
return Map.prototype.findKey;
},
'esnext.map.from': function () {
return Map.from;
},
'esnext.map.group-by': function () {
return Map.groupBy;
},
'esnext.map.includes': function () {
return Map.prototype.includes;
},
'esnext.map.key-by': function () {
return Map.keyBy;
},
'esnext.map.key-of': function () {
return Map.prototype.keyOf;
},
'esnext.map.map-keys': function () {
return Map.prototype.mapKeys;
},
'esnext.map.map-values': function () {
return Map.prototype.mapValues;
},
'esnext.map.merge': function () {
return Map.prototype.merge;
},
'esnext.map.of': function () {
return Map.of;
},
'esnext.map.reduce': function () {
return Map.prototype.reduce;
},
'esnext.map.some': function () {
return Map.prototype.some;
},
'esnext.map.update': function () {
return Map.prototype.update;
},
// TODO: Remove from `core-js@4`
'esnext.map.update-or-insert': function () {
return Map.prototype.updateOrInsert;
},
// TODO: Remove from `core-js@4`
'esnext.map.upsert': function () {
return Map.prototype.upsert;
},
'esnext.math.clamp': function () {
return Math.clamp;
},
'esnext.math.deg-per-rad': function () {
return Math.DEG_PER_RAD;
},
'esnext.math.degrees': function () {
return Math.degrees;
},
'esnext.math.fscale': function () {
return Math.fscale;
},
// TODO: Remove from `core-js@4`
'esnext.math.iaddh': function () {
return Math.iaddh;
},
// TODO: Remove from `core-js@4`
'esnext.math.imulh': function () {
return Math.imulh;
},
// TODO: Remove from `core-js@4`
'esnext.math.isubh': function () {
return Math.isubh;
},
'esnext.math.rad-per-deg': function () {
return Math.RAD_PER_DEG;
},
'esnext.math.radians': function () {
return Math.radians;
},
'esnext.math.scale': function () {
return Math.scale;
},
'esnext.math.seeded-prng': function () {
return Math.seededPRNG;
},
'esnext.math.signbit': function () {
return Math.signbit;
},
// TODO: Remove from `core-js@4`
'esnext.math.umulh': function () {
return Math.umulh;
},
'esnext.number.from-string': function () {
return Number.fromString;
},
'esnext.number.range': function () {
return Number.range;
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-entries': function () {
return Object.iterateEntries;
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-keys': function () {
return Object.iterateKeys;
},
// TODO: Remove from `core-js@4`
'esnext.object.iterate-values': function () {
return Object.iterateValues;
},
'esnext.observable': function () {
return Observable;
},
'esnext.promise.try': [PROMISES_SUPPORT, function () {
return Promise['try'];
}],
'esnext.reflect.define-metadata': function () {
return Reflect.defineMetadata;
},
'esnext.reflect.delete-metadata': function () {
return Reflect.deleteMetadata;
},
'esnext.reflect.get-metadata': function () {
return Reflect.getMetadata;
},
'esnext.reflect.get-metadata-keys': function () {
return Reflect.getMetadataKeys;
},
'esnext.reflect.get-own-metadata': function () {
return Reflect.getOwnMetadata;
},
'esnext.reflect.get-own-metadata-keys': function () {
return Reflect.getOwnMetadataKeys;
},
'esnext.reflect.has-metadata': function () {
return Reflect.hasMetadata;
},
'esnext.reflect.has-own-metadata': function () {
return Reflect.hasOwnMetadata;
},
'esnext.reflect.metadata': function () {
return Reflect.metadata;
},
'esnext.set.add-all': function () {
return Set.prototype.addAll;
},
'esnext.set.delete-all': function () {
return Set.prototype.deleteAll;
},
'esnext.set.difference': function () {
return Set.prototype.difference;
},
'esnext.set.every': function () {
return Set.prototype.every;
},
'esnext.set.filter': function () {
return Set.prototype.filter;
},
'esnext.set.find': function () {
return Set.prototype.find;
},
'esnext.set.from': function () {
return Set.from;
},
'esnext.set.intersection': function () {
return Set.prototype.intersection;
},
'esnext.set.is-disjoint-from': function () {
return Set.prototype.isDisjointFrom;
},
'esnext.set.is-subset-of': function () {
return Set.prototype.isSubsetOf;
},
'esnext.set.is-superset-of': function () {
return Set.prototype.isSupersetOf;
},
'esnext.set.join': function () {
return Set.prototype.join;
},
'esnext.set.map': function () {
return Set.prototype.map;
},
'esnext.set.of': function () {
return Set.of;
},
'esnext.set.reduce': function () {
return Set.prototype.reduce;
},
'esnext.set.some': function () {
return Set.prototype.some;
},
'esnext.set.symmetric-difference': function () {
return Set.prototype.symmetricDifference;
},
'esnext.set.union': function () {
return Set.prototype.union;
},
'esnext.string.at': function () {
return '𠮷'.at(0) === '𠮷';
},
'esnext.string.code-points': function () {
return String.prototype.codePoints;
},
'esnext.symbol.dispose': function () {
return Symbol.dispose;
},
'esnext.symbol.observable': function () {
return Symbol.observable;
},
'esnext.symbol.pattern-match': function () {
return Symbol.patternMatch;
},
// TODO: Remove from `core-js@4`
'esnext.symbol.replace-all': function () {
return Symbol.replaceAll;
},
'esnext.typed-array.at': function () {
return Int8Array.prototype.at;
},
'esnext.typed-array.filter-out': function () {
return Int8Array.prototype.filterOut;
},
'esnext.weak-map.delete-all': function () {
return WeakMap.prototype.deleteAll;
},
'esnext.weak-map.emplace': function () {
return WeakMap.prototype.emplace;
},
'esnext.weak-map.from': function () {
return WeakMap.from;
},
'esnext.weak-map.of': function () {
return WeakMap.of;
},
// TODO: Remove from `core-js@4`
'esnext.weak-map.upsert': function () {
return WeakMap.prototype.upsert;
},
'esnext.weak-set.add-all': function () {
return WeakSet.prototype.addAll;
},
'esnext.weak-set.delete-all': function () {
return WeakSet.prototype.deleteAll;
},
'esnext.weak-set.from': function () {
return WeakSet.from;
},
'esnext.weak-set.of': function () {
return WeakSet.of;
},
'web.dom-collections.for-each': function () {
return (!GLOBAL.NodeList || (NodeList.prototype.forEach && NodeList.prototype.forEach === [].forEach))
&& (!GLOBAL.DOMTokenList || (DOMTokenList.prototype.forEach && DOMTokenList.prototype.forEach === [].forEach));
},
'web.dom-collections.iterator': function () {
var DOMIterables = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
for (var collection in DOMIterables) {
if (GLOBAL[collection]) {
if (
!GLOBAL[collection].prototype[Symbol.iterator] ||
GLOBAL[collection].prototype[Symbol.iterator] !== [].values
) return false;
if (DOMIterables[collection] && (
!GLOBAL[collection].prototype.keys ||
!GLOBAL[collection].prototype.values ||
!GLOBAL[collection].prototype.entries
)) return false;
}
}
return true;
},
'web.immediate': function () {
return setImmediate && clearImmediate;
},
'web.queue-microtask': function () {
return Object.getOwnPropertyDescriptor(GLOBAL, 'queueMicrotask').value;
},
'web.timers': function () {
return !/MSIE .\./.test(USERAGENT);
},
'web.url': URL_AND_URL_SEARCH_PARAMS_SUPPORT,
'web.url.to-json': [URL_AND_URL_SEARCH_PARAMS_SUPPORT, function () {
return URL.prototype.toJSON;
}],
'web.url-search-params': URL_AND_URL_SEARCH_PARAMS_SUPPORT
};
core-js-3.8.2/tests/helpers/ 0000775 0000000 0000000 00000000000 13774351224 0015702 5 ustar 00root root 0000000 0000000 core-js-3.8.2/tests/helpers/constants.js 0000664 0000000 0000000 00000002574 13774351224 0020264 0 ustar 00root root 0000000 0000000 export const DESCRIPTORS = !!(() => {
try {
return Object.defineProperty({}, 'a', {
get() {
return 7;
},
}).a === 7;
} catch { /* empty */ }
})();
export const GLOBAL = Function('return this')();
export const NATIVE = GLOBAL.NATIVE || false;
export const TYPED_ARRAYS = {
Float32Array: 4,
Float64Array: 8,
Int8Array: 1,
Int16Array: 2,
Int32Array: 4,
Uint8Array: 1,
Uint16Array: 2,
Uint32Array: 4,
Uint8ClampedArray: 1,
};
export const LITTLE_ENDIAN = (() => {
try {
return new GLOBAL.Uint8Array(new GLOBAL.Uint16Array([1]).buffer)[0] === 1;
} catch {
return true;
}
})();
export const PROTO = !!Object.setPrototypeOf || '__proto__' in Object.prototype;
export const STRICT = !function () {
return this;
}();
export const STRICT_THIS = (function () {
return this;
})();
export const FREEZING = !function () {
try {
return Object.isExtensible(Object.preventExtensions({}));
} catch {
return true;
}
}();
export const CORRECT_PROTOTYPE_GETTER = !function () {
try {
function F() { /* empty */ }
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
} catch {
return true;
}
}();
export const WHITESPACES = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
core-js-3.8.2/tests/helpers/helpers.js 0000664 0000000 0000000 00000004635 13774351224 0017712 0 ustar 00root root 0000000 0000000 import Promise from 'core-js-pure/es/promise';
import ITERATOR from 'core-js-pure/features/symbol/iterator';
export function createIterator(elements, methods) {
let index = 0;
const iterator = {
called: false,
next() {
iterator.called = true;
return {
value: elements[index++],
done: index > elements.length,
};
},
};
if (methods) for (const key in methods) iterator[key] = methods[key];
return iterator;
}
export function createIterable(elements, methods) {
const iterable = {
called: false,
received: false,
[ITERATOR]() {
iterable.received = true;
let index = 0;
const iterator = {
next() {
iterable.called = true;
return {
value: elements[index++],
done: index > elements.length,
};
},
};
if (methods) for (const key in methods) iterator[key] = methods[key];
return iterator;
},
};
return iterable;
}
export function includes(target, wanted) {
for (const element of target) if (wanted === element) return true;
return false;
}
export function is(a, b) {
// eslint-disable-next-line no-self-compare
return a === b ? a !== 0 || 1 / a === 1 / b : a != a && b != b;
}
export const nativeSubclass = (() => {
try {
if (Function(`
'use strict';
class Subclass extends Object { /* empty */ };
return new Subclass() instanceof Subclass;
`)()) return Function('Parent', `
'use strict';
return class extends Parent { /* empty */ };
`);
} catch { /* empty */ }
})();
export function timeLimitedPromise(time, fn) {
return Promise.race([
new Promise(fn), new Promise((resolve, reject) => {
setTimeout(reject, time);
}),
]);
}
// This function is used to force RegExp.prototype[Symbol.*] methods
// to not use the native implementation.
export function patchRegExp$exec(run) {
return assert => {
const originalExec = RegExp.prototype.exec;
// eslint-disable-next-line no-extend-native
RegExp.prototype.exec = function () {
return originalExec.apply(this, arguments);
};
try {
return run(assert);
// In very old IE try / finally does not work without catch.
// eslint-disable-next-line no-useless-catch
} catch (error) {
throw error;
} finally {
// eslint-disable-next-line no-extend-native
RegExp.prototype.exec = originalExec;
}
};
}
core-js-3.8.2/tests/helpers/qunit-helpers.js 0000664 0000000 0000000 00000010033 13774351224 0021035 0 ustar 00root root 0000000 0000000 import { DESCRIPTORS, GLOBAL } from './constants';
import isIterable from 'core-js-pure/features/is-iterable';
import ASYNC_ITERATOR from 'core-js-pure/es/symbol/async-iterator';
import { is } from './helpers';
const { toString, propertyIsEnumerable } = Object.prototype.propertyIsEnumerable;
GLOBAL.USE_FUNCTION_CONSTRUCTOR = true;
QUnit.assert.arity = function (fn, length, message) {
this.pushResult({
result: fn.length === length,
actual: fn.length,
expected: length,
message: message || `arity is ${ length }`,
});
};
QUnit.assert.arrayEqual = function (a, b, message) {
let result = true;
if (a.length !== b.length) {
result = false;
} else {
for (let i = 0, { length } = a; i < length; ++i) {
if (!is(a[i], b[i])) {
result = false;
break;
}
}
}
this.pushResult({
result,
actual: [].slice.call(a),
expected: [].slice.call(b),
message,
});
};
QUnit.assert.epsilon = function (a, b, E, message) {
this.pushResult({
result: Math.abs(a - b) <= (E != null ? E : 1e-11),
actual: a,
expected: b,
message,
});
};
QUnit.assert.isFunction = function (fn, message) {
this.pushResult({
result: typeof fn === 'function' || toString.call(fn).slice(8, -1) === 'Function',
actual: false,
expected: true,
message: message || 'is function',
});
};
QUnit.assert.isAsyncIterable = function (it, message) {
this.pushResult({
result: typeof it == 'object' && typeof it[ASYNC_ITERATOR] == 'function',
actual: false,
expected: true,
message: message || 'is async iterable',
});
};
QUnit.assert.isIterable = function (it, message) {
this.pushResult({
result: isIterable(it),
actual: false,
expected: true,
message: message || 'is iterable',
});
};
QUnit.assert.isIterator = function (it, message) {
this.pushResult({
result: typeof it === 'object' && typeof it.next === 'function',
actual: false,
expected: true,
message: message || 'is iterator',
});
};
QUnit.assert.looksNative = function (fn, message) {
this.pushResult({
result: /native code/.test(Function.prototype.toString.call(fn)),
actual: false,
expected: true,
message: message || 'looks native',
});
};
QUnit.assert.name = function (fn, name, message) {
if (typeof fn == 'function' && 'name' in fn) {
this.pushResult({
result: fn.name === name,
actual: fn.name,
expected: name,
message: message || `name is '${ name }'`,
});
} else {
this.pushResult({
result: true,
actual: true,
expected: true,
message: 'Function#name property test makes no sense',
});
}
};
QUnit.assert.enumerable = function (O, key, message) {
if (DESCRIPTORS) {
this.pushResult({
result: propertyIsEnumerable.call(O, key),
actual: false,
expected: true,
message: message || `${ typeof key === 'symbol' ? 'method' : `'${ key }'` } is enumerable`,
});
} else {
this.pushResult({
result: true,
actual: true,
expected: true,
message: 'Enumerability is not applicable',
});
}
};
QUnit.assert.nonEnumerable = function (O, key, message) {
if (DESCRIPTORS) {
this.pushResult({
result: !propertyIsEnumerable.call(O, key),
actual: false,
expected: true,
message: message || `${ typeof key === 'symbol' ? 'method' : `'${ key }'` } is non-enumerable`,
});
} else {
this.pushResult({
result: true,
actual: true,
expected: true,
message: 'Enumerability is not applicable',
});
}
};
QUnit.assert.notThrows = function (fn, message) {
let throws, result, error;
try {
result = fn();
throws = false;
} catch (err) {
throws = true;
error = err;
}
this.pushResult({
result: !throws && result,
actual: throws ? error : result,
expected: throws ? undefined : true,
message: message || 'does not throw',
});
};
QUnit.assert.same = function (a, b, message) {
this.pushResult({
result: is(a, b),
actual: a,
expected: b,
message,
});
};
core-js-3.8.2/tests/observables/ 0000775 0000000 0000000 00000000000 13774351224 0016547 5 ustar 00root root 0000000 0000000 core-js-3.8.2/tests/observables/adapter-pure.js 0000664 0000000 0000000 00000000373 13774351224 0021501 0 ustar 00root root 0000000 0000000 'use strict';
const core = require('../../packages/core-js-pure');
global.Promise = core.Promise;
global.Symbol = core.Symbol;
// eslint-disable-next-line import/no-unresolved
require('../bundles/observables-tests/default').runTests(core.Observable);
core-js-3.8.2/tests/observables/adapter.js 0000664 0000000 0000000 00000000311 13774351224 0020520 0 ustar 00root root 0000000 0000000 'use strict';
delete global.Observable;
require('../../packages/core-js');
// eslint-disable-next-line import/no-unresolved
require('../bundles/observables-tests/default').runTests(global.Observable);
core-js-3.8.2/tests/promises-aplus-native.html 0000664 0000000 0000000 00000001432 13774351224 0021375 0 ustar 00root root 0000000 0000000
promises/a+ tests, native
core-js-3.8.2/tests/promises-aplus.html 0000664 0000000 0000000 00000001532 13774351224 0020112 0 ustar 00root root 0000000 0000000
promises/a+ tests, polyfilled
core-js-3.8.2/tests/promises-aplus/ 0000775 0000000 0000000 00000000000 13774351224 0017223 5 ustar 00root root 0000000 0000000 core-js-3.8.2/tests/promises-aplus/adapter.js 0000664 0000000 0000000 00000001232 13774351224 0021177 0 ustar 00root root 0000000 0000000 delete global.Promise;
var Promise = require('../../packages/core-js').Promise;
var assert = require('assert');
module.exports = {
deferred: function () {
var deferred = {};
deferred.promise = new Promise(function (resolve, reject) {
deferred.resolve = resolve;
deferred.reject = reject;
});
return deferred;
},
resolved: function (value) {
return Promise.resolve(value);
},
rejected: function (reason) {
return Promise.reject(reason);
},
defineGlobalPromise: function (global) {
global.Promise = Promise;
global.assert = assert;
},
removeGlobalPromise: function () {
delete global.Promise;
}
};
core-js-3.8.2/tests/pure.html 0000664 0000000 0000000 00000000466 13774351224 0016107 0 ustar 00root root 0000000 0000000
core-js-pure