mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-22 14:04:44 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
13
node_modules/es-abstract/.editorconfig
generated
vendored
Normal file
13
node_modules/es-abstract/.editorconfig
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab;
|
||||
insert_final_newline = true;
|
||||
quote_type = auto;
|
||||
space_after_anonymous_functions = true;
|
||||
space_after_control_statements = true;
|
||||
spaces_around_operators = true;
|
||||
trim_trailing_whitespace = true;
|
||||
spaces_in_brackets = false;
|
||||
end_of_line = lf;
|
||||
|
28
node_modules/es-abstract/.eslintrc
generated
vendored
Normal file
28
node_modules/es-abstract/.eslintrc
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"env": {
|
||||
"es6": true,
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"array-bracket-newline": 0,
|
||||
"array-element-newline": 0,
|
||||
"complexity": 0,
|
||||
"eqeqeq": [2, "allow-null"],
|
||||
"func-name-matching": 0,
|
||||
"id-length": [2, { "min": 1, "max": 30 }],
|
||||
"max-lines": [2, 800],
|
||||
"max-params": [2, 4],
|
||||
"max-statements": [2, 24],
|
||||
"max-statements-per-line": [2, { "max": 2 }],
|
||||
"multiline-comment-style": 1,
|
||||
"no-magic-numbers": 0,
|
||||
"new-cap": 0,
|
||||
"no-extra-parens": 1,
|
||||
"operator-linebreak": [2, "before"],
|
||||
"sort-keys": 0,
|
||||
}
|
||||
}
|
14
node_modules/es-abstract/.nycrc
generated
vendored
Normal file
14
node_modules/es-abstract/.nycrc
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"all": true,
|
||||
"check-coverage": true,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"lines": 86.99,
|
||||
"statements": 86.86,
|
||||
"functions": 82.43,
|
||||
"branches": 76.06,
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"operations",
|
||||
"test"
|
||||
]
|
||||
}
|
283
node_modules/es-abstract/.travis.yml
generated
vendored
Normal file
283
node_modules/es-abstract/.travis.yml
generated
vendored
Normal file
|
@ -0,0 +1,283 @@
|
|||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
node_js:
|
||||
- "11.6"
|
||||
- "10.15"
|
||||
- "9.11"
|
||||
- "8.15"
|
||||
- "7.10"
|
||||
- "6.16"
|
||||
- "5.12"
|
||||
- "4.9"
|
||||
- "iojs-v3.3"
|
||||
- "iojs-v2.5"
|
||||
- "iojs-v1.8"
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
- "0.6"
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.npm"
|
||||
- "$(nvm cache dir)"
|
||||
- "$(nvm_version_path $(nvm_version_remote 0.4))"
|
||||
- "$(nvm_version_path $(nvm_version_remote 0.6))"
|
||||
- "$(nvm_version_path $(nvm_version_remote 0.10))"
|
||||
before_install:
|
||||
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
|
||||
- 'nvm install-latest-npm'
|
||||
install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
||||
script:
|
||||
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
|
||||
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
|
||||
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage && bash <(curl -s https://codecov.io/bash) -f coverage/*.json; fi'
|
||||
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
|
||||
sudo: false
|
||||
env:
|
||||
- TEST=true
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- node_js: "lts/*"
|
||||
env: PRETEST=true
|
||||
- node_js: "lts/*"
|
||||
env: POSTTEST=true
|
||||
- node_js: "0.8"
|
||||
env: COVERAGE=true
|
||||
- node_js: "0.12"
|
||||
env: COVERAGE=true
|
||||
- node_js: "4"
|
||||
env: COVERAGE=true
|
||||
- node_js: "8"
|
||||
env: COVERAGE=true
|
||||
- node_js: "11.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.15"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
allow_failures:
|
||||
- os: osx
|
||||
- env: TEST=true ALLOW_FAILURE=true
|
190
node_modules/es-abstract/CHANGELOG.md
generated
vendored
Normal file
190
node_modules/es-abstract/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,190 @@
|
|||
1.13.0 / 2019-01-02
|
||||
=================
|
||||
* [New] add ES2018
|
||||
* [New] add ES2015/ES2016: EnumerableOwnNames; ES2017: EnumerableOwnProperties
|
||||
* [New] `ES2015+`: add `thisBooleanValue`, `thisNumberValue`, `thisStringValue`, `thisTimeValue`
|
||||
* [New] `ES2015+`: add `DefinePropertyOrThrow`, `DeletePropertyOrThrow`, `CreateMethodProperty`
|
||||
* [New] add `assertRecord` helper
|
||||
* [Deps] update `is-callable`, `has`, `object-keys`, `es-to-primitive`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `semver`, `safe-publish-latest`, `replace`
|
||||
* [Tests] use `npm audit` instead of `nsp`
|
||||
* [Tests] remove `jscs`
|
||||
* [Tests] up to `node` `v11.6`, `v10.15`, `v8.15`, `v6.16`
|
||||
* [Tests] move descriptor factories to `values` helper
|
||||
* [Tests] add `getOps` to programmatically fetch abstract operation names
|
||||
|
||||
1.12.0 / 2018-05-31
|
||||
=================
|
||||
* [New] add `GetIntrinsic` entry point
|
||||
* [New] `ES2015`+: add `ObjectCreate`
|
||||
* [Robustness]: `ES2015+`: ensure `Math.{abs,floor}` and `Function.call` are cached
|
||||
|
||||
1.11.0 / 2018-03-21
|
||||
=================
|
||||
* [New] `ES2015+`: add iterator abstract ops
|
||||
* [Dev Deps] update `eslint`, `nsp`, `object.assign`, `semver`, `tape`
|
||||
* [Tests] up to `node` `v9.8`, `v8.10`, `v6.13`
|
||||
|
||||
1.10.0 / 2017-11-24
|
||||
=================
|
||||
* [New] ES2015+: `AdvanceStringIndex`
|
||||
* [Dev Deps] update `eslint`, `nsp`
|
||||
* [Tests] require node 0.6 to pass again
|
||||
* [Tests] up to `node` `v9.2`, `v8.9`, `v6.12`; use `nvm install-latest-npm`; pin included builds to LTS
|
||||
|
||||
1.9.0 / 2017-09-30
|
||||
=================
|
||||
* [New] `es2015+`: add `ArraySpeciesCreate`
|
||||
* [New] ES2015+: add `CreateDataProperty` and `CreateDataPropertyOrThrow`
|
||||
* [Tests] consolidate duplicated tests
|
||||
* [Tests] increase coverage
|
||||
* [Dev Deps] update `nsp`, `eslint`
|
||||
|
||||
1.8.2 / 2017-09-03
|
||||
=================
|
||||
* [Fix] `es2015`+: `ToNumber`: provide the proper hint for Date objects (#27)
|
||||
* [Dev Deps] update `eslint`
|
||||
|
||||
1.8.1 / 2017-08-30
|
||||
=================
|
||||
* [Fix] ES2015+: `ToPropertyKey`: should return a symbol for Symbols (#26)
|
||||
* [Deps] update `function-bind`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`
|
||||
* [Docs] github broke markdown parsing
|
||||
|
||||
1.8.0 / 2017-08-04
|
||||
=================
|
||||
* [New] add ES2017
|
||||
* [New] move es6+ to es2015+; leave es6/es7 as aliases
|
||||
* [New] ES5+: add `IsPropertyDescriptor`, `IsAccessorDescriptor`, `IsDataDescriptor`, `IsGenericDescriptor`, `FromPropertyDescriptor`, `ToPropertyDescriptor`
|
||||
* [New] ES2015+: add `CompletePropertyDescriptor`, `Set`, `HasOwnProperty`, `HasProperty`, `IsConcatSpreadable`, `Invoke`, `CreateIterResultObject`, `RegExpExec`
|
||||
* [Fix] es7/es2016: do not mutate ES6
|
||||
* [Fix] assign helper only supports one source
|
||||
* [Deps] update `is-regex`
|
||||
* [Dev Deps] update `nsp`, `eslint`, `@ljharb/eslint-config`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `semver`, `tape`
|
||||
* [Tests] add tests for missing and excess operations
|
||||
* [Tests] add codecov for coverage
|
||||
* [Tests] up to `node` `v8.2`, `v7.10`, `v6.11`, `v4.8`; newer npm breaks on older node
|
||||
* [Tests] use same lists of value types across tests; ensure tests are the same when ops are the same
|
||||
* [Tests] ES2015: add ToNumber symbol tests
|
||||
* [Tests] switch to `nyc` for code coverage
|
||||
* [Tests] make IsRegExp tests consistent across editions
|
||||
|
||||
1.7.0 / 2017-01-22
|
||||
=================
|
||||
* [New] ES6: Add `GetMethod` (#16)
|
||||
* [New] ES6: Add `GetV` (#16)
|
||||
* [New] ES6: Add `Get` (#17)
|
||||
* [Tests] up to `node` `v7.4`, `v6.9`, `v4.6`; improve test matrix
|
||||
* [Dev Deps] update `tape`, `nsp`, `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`
|
||||
|
||||
1.6.1 / 2016-08-21
|
||||
=================
|
||||
* [Fix] ES6: IsConstructor should return true for `class` constructors.
|
||||
|
||||
1.6.0 / 2016-08-20
|
||||
=================
|
||||
* [New] ES5 / ES6: add `Type`
|
||||
* [New] ES6: `SpeciesConstructor`
|
||||
* [Dev Deps] update `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`, `semver`; add `safe-publish-latest`
|
||||
* [Tests] up to `node` `v6.4`, `v5.12`, `v4.5`
|
||||
|
||||
1.5.1 / 2016-05-30
|
||||
=================
|
||||
* [Fix] `ES.IsRegExp`: actually look up `Symbol.match` on the argument
|
||||
* [Refactor] create `isNaN` helper
|
||||
* [Deps] update `is-callable`, `function-bind`
|
||||
* [Deps] update `es-to-primitive`, fix ES5 tests
|
||||
* [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config`, `tape`, `nsp`
|
||||
* [Tests] up to `node` `v6.2`, `v5.11`, `v4.4`
|
||||
* [Tests] use pretest/posttest for linting/security
|
||||
|
||||
1.5.0 / 2015-12-27
|
||||
=================
|
||||
* [New] adds `Symbol.toPrimitive` support via `es-to-primitive`
|
||||
* [Deps] update `is-callable`, `es-to-primitive`
|
||||
* [Dev Deps] update `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`, `semver`, `tape`
|
||||
* [Tests] up to `node` `v5.3`
|
||||
|
||||
1.4.3 / 2015-11-04
|
||||
=================
|
||||
* [Fix] `ES6.ToNumber`: should give `NaN` for explicitly signed hex strings (#4)
|
||||
* [Refactor] `ES6.ToNumber`: No need to double-trim
|
||||
* [Refactor] group tests better
|
||||
* [Tests] should still pass on `node` `v0.8`
|
||||
|
||||
1.4.2 / 2015-11-02
|
||||
=================
|
||||
* [Fix] ensure `ES.ToNumber` trims whitespace, and does not trim non-whitespace (#3)
|
||||
|
||||
1.4.1 / 2015-10-31
|
||||
=================
|
||||
* [Fix] ensure only 0-1 are valid binary and 0-7 are valid octal digits (#2)
|
||||
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`
|
||||
* [Tests] on `node` `v5.0`
|
||||
* [Tests] fix npm upgrades for older node versions
|
||||
* package.json: use object form of "authors", add "contributors"
|
||||
|
||||
1.4.0 / 2015-09-26
|
||||
=================
|
||||
* [Deps] update `is-callable`
|
||||
* [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config`
|
||||
* [Tests] on `node` `v4.2`
|
||||
* [New] Add `SameValueNonNumber` to ES7
|
||||
|
||||
1.3.2 / 2015-09-26
|
||||
=================
|
||||
* [Fix] Fix `ES6.IsRegExp` to properly handle `Symbol.match`, per spec.
|
||||
* [Tests] up to `io.js` `v3.3`, `node` `v4.1`
|
||||
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`, `semver`
|
||||
|
||||
1.3.1 / 2015-08-15
|
||||
=================
|
||||
* [Fix] Ensure that objects that `toString` to a binary or octal literal also convert properly
|
||||
|
||||
1.3.0 / 2015-08-15
|
||||
=================
|
||||
* [New] ES6’s ToNumber now supports binary and octal literals.
|
||||
* [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config`, `tape`
|
||||
* [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG
|
||||
* [Tests] up to `io.js` `v3.0`
|
||||
|
||||
1.2.2 / 2015-07-28
|
||||
=================
|
||||
* [Fix] Both `ES5.CheckObjectCoercible` and `ES6.RequireObjectCoercible` return the value if they don't throw.
|
||||
* [Tests] Test on latest `io.js` versions.
|
||||
* [Dev Deps] Update `eslint`, `jscs`, `tape`, `semver`, `covert`, `nsp`
|
||||
|
||||
1.2.1 / 2015-03-20
|
||||
=================
|
||||
* Fix `isFinite` helper.
|
||||
|
||||
1.2.0 / 2015-03-19
|
||||
=================
|
||||
* Use `es-to-primitive` for ToPrimitive methods.
|
||||
* Test on latest `io.js` versions; allow failures on all but 2 latest `node`/`io.js` versions.
|
||||
|
||||
1.1.2 / 2015-03-20
|
||||
=================
|
||||
* Fix isFinite helper.
|
||||
|
||||
1.1.1 / 2015-03-19
|
||||
=================
|
||||
* Fix isPrimitive check for functions
|
||||
* Update `eslint`, `editorconfig-tools`, `semver`, `nsp`
|
||||
|
||||
1.1.0 / 2015-02-17
|
||||
=================
|
||||
* Add ES7 export (non-default).
|
||||
* All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`.
|
||||
* Test on `iojs-v1.2`.
|
||||
|
||||
1.0.1 / 2015-01-30
|
||||
=================
|
||||
* Use `is-callable` instead of an internal function.
|
||||
* Update `tape`, `jscs`, `nsp`, `eslint`
|
||||
|
||||
1.0.0 / 2015-01-10
|
||||
=================
|
||||
* v1.0.0
|
177
node_modules/es-abstract/GetIntrinsic.js
generated
vendored
Normal file
177
node_modules/es-abstract/GetIntrinsic.js
generated
vendored
Normal file
|
@ -0,0 +1,177 @@
|
|||
'use strict';
|
||||
|
||||
/* globals
|
||||
Set,
|
||||
Map,
|
||||
WeakSet,
|
||||
WeakMap,
|
||||
|
||||
Promise,
|
||||
|
||||
Symbol,
|
||||
Proxy,
|
||||
|
||||
Atomics,
|
||||
SharedArrayBuffer,
|
||||
|
||||
ArrayBuffer,
|
||||
DataView,
|
||||
Uint8Array,
|
||||
Float32Array,
|
||||
Float64Array,
|
||||
Int8Array,
|
||||
Int16Array,
|
||||
Int32Array,
|
||||
Uint8ClampedArray,
|
||||
Uint16Array,
|
||||
Uint32Array,
|
||||
*/
|
||||
|
||||
var undefined; // eslint-disable-line no-shadow-restricted-names
|
||||
|
||||
var ThrowTypeError = Object.getOwnPropertyDescriptor
|
||||
? (function () { return Object.getOwnPropertyDescriptor(arguments, 'callee').get; }())
|
||||
: function () { throw new TypeError(); };
|
||||
|
||||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
|
||||
|
||||
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
||||
|
||||
var generator; // = function * () {};
|
||||
var generatorFunction = generator ? getProto(generator) : undefined;
|
||||
var asyncFn; // async function() {};
|
||||
var asyncFunction = asyncFn ? asyncFn.constructor : undefined;
|
||||
var asyncGen; // async function * () {};
|
||||
var asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;
|
||||
var asyncGenIterator = asyncGen ? asyncGen() : undefined;
|
||||
|
||||
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
||||
|
||||
var INTRINSICS = {
|
||||
'$ %Array%': Array,
|
||||
'$ %ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
||||
'$ %ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,
|
||||
'$ %ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
||||
'$ %ArrayPrototype%': Array.prototype,
|
||||
'$ %ArrayProto_entries%': Array.prototype.entries,
|
||||
'$ %ArrayProto_forEach%': Array.prototype.forEach,
|
||||
'$ %ArrayProto_keys%': Array.prototype.keys,
|
||||
'$ %ArrayProto_values%': Array.prototype.values,
|
||||
'$ %AsyncFromSyncIteratorPrototype%': undefined,
|
||||
'$ %AsyncFunction%': asyncFunction,
|
||||
'$ %AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,
|
||||
'$ %AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,
|
||||
'$ %AsyncGeneratorFunction%': asyncGenFunction,
|
||||
'$ %AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,
|
||||
'$ %AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,
|
||||
'$ %Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
||||
'$ %Boolean%': Boolean,
|
||||
'$ %BooleanPrototype%': Boolean.prototype,
|
||||
'$ %DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
||||
'$ %DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,
|
||||
'$ %Date%': Date,
|
||||
'$ %DatePrototype%': Date.prototype,
|
||||
'$ %decodeURI%': decodeURI,
|
||||
'$ %decodeURIComponent%': decodeURIComponent,
|
||||
'$ %encodeURI%': encodeURI,
|
||||
'$ %encodeURIComponent%': encodeURIComponent,
|
||||
'$ %Error%': Error,
|
||||
'$ %ErrorPrototype%': Error.prototype,
|
||||
'$ %eval%': eval, // eslint-disable-line no-eval
|
||||
'$ %EvalError%': EvalError,
|
||||
'$ %EvalErrorPrototype%': EvalError.prototype,
|
||||
'$ %Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
||||
'$ %Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,
|
||||
'$ %Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
||||
'$ %Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,
|
||||
'$ %Function%': Function,
|
||||
'$ %FunctionPrototype%': Function.prototype,
|
||||
'$ %Generator%': generator ? getProto(generator()) : undefined,
|
||||
'$ %GeneratorFunction%': generatorFunction,
|
||||
'$ %GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,
|
||||
'$ %Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
||||
'$ %Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,
|
||||
'$ %Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
||||
'$ %Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,
|
||||
'$ %Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
||||
'$ %Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,
|
||||
'$ %isFinite%': isFinite,
|
||||
'$ %isNaN%': isNaN,
|
||||
'$ %IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
||||
'$ %JSON%': JSON,
|
||||
'$ %JSONParse%': JSON.parse,
|
||||
'$ %Map%': typeof Map === 'undefined' ? undefined : Map,
|
||||
'$ %MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
||||
'$ %MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,
|
||||
'$ %Math%': Math,
|
||||
'$ %Number%': Number,
|
||||
'$ %NumberPrototype%': Number.prototype,
|
||||
'$ %Object%': Object,
|
||||
'$ %ObjectPrototype%': Object.prototype,
|
||||
'$ %ObjProto_toString%': Object.prototype.toString,
|
||||
'$ %ObjProto_valueOf%': Object.prototype.valueOf,
|
||||
'$ %parseFloat%': parseFloat,
|
||||
'$ %parseInt%': parseInt,
|
||||
'$ %Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
||||
'$ %PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,
|
||||
'$ %PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,
|
||||
'$ %Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,
|
||||
'$ %Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,
|
||||
'$ %Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,
|
||||
'$ %Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
||||
'$ %RangeError%': RangeError,
|
||||
'$ %RangeErrorPrototype%': RangeError.prototype,
|
||||
'$ %ReferenceError%': ReferenceError,
|
||||
'$ %ReferenceErrorPrototype%': ReferenceError.prototype,
|
||||
'$ %Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
||||
'$ %RegExp%': RegExp,
|
||||
'$ %RegExpPrototype%': RegExp.prototype,
|
||||
'$ %Set%': typeof Set === 'undefined' ? undefined : Set,
|
||||
'$ %SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
||||
'$ %SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,
|
||||
'$ %SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
||||
'$ %SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,
|
||||
'$ %String%': String,
|
||||
'$ %StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
||||
'$ %StringPrototype%': String.prototype,
|
||||
'$ %Symbol%': hasSymbols ? Symbol : undefined,
|
||||
'$ %SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,
|
||||
'$ %SyntaxError%': SyntaxError,
|
||||
'$ %SyntaxErrorPrototype%': SyntaxError.prototype,
|
||||
'$ %ThrowTypeError%': ThrowTypeError,
|
||||
'$ %TypedArray%': TypedArray,
|
||||
'$ %TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,
|
||||
'$ %TypeError%': TypeError,
|
||||
'$ %TypeErrorPrototype%': TypeError.prototype,
|
||||
'$ %Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
||||
'$ %Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,
|
||||
'$ %Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
||||
'$ %Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,
|
||||
'$ %Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
||||
'$ %Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,
|
||||
'$ %Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
||||
'$ %Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,
|
||||
'$ %URIError%': URIError,
|
||||
'$ %URIErrorPrototype%': URIError.prototype,
|
||||
'$ %WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
||||
'$ %WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,
|
||||
'$ %WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
||||
'$ %WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype
|
||||
};
|
||||
|
||||
module.exports = function GetIntrinsic(name, allowMissing) {
|
||||
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
||||
throw new TypeError('"allowMissing" argument must be a boolean');
|
||||
}
|
||||
|
||||
var key = '$ ' + name;
|
||||
if (!(key in INTRINSICS)) {
|
||||
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
||||
}
|
||||
|
||||
// istanbul ignore if // hopefully this is impossible to test :-)
|
||||
if (typeof INTRINSICS[key] === 'undefined' && !allowMissing) {
|
||||
throw new TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
||||
}
|
||||
return INTRINSICS[key];
|
||||
};
|
21
node_modules/es-abstract/LICENSE
generated
vendored
Normal file
21
node_modules/es-abstract/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (C) 2015 Jordan Harband
|
||||
|
||||
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.
|
61
node_modules/es-abstract/Makefile
generated
vendored
Normal file
61
node_modules/es-abstract/Makefile
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
# Since we rely on paths relative to the makefile location, abort if make isn't being run from there.
|
||||
$(if $(findstring /,$(MAKEFILE_LIST)),$(error Please only invoke this makefile from the directory it resides in))
|
||||
|
||||
# The files that need updating when incrementing the version number.
|
||||
VERSIONED_FILES := *.js */*.js *.json README*
|
||||
|
||||
|
||||
# Add the local npm packages' bin folder to the PATH, so that `make` can find them, when invoked directly.
|
||||
# Note that rather than using `$(npm bin)` the 'node_modules/.bin' path component is hard-coded, so that invocation works even from an environment
|
||||
# where npm is (temporarily) unavailable due to having deactivated an nvm instance loaded into the calling shell in order to avoid interference with tests.
|
||||
export PATH := $(shell printf '%s' "$$PWD/node_modules/.bin:$$PATH")
|
||||
UTILS := semver
|
||||
# Make sure that all required utilities can be located.
|
||||
UTIL_CHECK := $(or $(shell PATH="$(PATH)" which $(UTILS) >/dev/null && echo 'ok'),$(error Did you forget to run `npm install` after cloning the repo? At least one of the required supporting utilities not found: $(UTILS)))
|
||||
|
||||
# Default target (by virtue of being the first non '.'-prefixed in the file).
|
||||
.PHONY: _no-target-specified
|
||||
_no-target-specified:
|
||||
$(error Please specify the target to make - `make list` shows targets. Alternatively, use `npm test` to run the default tests; `npm run` shows all tests)
|
||||
|
||||
# Lists all targets defined in this makefile.
|
||||
.PHONY: list
|
||||
list:
|
||||
@$(MAKE) -pRrn : -f $(MAKEFILE_LIST) 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | command grep -v -e '^[^[:alnum:]]' -e '^$@$$command ' | sort
|
||||
|
||||
# All-tests target: invokes the specified test suites for ALL shells defined in $(SHELLS).
|
||||
.PHONY: test
|
||||
test:
|
||||
@npm test
|
||||
|
||||
.PHONY: _ensure-tag
|
||||
_ensure-tag:
|
||||
ifndef TAG
|
||||
$(error Please invoke with `make TAG=<new-version> release`, where <new-version> is either an increment specifier (patch, minor, major, prepatch, preminor, premajor, prerelease), or an explicit major.minor.patch version number)
|
||||
endif
|
||||
|
||||
CHANGELOG_ERROR = $(error No CHANGELOG specified)
|
||||
.PHONY: _ensure-changelog
|
||||
_ensure-changelog:
|
||||
@ (git status -sb --porcelain | command grep -E '^( M|[MA] ) CHANGELOG.md' > /dev/null) || (echo no CHANGELOG.md specified && exit 2)
|
||||
|
||||
# Ensures that the git workspace is clean.
|
||||
.PHONY: _ensure-clean
|
||||
_ensure-clean:
|
||||
@[ -z "$$((git status --porcelain --untracked-files=no || echo err) | command grep -v 'CHANGELOG.md')" ] || { echo "Workspace is not clean; please commit changes first." >&2; exit 2; }
|
||||
|
||||
# Makes a release; invoke with `make TAG=<versionOrIncrementSpec> release`.
|
||||
.PHONY: release
|
||||
release: _ensure-tag _ensure-changelog _ensure-clean
|
||||
@old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \
|
||||
new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \
|
||||
if printf "$$new_ver" | command grep -q '^[0-9]'; then \
|
||||
semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \
|
||||
semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \
|
||||
else \
|
||||
new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \
|
||||
fi; \
|
||||
printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \
|
||||
replace "$$old_ver" "$$new_ver" -- $(VERSIONED_FILES) && \
|
||||
git commit -m "v$$new_ver" $(VERSIONED_FILES) CHANGELOG.md && \
|
||||
git tag -a -m "v$$new_ver" "v$$new_ver"
|
44
node_modules/es-abstract/README.md
generated
vendored
Normal file
44
node_modules/es-abstract/README.md
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
# es-abstract <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
||||
|
||||
[![Build Status][travis-svg]][travis-url]
|
||||
[![dependency status][deps-svg]][deps-url]
|
||||
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][npm-badge-png]][package-url]
|
||||
|
||||
[![browser support][testling-svg]][testling-url]
|
||||
|
||||
ECMAScript spec abstract operations.
|
||||
When different versions of the spec conflict, the default export will be the latest version of the abstract operation.
|
||||
All abstract operations will also be available under an `es5`/`es2015`/`es2016`/`es2017`/`es2018` entry point, and exported property, if you require a specific version.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var ES = require('es-abstract');
|
||||
var assert = require('assert');
|
||||
|
||||
assert(ES.isCallable(function () {}));
|
||||
assert(!ES.isCallable(/a/g));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[package-url]: https://npmjs.org/package/es-abstract
|
||||
[npm-version-svg]: http://versionbadg.es/ljharb/es-abstract.svg
|
||||
[travis-svg]: https://travis-ci.org/ljharb/es-abstract.svg
|
||||
[travis-url]: https://travis-ci.org/ljharb/es-abstract
|
||||
[deps-svg]: https://david-dm.org/ljharb/es-abstract.svg
|
||||
[deps-url]: https://david-dm.org/ljharb/es-abstract
|
||||
[dev-deps-svg]: https://david-dm.org/ljharb/es-abstract/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/ljharb/es-abstract#info=devDependencies
|
||||
[testling-svg]: https://ci.testling.com/ljharb/es-abstract.png
|
||||
[testling-url]: https://ci.testling.com/ljharb/es-abstract
|
||||
[npm-badge-png]: https://nodei.co/npm/es-abstract.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/es-abstract.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/es-abstract.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=es-abstract
|
790
node_modules/es-abstract/es2015.js
generated
vendored
Normal file
790
node_modules/es-abstract/es2015.js
generated
vendored
Normal file
|
@ -0,0 +1,790 @@
|
|||
'use strict';
|
||||
|
||||
var has = require('has');
|
||||
var toPrimitive = require('es-to-primitive/es6');
|
||||
var keys = require('object-keys');
|
||||
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
var $Array = GetIntrinsic('%Array%');
|
||||
var $String = GetIntrinsic('%String%');
|
||||
var $Object = GetIntrinsic('%Object%');
|
||||
var $Number = GetIntrinsic('%Number%');
|
||||
var $Symbol = GetIntrinsic('%Symbol%', true);
|
||||
var $RegExp = GetIntrinsic('%RegExp%');
|
||||
|
||||
var hasSymbols = !!$Symbol;
|
||||
|
||||
var assertRecord = require('./helpers/assertRecord');
|
||||
var $isNaN = require('./helpers/isNaN');
|
||||
var $isFinite = require('./helpers/isFinite');
|
||||
var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
|
||||
|
||||
var assign = require('./helpers/assign');
|
||||
var sign = require('./helpers/sign');
|
||||
var mod = require('./helpers/mod');
|
||||
var isPrimitive = require('./helpers/isPrimitive');
|
||||
var parseInteger = parseInt;
|
||||
var bind = require('function-bind');
|
||||
var arraySlice = bind.call(Function.call, $Array.prototype.slice);
|
||||
var strSlice = bind.call(Function.call, $String.prototype.slice);
|
||||
var isBinary = bind.call(Function.call, $RegExp.prototype.test, /^0b[01]+$/i);
|
||||
var isOctal = bind.call(Function.call, $RegExp.prototype.test, /^0o[0-7]+$/i);
|
||||
var regexExec = bind.call(Function.call, $RegExp.prototype.exec);
|
||||
var nonWS = ['\u0085', '\u200b', '\ufffe'].join('');
|
||||
var nonWSregex = new $RegExp('[' + nonWS + ']', 'g');
|
||||
var hasNonWS = bind.call(Function.call, $RegExp.prototype.test, nonWSregex);
|
||||
var invalidHexLiteral = /^[-+]0x[0-9a-f]+$/i;
|
||||
var isInvalidHexLiteral = bind.call(Function.call, $RegExp.prototype.test, invalidHexLiteral);
|
||||
var $charCodeAt = bind.call(Function.call, $String.prototype.charCodeAt);
|
||||
|
||||
var toStr = bind.call(Function.call, Object.prototype.toString);
|
||||
|
||||
var $NumberValueOf = bind.call(Function.call, GetIntrinsic('%NumberPrototype%').valueOf);
|
||||
var $BooleanValueOf = bind.call(Function.call, GetIntrinsic('%BooleanPrototype%').valueOf);
|
||||
var $StringValueOf = bind.call(Function.call, GetIntrinsic('%StringPrototype%').valueOf);
|
||||
var $DateValueOf = bind.call(Function.call, GetIntrinsic('%DatePrototype%').valueOf);
|
||||
|
||||
var $floor = Math.floor;
|
||||
var $abs = Math.abs;
|
||||
|
||||
var $ObjectCreate = Object.create;
|
||||
var $gOPD = $Object.getOwnPropertyDescriptor;
|
||||
|
||||
var $isExtensible = $Object.isExtensible;
|
||||
|
||||
var $defineProperty = $Object.defineProperty;
|
||||
|
||||
// whitespace from: http://es5.github.io/#x15.5.4.20
|
||||
// implementation from https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js#L1304-L1324
|
||||
var ws = [
|
||||
'\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003',
|
||||
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028',
|
||||
'\u2029\uFEFF'
|
||||
].join('');
|
||||
var trimRegex = new RegExp('(^[' + ws + ']+)|([' + ws + ']+$)', 'g');
|
||||
var replace = bind.call(Function.call, $String.prototype.replace);
|
||||
var trim = function (value) {
|
||||
return replace(value, trimRegex, '');
|
||||
};
|
||||
|
||||
var ES5 = require('./es5');
|
||||
|
||||
var hasRegExpMatcher = require('is-regex');
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations
|
||||
var ES6 = assign(assign({}, ES5), {
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-call-f-v-args
|
||||
Call: function Call(F, V) {
|
||||
var args = arguments.length > 2 ? arguments[2] : [];
|
||||
if (!this.IsCallable(F)) {
|
||||
throw new $TypeError(F + ' is not a function');
|
||||
}
|
||||
return F.apply(V, args);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toprimitive
|
||||
ToPrimitive: toPrimitive,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toboolean
|
||||
// ToBoolean: ES5.ToBoolean,
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-tonumber
|
||||
ToNumber: function ToNumber(argument) {
|
||||
var value = isPrimitive(argument) ? argument : toPrimitive(argument, $Number);
|
||||
if (typeof value === 'symbol') {
|
||||
throw new $TypeError('Cannot convert a Symbol value to a number');
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
if (isBinary(value)) {
|
||||
return this.ToNumber(parseInteger(strSlice(value, 2), 2));
|
||||
} else if (isOctal(value)) {
|
||||
return this.ToNumber(parseInteger(strSlice(value, 2), 8));
|
||||
} else if (hasNonWS(value) || isInvalidHexLiteral(value)) {
|
||||
return NaN;
|
||||
} else {
|
||||
var trimmed = trim(value);
|
||||
if (trimmed !== value) {
|
||||
return this.ToNumber(trimmed);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $Number(value);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tointeger
|
||||
// ToInteger: ES5.ToNumber,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint32
|
||||
// ToInt32: ES5.ToInt32,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint32
|
||||
// ToUint32: ES5.ToUint32,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint16
|
||||
ToInt16: function ToInt16(argument) {
|
||||
var int16bit = this.ToUint16(argument);
|
||||
return int16bit >= 0x8000 ? int16bit - 0x10000 : int16bit;
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint16
|
||||
// ToUint16: ES5.ToUint16,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toint8
|
||||
ToInt8: function ToInt8(argument) {
|
||||
var int8bit = this.ToUint8(argument);
|
||||
return int8bit >= 0x80 ? int8bit - 0x100 : int8bit;
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8
|
||||
ToUint8: function ToUint8(argument) {
|
||||
var number = this.ToNumber(argument);
|
||||
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
|
||||
var posInt = sign(number) * $floor($abs(number));
|
||||
return mod(posInt, 0x100);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-touint8clamp
|
||||
ToUint8Clamp: function ToUint8Clamp(argument) {
|
||||
var number = this.ToNumber(argument);
|
||||
if ($isNaN(number) || number <= 0) { return 0; }
|
||||
if (number >= 0xFF) { return 0xFF; }
|
||||
var f = $floor(argument);
|
||||
if (f + 0.5 < number) { return f + 1; }
|
||||
if (number < f + 0.5) { return f; }
|
||||
if (f % 2 !== 0) { return f + 1; }
|
||||
return f;
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tostring
|
||||
ToString: function ToString(argument) {
|
||||
if (typeof argument === 'symbol') {
|
||||
throw new $TypeError('Cannot convert a Symbol value to a string');
|
||||
}
|
||||
return $String(argument);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-toobject
|
||||
ToObject: function ToObject(value) {
|
||||
this.RequireObjectCoercible(value);
|
||||
return $Object(value);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
|
||||
ToPropertyKey: function ToPropertyKey(argument) {
|
||||
var key = this.ToPrimitive(argument, $String);
|
||||
return typeof key === 'symbol' ? key : this.ToString(key);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
|
||||
ToLength: function ToLength(argument) {
|
||||
var len = this.ToInteger(argument);
|
||||
if (len <= 0) { return 0; } // includes converting -0 to +0
|
||||
if (len > MAX_SAFE_INTEGER) { return MAX_SAFE_INTEGER; }
|
||||
return len;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring
|
||||
CanonicalNumericIndexString: function CanonicalNumericIndexString(argument) {
|
||||
if (toStr(argument) !== '[object String]') {
|
||||
throw new $TypeError('must be a string');
|
||||
}
|
||||
if (argument === '-0') { return -0; }
|
||||
var n = this.ToNumber(argument);
|
||||
if (this.SameValue(this.ToString(n), argument)) { return n; }
|
||||
return void 0;
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-requireobjectcoercible
|
||||
RequireObjectCoercible: ES5.CheckObjectCoercible,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
|
||||
IsArray: $Array.isArray || function IsArray(argument) {
|
||||
return toStr(argument) === '[object Array]';
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-iscallable
|
||||
// IsCallable: ES5.IsCallable,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
|
||||
IsConstructor: function IsConstructor(argument) {
|
||||
return typeof argument === 'function' && !!argument.prototype; // unfortunately there's no way to truly check this without try/catch `new argument`
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isextensible-o
|
||||
IsExtensible: Object.preventExtensions
|
||||
? function IsExtensible(obj) {
|
||||
if (isPrimitive(obj)) {
|
||||
return false;
|
||||
}
|
||||
return $isExtensible(obj);
|
||||
}
|
||||
: function isExtensible(obj) { return true; }, // eslint-disable-line no-unused-vars
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isinteger
|
||||
IsInteger: function IsInteger(argument) {
|
||||
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
||||
return false;
|
||||
}
|
||||
var abs = $abs(argument);
|
||||
return $floor(abs) === abs;
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ispropertykey
|
||||
IsPropertyKey: function IsPropertyKey(argument) {
|
||||
return typeof argument === 'string' || typeof argument === 'symbol';
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
||||
IsRegExp: function IsRegExp(argument) {
|
||||
if (!argument || typeof argument !== 'object') {
|
||||
return false;
|
||||
}
|
||||
if (hasSymbols) {
|
||||
var isRegExp = argument[$Symbol.match];
|
||||
if (typeof isRegExp !== 'undefined') {
|
||||
return ES5.ToBoolean(isRegExp);
|
||||
}
|
||||
}
|
||||
return hasRegExpMatcher(argument);
|
||||
},
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevalue
|
||||
// SameValue: ES5.SameValue,
|
||||
|
||||
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero
|
||||
SameValueZero: function SameValueZero(x, y) {
|
||||
return (x === y) || ($isNaN(x) && $isNaN(y));
|
||||
},
|
||||
|
||||
/**
|
||||
* 7.3.2 GetV (V, P)
|
||||
* 1. Assert: IsPropertyKey(P) is true.
|
||||
* 2. Let O be ToObject(V).
|
||||
* 3. ReturnIfAbrupt(O).
|
||||
* 4. Return O.[[Get]](P, V).
|
||||
*/
|
||||
GetV: function GetV(V, P) {
|
||||
// 7.3.2.1
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
|
||||
// 7.3.2.2-3
|
||||
var O = this.ToObject(V);
|
||||
|
||||
// 7.3.2.4
|
||||
return O[P];
|
||||
},
|
||||
|
||||
/**
|
||||
* 7.3.9 - https://ecma-international.org/ecma-262/6.0/#sec-getmethod
|
||||
* 1. Assert: IsPropertyKey(P) is true.
|
||||
* 2. Let func be GetV(O, P).
|
||||
* 3. ReturnIfAbrupt(func).
|
||||
* 4. If func is either undefined or null, return undefined.
|
||||
* 5. If IsCallable(func) is false, throw a TypeError exception.
|
||||
* 6. Return func.
|
||||
*/
|
||||
GetMethod: function GetMethod(O, P) {
|
||||
// 7.3.9.1
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
|
||||
// 7.3.9.2
|
||||
var func = this.GetV(O, P);
|
||||
|
||||
// 7.3.9.4
|
||||
if (func == null) {
|
||||
return void 0;
|
||||
}
|
||||
|
||||
// 7.3.9.5
|
||||
if (!this.IsCallable(func)) {
|
||||
throw new $TypeError(P + 'is not a function');
|
||||
}
|
||||
|
||||
// 7.3.9.6
|
||||
return func;
|
||||
},
|
||||
|
||||
/**
|
||||
* 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p
|
||||
* 1. Assert: Type(O) is Object.
|
||||
* 2. Assert: IsPropertyKey(P) is true.
|
||||
* 3. Return O.[[Get]](P, O).
|
||||
*/
|
||||
Get: function Get(O, P) {
|
||||
// 7.3.1.1
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
// 7.3.1.2
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
// 7.3.1.3
|
||||
return O[P];
|
||||
},
|
||||
|
||||
Type: function Type(x) {
|
||||
if (typeof x === 'symbol') {
|
||||
return 'Symbol';
|
||||
}
|
||||
return ES5.Type(x);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor
|
||||
SpeciesConstructor: function SpeciesConstructor(O, defaultConstructor) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
var C = O.constructor;
|
||||
if (typeof C === 'undefined') {
|
||||
return defaultConstructor;
|
||||
}
|
||||
if (this.Type(C) !== 'Object') {
|
||||
throw new $TypeError('O.constructor is not an Object');
|
||||
}
|
||||
var S = hasSymbols && $Symbol.species ? C[$Symbol.species] : void 0;
|
||||
if (S == null) {
|
||||
return defaultConstructor;
|
||||
}
|
||||
if (this.IsConstructor(S)) {
|
||||
return S;
|
||||
}
|
||||
throw new $TypeError('no constructor found');
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor
|
||||
CompletePropertyDescriptor: function CompletePropertyDescriptor(Desc) {
|
||||
assertRecord(this, 'Property Descriptor', 'Desc', Desc);
|
||||
|
||||
if (this.IsGenericDescriptor(Desc) || this.IsDataDescriptor(Desc)) {
|
||||
if (!has(Desc, '[[Value]]')) {
|
||||
Desc['[[Value]]'] = void 0;
|
||||
}
|
||||
if (!has(Desc, '[[Writable]]')) {
|
||||
Desc['[[Writable]]'] = false;
|
||||
}
|
||||
} else {
|
||||
if (!has(Desc, '[[Get]]')) {
|
||||
Desc['[[Get]]'] = void 0;
|
||||
}
|
||||
if (!has(Desc, '[[Set]]')) {
|
||||
Desc['[[Set]]'] = void 0;
|
||||
}
|
||||
}
|
||||
if (!has(Desc, '[[Enumerable]]')) {
|
||||
Desc['[[Enumerable]]'] = false;
|
||||
}
|
||||
if (!has(Desc, '[[Configurable]]')) {
|
||||
Desc['[[Configurable]]'] = false;
|
||||
}
|
||||
return Desc;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw
|
||||
Set: function Set(O, P, V, Throw) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('O must be an Object');
|
||||
}
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('P must be a Property Key');
|
||||
}
|
||||
if (this.Type(Throw) !== 'Boolean') {
|
||||
throw new $TypeError('Throw must be a Boolean');
|
||||
}
|
||||
if (Throw) {
|
||||
O[P] = V;
|
||||
return true;
|
||||
} else {
|
||||
try {
|
||||
O[P] = V;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty
|
||||
HasOwnProperty: function HasOwnProperty(O, P) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('O must be an Object');
|
||||
}
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('P must be a Property Key');
|
||||
}
|
||||
return has(O, P);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty
|
||||
HasProperty: function HasProperty(O, P) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('O must be an Object');
|
||||
}
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('P must be a Property Key');
|
||||
}
|
||||
return P in O;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable
|
||||
IsConcatSpreadable: function IsConcatSpreadable(O) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
return false;
|
||||
}
|
||||
if (hasSymbols && typeof $Symbol.isConcatSpreadable === 'symbol') {
|
||||
var spreadable = this.Get(O, Symbol.isConcatSpreadable);
|
||||
if (typeof spreadable !== 'undefined') {
|
||||
return this.ToBoolean(spreadable);
|
||||
}
|
||||
}
|
||||
return this.IsArray(O);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-invoke
|
||||
Invoke: function Invoke(O, P) {
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('P must be a Property Key');
|
||||
}
|
||||
var argumentsList = arraySlice(arguments, 2);
|
||||
var func = this.GetV(O, P);
|
||||
return this.Call(func, O, argumentsList);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-getiterator
|
||||
GetIterator: function GetIterator(obj, method) {
|
||||
if (!hasSymbols) {
|
||||
throw new SyntaxError('ES.GetIterator depends on native iterator support.');
|
||||
}
|
||||
|
||||
var actualMethod = method;
|
||||
if (arguments.length < 2) {
|
||||
actualMethod = this.GetMethod(obj, $Symbol.iterator);
|
||||
}
|
||||
var iterator = this.Call(actualMethod, obj);
|
||||
if (this.Type(iterator) !== 'Object') {
|
||||
throw new $TypeError('iterator must return an object');
|
||||
}
|
||||
|
||||
return iterator;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-iteratornext
|
||||
IteratorNext: function IteratorNext(iterator, value) {
|
||||
var result = this.Invoke(iterator, 'next', arguments.length < 2 ? [] : [value]);
|
||||
if (this.Type(result) !== 'Object') {
|
||||
throw new $TypeError('iterator next must return an object');
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete
|
||||
IteratorComplete: function IteratorComplete(iterResult) {
|
||||
if (this.Type(iterResult) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
|
||||
}
|
||||
return this.ToBoolean(this.Get(iterResult, 'done'));
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue
|
||||
IteratorValue: function IteratorValue(iterResult) {
|
||||
if (this.Type(iterResult) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(iterResult) is not Object');
|
||||
}
|
||||
return this.Get(iterResult, 'value');
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep
|
||||
IteratorStep: function IteratorStep(iterator) {
|
||||
var result = this.IteratorNext(iterator);
|
||||
var done = this.IteratorComplete(result);
|
||||
return done === true ? false : result;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose
|
||||
IteratorClose: function IteratorClose(iterator, completion) {
|
||||
if (this.Type(iterator) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(iterator) is not Object');
|
||||
}
|
||||
if (!this.IsCallable(completion)) {
|
||||
throw new $TypeError('Assertion failed: completion is not a thunk for a Completion Record');
|
||||
}
|
||||
var completionThunk = completion;
|
||||
|
||||
var iteratorReturn = this.GetMethod(iterator, 'return');
|
||||
|
||||
if (typeof iteratorReturn === 'undefined') {
|
||||
return completionThunk();
|
||||
}
|
||||
|
||||
var completionRecord;
|
||||
try {
|
||||
var innerResult = this.Call(iteratorReturn, iterator, []);
|
||||
} catch (e) {
|
||||
// if we hit here, then "e" is the innerResult completion that needs re-throwing
|
||||
|
||||
// if the completion is of type "throw", this will throw.
|
||||
completionRecord = completionThunk();
|
||||
completionThunk = null; // ensure it's not called twice.
|
||||
|
||||
// if not, then return the innerResult completion
|
||||
throw e;
|
||||
}
|
||||
completionRecord = completionThunk(); // if innerResult worked, then throw if the completion does
|
||||
completionThunk = null; // ensure it's not called twice.
|
||||
|
||||
if (this.Type(innerResult) !== 'Object') {
|
||||
throw new $TypeError('iterator .return must return an object');
|
||||
}
|
||||
|
||||
return completionRecord;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject
|
||||
CreateIterResultObject: function CreateIterResultObject(value, done) {
|
||||
if (this.Type(done) !== 'Boolean') {
|
||||
throw new $TypeError('Assertion failed: Type(done) is not Boolean');
|
||||
}
|
||||
return {
|
||||
value: value,
|
||||
done: done
|
||||
};
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-regexpexec
|
||||
RegExpExec: function RegExpExec(R, S) {
|
||||
if (this.Type(R) !== 'Object') {
|
||||
throw new $TypeError('R must be an Object');
|
||||
}
|
||||
if (this.Type(S) !== 'String') {
|
||||
throw new $TypeError('S must be a String');
|
||||
}
|
||||
var exec = this.Get(R, 'exec');
|
||||
if (this.IsCallable(exec)) {
|
||||
var result = this.Call(exec, R, [S]);
|
||||
if (result === null || this.Type(result) === 'Object') {
|
||||
return result;
|
||||
}
|
||||
throw new $TypeError('"exec" method must return `null` or an Object');
|
||||
}
|
||||
return regexExec(R, S);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate
|
||||
ArraySpeciesCreate: function ArraySpeciesCreate(originalArray, length) {
|
||||
if (!this.IsInteger(length) || length < 0) {
|
||||
throw new $TypeError('Assertion failed: length must be an integer >= 0');
|
||||
}
|
||||
var len = length === 0 ? 0 : length;
|
||||
var C;
|
||||
var isArray = this.IsArray(originalArray);
|
||||
if (isArray) {
|
||||
C = this.Get(originalArray, 'constructor');
|
||||
// TODO: figure out how to make a cross-realm normal Array, a same-realm Array
|
||||
// if (this.IsConstructor(C)) {
|
||||
// if C is another realm's Array, C = undefined
|
||||
// Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(Array))) === null ?
|
||||
// }
|
||||
if (this.Type(C) === 'Object' && hasSymbols && $Symbol.species) {
|
||||
C = this.Get(C, $Symbol.species);
|
||||
if (C === null) {
|
||||
C = void 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (typeof C === 'undefined') {
|
||||
return $Array(len);
|
||||
}
|
||||
if (!this.IsConstructor(C)) {
|
||||
throw new $TypeError('C must be a constructor');
|
||||
}
|
||||
return new C(len); // this.Construct(C, len);
|
||||
},
|
||||
|
||||
CreateDataProperty: function CreateDataProperty(O, P, V) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
var oldDesc = $gOPD(O, P);
|
||||
var extensible = oldDesc || (typeof $isExtensible !== 'function' || $isExtensible(O));
|
||||
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
||||
if (immutable || !extensible) {
|
||||
return false;
|
||||
}
|
||||
var newDesc = {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
value: V,
|
||||
writable: true
|
||||
};
|
||||
$defineProperty(O, P, newDesc);
|
||||
return true;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow
|
||||
CreateDataPropertyOrThrow: function CreateDataPropertyOrThrow(O, P, V) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
var success = this.CreateDataProperty(O, P, V);
|
||||
if (!success) {
|
||||
throw new $TypeError('unable to create data property');
|
||||
}
|
||||
return success;
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-objectcreate
|
||||
ObjectCreate: function ObjectCreate(proto, internalSlotsList) {
|
||||
if (proto !== null && this.Type(proto) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: proto must be null or an object');
|
||||
}
|
||||
var slots = arguments.length < 2 ? [] : internalSlotsList;
|
||||
if (slots.length > 0) {
|
||||
throw new $SyntaxError('es-abstract does not yet support internal slots');
|
||||
}
|
||||
|
||||
if (proto === null && !$ObjectCreate) {
|
||||
throw new $SyntaxError('native Object.create support is required to create null objects');
|
||||
}
|
||||
|
||||
return $ObjectCreate(proto);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex
|
||||
AdvanceStringIndex: function AdvanceStringIndex(S, index, unicode) {
|
||||
if (this.Type(S) !== 'String') {
|
||||
throw new $TypeError('S must be a String');
|
||||
}
|
||||
if (!this.IsInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) {
|
||||
throw new $TypeError('Assertion failed: length must be an integer >= 0 and <= 2**53');
|
||||
}
|
||||
if (this.Type(unicode) !== 'Boolean') {
|
||||
throw new $TypeError('Assertion failed: unicode must be a Boolean');
|
||||
}
|
||||
if (!unicode) {
|
||||
return index + 1;
|
||||
}
|
||||
var length = S.length;
|
||||
if ((index + 1) >= length) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
var first = $charCodeAt(S, index);
|
||||
if (first < 0xD800 || first > 0xDBFF) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
var second = $charCodeAt(S, index + 1);
|
||||
if (second < 0xDC00 || second > 0xDFFF) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
return index + 2;
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-createmethodproperty
|
||||
CreateMethodProperty: function CreateMethodProperty(O, P, V) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
|
||||
var newDesc = {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: V,
|
||||
writable: true
|
||||
};
|
||||
return !!$defineProperty(O, P, newDesc);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow
|
||||
DefinePropertyOrThrow: function DefinePropertyOrThrow(O, P, desc) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
|
||||
return !!$defineProperty(O, P, desc);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow
|
||||
DeletePropertyOrThrow: function DeletePropertyOrThrow(O, P) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
|
||||
if (!this.IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true');
|
||||
}
|
||||
|
||||
var success = delete O[P];
|
||||
if (!success) {
|
||||
throw new TypeError('Attempt to delete property failed.');
|
||||
}
|
||||
return success;
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-enumerableownnames
|
||||
EnumerableOwnNames: function EnumerableOwnNames(O) {
|
||||
if (this.Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: Type(O) is not Object');
|
||||
}
|
||||
|
||||
return keys(O);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object
|
||||
thisNumberValue: function thisNumberValue(value) {
|
||||
if (this.Type(value) === 'Number') {
|
||||
return value;
|
||||
}
|
||||
|
||||
return $NumberValueOf(value);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object
|
||||
thisBooleanValue: function thisBooleanValue(value) {
|
||||
if (this.Type(value) === 'Boolean') {
|
||||
return value;
|
||||
}
|
||||
|
||||
return $BooleanValueOf(value);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object
|
||||
thisStringValue: function thisStringValue(value) {
|
||||
if (this.Type(value) === 'String') {
|
||||
return value;
|
||||
}
|
||||
|
||||
return $StringValueOf(value);
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object
|
||||
thisTimeValue: function thisTimeValue(value) {
|
||||
return $DateValueOf(value);
|
||||
}
|
||||
});
|
||||
|
||||
delete ES6.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible
|
||||
|
||||
module.exports = ES6;
|
16
node_modules/es-abstract/es2016.js
generated
vendored
Normal file
16
node_modules/es-abstract/es2016.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
var ES2015 = require('./es2015');
|
||||
var assign = require('./helpers/assign');
|
||||
|
||||
var ES2016 = assign(assign({}, ES2015), {
|
||||
// https://github.com/tc39/ecma262/pull/60
|
||||
SameValueNonNumber: function SameValueNonNumber(x, y) {
|
||||
if (typeof x === 'number' || typeof x !== typeof y) {
|
||||
throw new TypeError('SameValueNonNumber requires two non-number values of the same type.');
|
||||
}
|
||||
return this.SameValue(x, y);
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = ES2016;
|
54
node_modules/es-abstract/es2017.js
generated
vendored
Normal file
54
node_modules/es-abstract/es2017.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
|
||||
var ES2016 = require('./es2016');
|
||||
var assign = require('./helpers/assign');
|
||||
var forEach = require('./helpers/forEach');
|
||||
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $isEnumerable = bind.call(Function.call, GetIntrinsic('%ObjectPrototype%').propertyIsEnumerable);
|
||||
var $pushApply = bind.call(Function.apply, GetIntrinsic('%ArrayPrototype%').push);
|
||||
|
||||
var ES2017 = assign(assign({}, ES2016), {
|
||||
ToIndex: function ToIndex(value) {
|
||||
if (typeof value === 'undefined') {
|
||||
return 0;
|
||||
}
|
||||
var integerIndex = this.ToInteger(value);
|
||||
if (integerIndex < 0) {
|
||||
throw new RangeError('index must be >= 0');
|
||||
}
|
||||
var index = this.ToLength(integerIndex);
|
||||
if (!this.SameValueZero(integerIndex, index)) {
|
||||
throw new RangeError('index must be >= 0 and < 2 ** 53 - 1');
|
||||
}
|
||||
return index;
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/8.0/#sec-enumerableownproperties
|
||||
EnumerableOwnProperties: function EnumerableOwnProperties(O, kind) {
|
||||
var keys = ES2016.EnumerableOwnNames(O);
|
||||
if (kind === 'key') {
|
||||
return keys;
|
||||
}
|
||||
if (kind === 'value' || kind === 'key+value') {
|
||||
var results = [];
|
||||
forEach(keys, function (key) {
|
||||
if ($isEnumerable(O, key)) {
|
||||
$pushApply(results, [
|
||||
kind === 'value' ? O[key] : [key, O[key]]
|
||||
]);
|
||||
}
|
||||
});
|
||||
return results;
|
||||
}
|
||||
throw new $TypeError('Assertion failed: "kind" is not "key", "value", or "key+value": ' + kind);
|
||||
}
|
||||
});
|
||||
|
||||
delete ES2017.EnumerableOwnNames; // replaced with EnumerableOwnProperties
|
||||
|
||||
module.exports = ES2017;
|
149
node_modules/es-abstract/es2018.js
generated
vendored
Normal file
149
node_modules/es-abstract/es2018.js
generated
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
var keys = require('object-keys');
|
||||
|
||||
var ES2017 = require('./es2017');
|
||||
var assign = require('./helpers/assign');
|
||||
var forEach = require('./helpers/forEach');
|
||||
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
|
||||
var $String = GetIntrinsic('%String%');
|
||||
var $Object = GetIntrinsic('%Object%');
|
||||
|
||||
var $SymbolProto = GetIntrinsic('%SymbolPrototype%', true);
|
||||
var $SymbolValueOf = $SymbolProto ? bind.call(Function.call, $SymbolProto.valueOf) : null;
|
||||
var $StringProto = GetIntrinsic('%StringPrototype%');
|
||||
var $charAt = bind.call(Function.call, $StringProto.charAt);
|
||||
|
||||
var $PromiseResolveOrig = GetIntrinsic('%Promise_resolve%', true);
|
||||
var $PromiseResolve = $PromiseResolveOrig ? bind.call(Function.call, $PromiseResolveOrig) : null;
|
||||
|
||||
var $isEnumerable = bind.call(Function.call, GetIntrinsic('%ObjectPrototype%').propertyIsEnumerable);
|
||||
var $pushApply = bind.call(Function.apply, GetIntrinsic('%ArrayPrototype%').push);
|
||||
var $gOPS = $SymbolValueOf ? $Object.getOwnPropertySymbols : null;
|
||||
|
||||
var OwnPropertyKeys = function OwnPropertyKeys(ES, source) {
|
||||
var ownKeys = keys(source);
|
||||
if ($gOPS) {
|
||||
$pushApply(ownKeys, $gOPS(source));
|
||||
}
|
||||
return ownKeys;
|
||||
};
|
||||
|
||||
var ES2018 = assign(assign({}, ES2017), {
|
||||
EnumerableOwnPropertyNames: ES2017.EnumerableOwnProperties,
|
||||
|
||||
// https://ecma-international.org/ecma-262/9.0/#sec-thissymbolvalue
|
||||
thisSymbolValue: function thisSymbolValue(value) {
|
||||
if (!$SymbolValueOf) {
|
||||
throw new SyntaxError('Symbols are not supported; thisSymbolValue requires that `value` be a Symbol or a Symbol object');
|
||||
}
|
||||
if (this.Type(value) === 'Symbol') {
|
||||
return value;
|
||||
}
|
||||
return $SymbolValueOf(value);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/9.0/#sec-isstringprefix
|
||||
IsStringPrefix: function IsStringPrefix(p, q) {
|
||||
if (this.Type(p) !== 'String') {
|
||||
throw new TypeError('Assertion failed: "p" must be a String');
|
||||
}
|
||||
|
||||
if (this.Type(q) !== 'String') {
|
||||
throw new TypeError('Assertion failed: "q" must be a String');
|
||||
}
|
||||
|
||||
if (p === q || p === '') {
|
||||
return true;
|
||||
}
|
||||
|
||||
var pLength = p.length;
|
||||
var qLength = q.length;
|
||||
if (pLength >= qLength) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// assert: pLength < qLength
|
||||
|
||||
for (var i = 0; i < pLength; i += 1) {
|
||||
if ($charAt(p, i) !== $charAt(q, i)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/9.0/#sec-tostring-applied-to-the-number-type
|
||||
NumberToString: function NumberToString(m) {
|
||||
if (this.Type(m) !== 'Number') {
|
||||
throw new TypeError('Assertion failed: "m" must be a String');
|
||||
}
|
||||
|
||||
return $String(m);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/9.0/#sec-copydataproperties
|
||||
CopyDataProperties: function CopyDataProperties(target, source, excludedItems) {
|
||||
if (this.Type(target) !== 'Object') {
|
||||
throw new TypeError('Assertion failed: "target" must be an Object');
|
||||
}
|
||||
|
||||
if (!this.IsArray(excludedItems)) {
|
||||
throw new TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
}
|
||||
for (var i = 0; i < excludedItems.length; i += 1) {
|
||||
if (!this.IsPropertyKey(excludedItems[i])) {
|
||||
throw new TypeError('Assertion failed: "excludedItems" must be a List of Property Keys');
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof source === 'undefined' || source === null) {
|
||||
return target;
|
||||
}
|
||||
|
||||
var ES = this;
|
||||
|
||||
var fromObj = ES.ToObject(source);
|
||||
|
||||
var sourceKeys = OwnPropertyKeys(ES, fromObj);
|
||||
forEach(sourceKeys, function (nextKey) {
|
||||
var excluded = false;
|
||||
|
||||
forEach(excludedItems, function (e) {
|
||||
if (ES.SameValue(e, nextKey) === true) {
|
||||
excluded = true;
|
||||
}
|
||||
});
|
||||
|
||||
var enumerable = $isEnumerable(fromObj, nextKey) || (
|
||||
// this is to handle string keys being non-enumerable in older engines
|
||||
typeof source === 'string'
|
||||
&& nextKey >= 0
|
||||
&& ES.IsInteger(ES.ToNumber(nextKey))
|
||||
);
|
||||
if (excluded === false && enumerable) {
|
||||
var propValue = ES.Get(fromObj, nextKey);
|
||||
ES.CreateDataProperty(target, nextKey, propValue);
|
||||
}
|
||||
});
|
||||
|
||||
return target;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/9.0/#sec-promise-resolve
|
||||
PromiseResolve: function PromiseResolve(C, x) {
|
||||
if (!$PromiseResolve) {
|
||||
throw new SyntaxError('This environment does not support Promises.');
|
||||
}
|
||||
return $PromiseResolve(C, x);
|
||||
}
|
||||
});
|
||||
|
||||
delete ES2018.EnumerableOwnProperties; // replaced with EnumerableOwnPropertyNames
|
||||
|
||||
delete ES2018.IsPropertyDescriptor; // not an actual abstract operation
|
||||
|
||||
module.exports = ES2018;
|
235
node_modules/es-abstract/es5.js
generated
vendored
Normal file
235
node_modules/es-abstract/es5.js
generated
vendored
Normal file
|
@ -0,0 +1,235 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('./GetIntrinsic');
|
||||
|
||||
var $Object = GetIntrinsic('%Object%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $String = GetIntrinsic('%String%');
|
||||
|
||||
var assertRecord = require('./helpers/assertRecord');
|
||||
var $isNaN = require('./helpers/isNaN');
|
||||
var $isFinite = require('./helpers/isFinite');
|
||||
|
||||
var sign = require('./helpers/sign');
|
||||
var mod = require('./helpers/mod');
|
||||
|
||||
var IsCallable = require('is-callable');
|
||||
var toPrimitive = require('es-to-primitive/es5');
|
||||
|
||||
var has = require('has');
|
||||
|
||||
// https://es5.github.io/#x9
|
||||
var ES5 = {
|
||||
ToPrimitive: toPrimitive,
|
||||
|
||||
ToBoolean: function ToBoolean(value) {
|
||||
return !!value;
|
||||
},
|
||||
ToNumber: function ToNumber(value) {
|
||||
return +value; // eslint-disable-line no-implicit-coercion
|
||||
},
|
||||
ToInteger: function ToInteger(value) {
|
||||
var number = this.ToNumber(value);
|
||||
if ($isNaN(number)) { return 0; }
|
||||
if (number === 0 || !$isFinite(number)) { return number; }
|
||||
return sign(number) * Math.floor(Math.abs(number));
|
||||
},
|
||||
ToInt32: function ToInt32(x) {
|
||||
return this.ToNumber(x) >> 0;
|
||||
},
|
||||
ToUint32: function ToUint32(x) {
|
||||
return this.ToNumber(x) >>> 0;
|
||||
},
|
||||
ToUint16: function ToUint16(value) {
|
||||
var number = this.ToNumber(value);
|
||||
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
|
||||
var posInt = sign(number) * Math.floor(Math.abs(number));
|
||||
return mod(posInt, 0x10000);
|
||||
},
|
||||
ToString: function ToString(value) {
|
||||
return $String(value);
|
||||
},
|
||||
ToObject: function ToObject(value) {
|
||||
this.CheckObjectCoercible(value);
|
||||
return $Object(value);
|
||||
},
|
||||
CheckObjectCoercible: function CheckObjectCoercible(value, optMessage) {
|
||||
/* jshint eqnull:true */
|
||||
if (value == null) {
|
||||
throw new $TypeError(optMessage || 'Cannot call method on ' + value);
|
||||
}
|
||||
return value;
|
||||
},
|
||||
IsCallable: IsCallable,
|
||||
SameValue: function SameValue(x, y) {
|
||||
if (x === y) { // 0 === -0, but they are not identical.
|
||||
if (x === 0) { return 1 / x === 1 / y; }
|
||||
return true;
|
||||
}
|
||||
return $isNaN(x) && $isNaN(y);
|
||||
},
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/5.1/#sec-8
|
||||
Type: function Type(x) {
|
||||
if (x === null) {
|
||||
return 'Null';
|
||||
}
|
||||
if (typeof x === 'undefined') {
|
||||
return 'Undefined';
|
||||
}
|
||||
if (typeof x === 'function' || typeof x === 'object') {
|
||||
return 'Object';
|
||||
}
|
||||
if (typeof x === 'number') {
|
||||
return 'Number';
|
||||
}
|
||||
if (typeof x === 'boolean') {
|
||||
return 'Boolean';
|
||||
}
|
||||
if (typeof x === 'string') {
|
||||
return 'String';
|
||||
}
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
|
||||
IsPropertyDescriptor: function IsPropertyDescriptor(Desc) {
|
||||
if (this.Type(Desc) !== 'Object') {
|
||||
return false;
|
||||
}
|
||||
var allowed = {
|
||||
'[[Configurable]]': true,
|
||||
'[[Enumerable]]': true,
|
||||
'[[Get]]': true,
|
||||
'[[Set]]': true,
|
||||
'[[Value]]': true,
|
||||
'[[Writable]]': true
|
||||
};
|
||||
|
||||
for (var key in Desc) { // eslint-disable-line
|
||||
if (has(Desc, key) && !allowed[key]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var isData = has(Desc, '[[Value]]');
|
||||
var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]');
|
||||
if (isData && IsAccessor) {
|
||||
throw new $TypeError('Property Descriptors may not be both accessor and data descriptors');
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.1
|
||||
IsAccessorDescriptor: function IsAccessorDescriptor(Desc) {
|
||||
if (typeof Desc === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
assertRecord(this, 'Property Descriptor', 'Desc', Desc);
|
||||
|
||||
if (!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.2
|
||||
IsDataDescriptor: function IsDataDescriptor(Desc) {
|
||||
if (typeof Desc === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
assertRecord(this, 'Property Descriptor', 'Desc', Desc);
|
||||
|
||||
if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.3
|
||||
IsGenericDescriptor: function IsGenericDescriptor(Desc) {
|
||||
if (typeof Desc === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
assertRecord(this, 'Property Descriptor', 'Desc', Desc);
|
||||
|
||||
if (!this.IsAccessorDescriptor(Desc) && !this.IsDataDescriptor(Desc)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.4
|
||||
FromPropertyDescriptor: function FromPropertyDescriptor(Desc) {
|
||||
if (typeof Desc === 'undefined') {
|
||||
return Desc;
|
||||
}
|
||||
|
||||
assertRecord(this, 'Property Descriptor', 'Desc', Desc);
|
||||
|
||||
if (this.IsDataDescriptor(Desc)) {
|
||||
return {
|
||||
value: Desc['[[Value]]'],
|
||||
writable: !!Desc['[[Writable]]'],
|
||||
enumerable: !!Desc['[[Enumerable]]'],
|
||||
configurable: !!Desc['[[Configurable]]']
|
||||
};
|
||||
} else if (this.IsAccessorDescriptor(Desc)) {
|
||||
return {
|
||||
get: Desc['[[Get]]'],
|
||||
set: Desc['[[Set]]'],
|
||||
enumerable: !!Desc['[[Enumerable]]'],
|
||||
configurable: !!Desc['[[Configurable]]']
|
||||
};
|
||||
} else {
|
||||
throw new $TypeError('FromPropertyDescriptor must be called with a fully populated Property Descriptor');
|
||||
}
|
||||
},
|
||||
|
||||
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
||||
ToPropertyDescriptor: function ToPropertyDescriptor(Obj) {
|
||||
if (this.Type(Obj) !== 'Object') {
|
||||
throw new $TypeError('ToPropertyDescriptor requires an object');
|
||||
}
|
||||
|
||||
var desc = {};
|
||||
if (has(Obj, 'enumerable')) {
|
||||
desc['[[Enumerable]]'] = this.ToBoolean(Obj.enumerable);
|
||||
}
|
||||
if (has(Obj, 'configurable')) {
|
||||
desc['[[Configurable]]'] = this.ToBoolean(Obj.configurable);
|
||||
}
|
||||
if (has(Obj, 'value')) {
|
||||
desc['[[Value]]'] = Obj.value;
|
||||
}
|
||||
if (has(Obj, 'writable')) {
|
||||
desc['[[Writable]]'] = this.ToBoolean(Obj.writable);
|
||||
}
|
||||
if (has(Obj, 'get')) {
|
||||
var getter = Obj.get;
|
||||
if (typeof getter !== 'undefined' && !this.IsCallable(getter)) {
|
||||
throw new TypeError('getter must be a function');
|
||||
}
|
||||
desc['[[Get]]'] = getter;
|
||||
}
|
||||
if (has(Obj, 'set')) {
|
||||
var setter = Obj.set;
|
||||
if (typeof setter !== 'undefined' && !this.IsCallable(setter)) {
|
||||
throw new $TypeError('setter must be a function');
|
||||
}
|
||||
desc['[[Set]]'] = setter;
|
||||
}
|
||||
|
||||
if ((has(desc, '[[Get]]') || has(desc, '[[Set]]')) && (has(desc, '[[Value]]') || has(desc, '[[Writable]]'))) {
|
||||
throw new $TypeError('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = ES5;
|
3
node_modules/es-abstract/es6.js
generated
vendored
Normal file
3
node_modules/es-abstract/es6.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = require('./es2015');
|
3
node_modules/es-abstract/es7.js
generated
vendored
Normal file
3
node_modules/es-abstract/es7.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = require('./es2016');
|
49
node_modules/es-abstract/helpers/assertRecord.js
generated
vendored
Normal file
49
node_modules/es-abstract/helpers/assertRecord.js
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('../GetIntrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
|
||||
var has = require('has');
|
||||
|
||||
var predicates = {
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
|
||||
'Property Descriptor': function isPropertyDescriptor(ES, Desc) {
|
||||
if (ES.Type(Desc) !== 'Object') {
|
||||
return false;
|
||||
}
|
||||
var allowed = {
|
||||
'[[Configurable]]': true,
|
||||
'[[Enumerable]]': true,
|
||||
'[[Get]]': true,
|
||||
'[[Set]]': true,
|
||||
'[[Value]]': true,
|
||||
'[[Writable]]': true
|
||||
};
|
||||
|
||||
for (var key in Desc) { // eslint-disable-line
|
||||
if (has(Desc, key) && !allowed[key]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var isData = has(Desc, '[[Value]]');
|
||||
var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]');
|
||||
if (isData && IsAccessor) {
|
||||
throw new $TypeError('Property Descriptors may not be both accessor and data descriptors');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = function assertRecord(ES, recordType, argumentName, value) {
|
||||
var predicate = predicates[recordType];
|
||||
if (typeof predicate !== 'function') {
|
||||
throw new $SyntaxError('unknown record type: ' + recordType);
|
||||
}
|
||||
if (!predicate(ES, value)) {
|
||||
throw new $TypeError(argumentName + ' must be a ' + recordType);
|
||||
}
|
||||
console.log(predicate(ES, value), value);
|
||||
};
|
17
node_modules/es-abstract/helpers/assign.js
generated
vendored
Normal file
17
node_modules/es-abstract/helpers/assign.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
var bind = require('function-bind');
|
||||
var has = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
||||
|
||||
var $assign = Object.assign;
|
||||
|
||||
module.exports = function assign(target, source) {
|
||||
if ($assign) {
|
||||
return $assign(target, source);
|
||||
}
|
||||
|
||||
for (var key in source) {
|
||||
if (has(source, key)) {
|
||||
target[key] = source[key];
|
||||
}
|
||||
}
|
||||
return target;
|
||||
};
|
7
node_modules/es-abstract/helpers/forEach.js
generated
vendored
Normal file
7
node_modules/es-abstract/helpers/forEach.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function forEach(array, callback) {
|
||||
for (var i = 0; i < array.length; i += 1) {
|
||||
callback(array[i], i, array);
|
||||
}
|
||||
};
|
3
node_modules/es-abstract/helpers/isFinite.js
generated
vendored
Normal file
3
node_modules/es-abstract/helpers/isFinite.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
var $isNaN = Number.isNaN || function (a) { return a !== a; };
|
||||
|
||||
module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; };
|
3
node_modules/es-abstract/helpers/isNaN.js
generated
vendored
Normal file
3
node_modules/es-abstract/helpers/isNaN.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = Number.isNaN || function isNaN(a) {
|
||||
return a !== a;
|
||||
};
|
3
node_modules/es-abstract/helpers/isPrimitive.js
generated
vendored
Normal file
3
node_modules/es-abstract/helpers/isPrimitive.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function isPrimitive(value) {
|
||||
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
||||
};
|
4
node_modules/es-abstract/helpers/mod.js
generated
vendored
Normal file
4
node_modules/es-abstract/helpers/mod.js
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = function mod(number, modulo) {
|
||||
var remain = number % modulo;
|
||||
return Math.floor(remain >= 0 ? remain : remain + modulo);
|
||||
};
|
3
node_modules/es-abstract/helpers/sign.js
generated
vendored
Normal file
3
node_modules/es-abstract/helpers/sign.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = function sign(number) {
|
||||
return number >= 0 ? 1 : -1;
|
||||
};
|
24
node_modules/es-abstract/index.js
generated
vendored
Normal file
24
node_modules/es-abstract/index.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict';
|
||||
|
||||
var assign = require('./helpers/assign');
|
||||
|
||||
var ES5 = require('./es5');
|
||||
var ES2015 = require('./es2015');
|
||||
var ES2016 = require('./es2016');
|
||||
var ES2017 = require('./es2017');
|
||||
var ES2018 = require('./es2018');
|
||||
|
||||
var ES = {
|
||||
ES5: ES5,
|
||||
ES6: ES2015,
|
||||
ES2015: ES2015,
|
||||
ES7: ES2016,
|
||||
ES2016: ES2016,
|
||||
ES2017: ES2017,
|
||||
ES2018: ES2018
|
||||
};
|
||||
assign(ES, ES5);
|
||||
delete ES.CheckObjectCoercible; // renamed in ES6 to RequireObjectCoercible
|
||||
assign(ES, ES2015);
|
||||
|
||||
module.exports = ES;
|
5
node_modules/es-abstract/operations/.eslintrc
generated
vendored
Normal file
5
node_modules/es-abstract/operations/.eslintrc
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"rules": {
|
||||
"id-length": 0,
|
||||
},
|
||||
}
|
79
node_modules/es-abstract/operations/2015.js
generated
vendored
Normal file
79
node_modules/es-abstract/operations/2015.js
generated
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
IsPropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type',
|
||||
IsAccessorDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor',
|
||||
IsDataDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor',
|
||||
IsGenericDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-isgenericdescriptor',
|
||||
FromPropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor',
|
||||
ToPropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-topropertydescriptor',
|
||||
CompletePropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-completepropertydescriptor',
|
||||
ToPrimitive: 'https://ecma-international.org/ecma-262/6.0/#sec-toprimitive',
|
||||
ToBoolean: 'https://ecma-international.org/ecma-262/6.0/#sec-toboolean',
|
||||
ToNumber: 'https://ecma-international.org/ecma-262/6.0/#sec-tonumber',
|
||||
ToInteger: 'https://ecma-international.org/ecma-262/6.0/#sec-tointeger',
|
||||
ToInt32: 'https://ecma-international.org/ecma-262/6.0/#sec-toint32',
|
||||
ToUint32: 'https://ecma-international.org/ecma-262/6.0/#sec-touint32',
|
||||
ToInt16: 'https://ecma-international.org/ecma-262/6.0/#sec-toint16',
|
||||
ToUint16: 'https://ecma-international.org/ecma-262/6.0/#sec-touint16',
|
||||
ToInt8: 'https://ecma-international.org/ecma-262/6.0/#sec-toint8',
|
||||
ToUint8: 'https://ecma-international.org/ecma-262/6.0/#sec-touint8',
|
||||
ToUint8Clamp: 'https://ecma-international.org/ecma-262/6.0/#sec-touint8clamp',
|
||||
ToString: 'https://ecma-international.org/ecma-262/6.0/#sec-tostring',
|
||||
ToObject: 'https://ecma-international.org/ecma-262/6.0/#sec-toobject',
|
||||
ToPropertyKey: 'https://ecma-international.org/ecma-262/6.0/#sec-topropertykey',
|
||||
ToLength: 'https://ecma-international.org/ecma-262/6.0/#sec-tolength',
|
||||
CanonicalNumericIndexString: 'https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstring',
|
||||
RequireObjectCoercible: 'https://ecma-international.org/ecma-262/6.0/#sec-requireobjectcoercible',
|
||||
IsArray: 'https://ecma-international.org/ecma-262/6.0/#sec-isarray',
|
||||
IsCallable: 'https://ecma-international.org/ecma-262/6.0/#sec-iscallable',
|
||||
IsConstructor: 'https://ecma-international.org/ecma-262/6.0/#sec-isconstructor',
|
||||
IsExtensible: 'https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o',
|
||||
IsInteger: 'https://ecma-international.org/ecma-262/6.0/#sec-isinteger',
|
||||
IsPropertyKey: 'https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey',
|
||||
IsRegExp: 'https://ecma-international.org/ecma-262/6.0/#sec-isregexp',
|
||||
SameValue: 'https://ecma-international.org/ecma-262/6.0/#sec-samevalue',
|
||||
SameValueZero: 'https://ecma-international.org/ecma-262/6.0/#sec-samevaluezero',
|
||||
Get: 'https://ecma-international.org/ecma-262/6.0/#sec-get-o-p',
|
||||
GetV: 'https://ecma-international.org/ecma-262/6.0/#sec-getv',
|
||||
Set: 'https://ecma-international.org/ecma-262/6.0/#sec-set-o-p-v-throw',
|
||||
CreateDataProperty: 'https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty',
|
||||
CreateMethodProperty: 'https://ecma-international.org/ecma-262/6.0/#sec-createmethodproperty',
|
||||
CreateDataPropertyOrThrow: 'https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow',
|
||||
DefinePropertyOrThrow: 'https://ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow',
|
||||
DeletePropertyOrThrow: 'https://ecma-international.org/ecma-262/6.0/#sec-deletepropertyorthrow',
|
||||
GetMethod: 'https://ecma-international.org/ecma-262/6.0/#sec-getmethod',
|
||||
HasProperty: 'https://ecma-international.org/ecma-262/6.0/#sec-hasproperty',
|
||||
HasOwnProperty: 'https://ecma-international.org/ecma-262/6.0/#sec-hasownproperty',
|
||||
Call: 'https://ecma-international.org/ecma-262/6.0/#sec-call',
|
||||
Construct: 'https://ecma-international.org/ecma-262/6.0/#sec-construct',
|
||||
SetIntegrityLevel: 'https://ecma-international.org/ecma-262/6.0/#sec-setintegritylevel',
|
||||
TestIntegrityLevel: 'https://ecma-international.org/ecma-262/6.0/#sec-testintegritylevel',
|
||||
CreateArrayFromList: 'https://ecma-international.org/ecma-262/6.0/#sec-createarrayfromlist',
|
||||
CreateListFromArrayLike: 'https://ecma-international.org/ecma-262/6.0/#sec-createlistfromarraylike',
|
||||
Invoke: 'https://ecma-international.org/ecma-262/6.0/#sec-invoke',
|
||||
OrdinaryHasInstance: 'https://ecma-international.org/ecma-262/6.0/#sec-ordinaryhasinstance',
|
||||
SpeciesConstructor: 'https://ecma-international.org/ecma-262/6.0/#sec-speciesconstructor',
|
||||
EnumerableOwnNames: 'https://ecma-international.org/ecma-262/6.0/#sec-enumerableownnames',
|
||||
GetIterator: 'https://ecma-international.org/ecma-262/6.0/#sec-getiterator',
|
||||
IteratorNext: 'https://ecma-international.org/ecma-262/6.0/#sec-iteratornext',
|
||||
IteratorComplete: 'https://ecma-international.org/ecma-262/6.0/#sec-iteratorcomplete',
|
||||
IteratorValue: 'https://ecma-international.org/ecma-262/6.0/#sec-iteratorvalue',
|
||||
IteratorStep: 'https://ecma-international.org/ecma-262/6.0/#sec-iteratorstep',
|
||||
IteratorClose: 'https://ecma-international.org/ecma-262/6.0/#sec-iteratorclose',
|
||||
CreateIterResultObject: 'https://ecma-international.org/ecma-262/6.0/#sec-createiterresultobject',
|
||||
CreateListIterator: 'https://ecma-international.org/ecma-262/6.0/#sec-createlistiterator',
|
||||
Type: 'https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types',
|
||||
thisBooleanValue: 'https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-boolean-prototype-object',
|
||||
thisNumberValue: 'https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-number-prototype-object',
|
||||
thisTimeValue: 'https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-date-prototype-object',
|
||||
thisStringValue: 'https://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-string-prototype-object',
|
||||
RegExpExec: 'https://ecma-international.org/ecma-262/6.0/#sec-regexpexec',
|
||||
RegExpBuiltinExec: 'https://ecma-international.org/ecma-262/6.0/#sec-regexpbuiltinexec',
|
||||
IsConcatSpreadable: 'https://ecma-international.org/ecma-262/6.0/#sec-isconcatspreadable',
|
||||
IsPromise: 'https://ecma-international.org/ecma-262/6.0/#sec-ispromise',
|
||||
ArraySpeciesCreate: 'https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate',
|
||||
ObjectCreate: 'https://ecma-international.org/ecma-262/6.0/#sec-objectcreate',
|
||||
AdvanceStringIndex: 'https://ecma-international.org/ecma-262/6.0/#sec-advancestringindex',
|
||||
NormalCompletion: 'https://ecma-international.org/ecma-262/6.0/#sec-normalcompletion'
|
||||
};
|
283
node_modules/es-abstract/operations/2016.js
generated
vendored
Normal file
283
node_modules/es-abstract/operations/2016.js
generated
vendored
Normal file
|
@ -0,0 +1,283 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
IsPropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type', // not actually an abstract op
|
||||
|
||||
abs: 'https://ecma-international.org/ecma-262/7.0/#sec-algorithm-conventions',
|
||||
'Abstract Equality Comparison': 'https://ecma-international.org/ecma-262/7.0/#sec-abstract-equality-comparison',
|
||||
'Abstract Relational Comparison': 'https://ecma-international.org/ecma-262/7.0/#sec-abstract-relational-comparison',
|
||||
AddRestrictedFunctionProperties: 'https://ecma-international.org/ecma-262/7.0/#sec-addrestrictedfunctionproperties',
|
||||
AdvanceStringIndex: 'https://ecma-international.org/ecma-262/7.0/#sec-advancestringindex',
|
||||
AllocateArrayBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-allocatearraybuffer',
|
||||
AllocateTypedArray: 'https://ecma-international.org/ecma-262/7.0/#sec-allocatetypedarray',
|
||||
AllocateTypedArrayBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-allocatetypedarraybuffer',
|
||||
ArrayCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-arraycreate',
|
||||
ArraySetLength: 'https://ecma-international.org/ecma-262/7.0/#sec-arraysetlength',
|
||||
ArraySpeciesCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-arrayspeciescreate',
|
||||
BlockDeclarationInstantiation: 'https://ecma-international.org/ecma-262/7.0/#sec-blockdeclarationinstantiation',
|
||||
BoundFunctionCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-boundfunctioncreate',
|
||||
Call: 'https://ecma-international.org/ecma-262/7.0/#sec-call',
|
||||
Canonicalize: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-canonicalize-ch',
|
||||
CanonicalNumericIndexString: 'https://ecma-international.org/ecma-262/7.0/#sec-canonicalnumericindexstring',
|
||||
CharacterRange: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-characterrange-abstract-operation',
|
||||
CharacterRangeOrUnion: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation',
|
||||
CharacterSetMatcher: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation',
|
||||
CloneArrayBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-clonearraybuffer',
|
||||
CompletePropertyDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-completepropertydescriptor',
|
||||
Completion: 'https://ecma-international.org/ecma-262/7.0/#sec-completion-record-specification-type',
|
||||
Construct: 'https://ecma-international.org/ecma-262/7.0/#sec-construct',
|
||||
CopyDataBlockBytes: 'https://ecma-international.org/ecma-262/7.0/#sec-copydatablockbytes',
|
||||
CreateArrayFromList: 'https://ecma-international.org/ecma-262/7.0/#sec-createarrayfromlist',
|
||||
CreateArrayIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-createarrayiterator',
|
||||
CreateBuiltinFunction: 'https://ecma-international.org/ecma-262/7.0/#sec-createbuiltinfunction',
|
||||
CreateByteDataBlock: 'https://ecma-international.org/ecma-262/7.0/#sec-createbytedatablock',
|
||||
CreateDataProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-createdataproperty',
|
||||
CreateDataPropertyOrThrow: 'https://ecma-international.org/ecma-262/7.0/#sec-createdatapropertyorthrow',
|
||||
CreateDynamicFunction: 'https://ecma-international.org/ecma-262/7.0/#sec-createdynamicfunction',
|
||||
CreateHTML: 'https://ecma-international.org/ecma-262/7.0/#sec-createhtml',
|
||||
CreateIntrinsics: 'https://ecma-international.org/ecma-262/7.0/#sec-createintrinsics',
|
||||
CreateIterResultObject: 'https://ecma-international.org/ecma-262/7.0/#sec-createiterresultobject',
|
||||
CreateListFromArrayLike: 'https://ecma-international.org/ecma-262/7.0/#sec-createlistfromarraylike',
|
||||
CreateListIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-createlistiterator',
|
||||
CreateMapIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-createmapiterator',
|
||||
CreateMappedArgumentsObject: 'https://ecma-international.org/ecma-262/7.0/#sec-createmappedargumentsobject',
|
||||
CreateMethodProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-createmethodproperty',
|
||||
CreatePerIterationEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-createperiterationenvironment',
|
||||
CreateRealm: 'https://ecma-international.org/ecma-262/7.0/#sec-createrealm',
|
||||
CreateResolvingFunctions: 'https://ecma-international.org/ecma-262/7.0/#sec-createresolvingfunctions',
|
||||
CreateSetIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-createsetiterator',
|
||||
CreateStringIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-createstringiterator',
|
||||
CreateUnmappedArgumentsObject: 'https://ecma-international.org/ecma-262/7.0/#sec-createunmappedargumentsobject',
|
||||
DateFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-date-number',
|
||||
Day: 'https://ecma-international.org/ecma-262/7.0/#sec-day-number-and-time-within-day',
|
||||
DayFromYear: 'https://ecma-international.org/ecma-262/7.0/#sec-year-number',
|
||||
DaysInYear: 'https://ecma-international.org/ecma-262/7.0/#sec-year-number',
|
||||
DayWithinYear: 'https://ecma-international.org/ecma-262/7.0/#sec-month-number',
|
||||
Decode: 'https://ecma-international.org/ecma-262/7.0/#sec-decode',
|
||||
DefinePropertyOrThrow: 'https://ecma-international.org/ecma-262/7.0/#sec-definepropertyorthrow',
|
||||
DeletePropertyOrThrow: 'https://ecma-international.org/ecma-262/7.0/#sec-deletepropertyorthrow',
|
||||
DetachArrayBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-detacharraybuffer',
|
||||
Encode: 'https://ecma-international.org/ecma-262/7.0/#sec-encode',
|
||||
EnqueueJob: 'https://ecma-international.org/ecma-262/7.0/#sec-enqueuejob',
|
||||
EnumerableOwnNames: 'https://ecma-international.org/ecma-262/7.0/#sec-enumerableownnames',
|
||||
EnumerateObjectProperties: 'https://ecma-international.org/ecma-262/7.0/#sec-enumerate-object-properties',
|
||||
EscapeRegExpPattern: 'https://ecma-international.org/ecma-262/7.0/#sec-escaperegexppattern',
|
||||
EvalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/7.0/#sec-evaldeclarationinstantiation',
|
||||
EvaluateCall: 'https://ecma-international.org/ecma-262/7.0/#sec-evaluatecall',
|
||||
EvaluateDirectCall: 'https://ecma-international.org/ecma-262/7.0/#sec-evaluatedirectcall',
|
||||
EvaluateNew: 'https://ecma-international.org/ecma-262/7.0/#sec-evaluatenew',
|
||||
floor: 'https://ecma-international.org/ecma-262/7.0/#sec-algorithm-conventions',
|
||||
ForBodyEvaluation: 'https://ecma-international.org/ecma-262/7.0/#sec-forbodyevaluation',
|
||||
'ForIn/OfBodyEvaluation': 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset',
|
||||
'ForIn/OfHeadEvaluation': 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind',
|
||||
FromPropertyDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-frompropertydescriptor',
|
||||
FulfillPromise: 'https://ecma-international.org/ecma-262/7.0/#sec-fulfillpromise',
|
||||
FunctionAllocate: 'https://ecma-international.org/ecma-262/7.0/#sec-functionallocate',
|
||||
FunctionCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-functioncreate',
|
||||
FunctionDeclarationInstantiation: 'https://ecma-international.org/ecma-262/7.0/#sec-functiondeclarationinstantiation',
|
||||
FunctionInitialize: 'https://ecma-international.org/ecma-262/7.0/#sec-functioninitialize',
|
||||
GeneratorFunctionCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-generatorfunctioncreate',
|
||||
GeneratorResume: 'https://ecma-international.org/ecma-262/7.0/#sec-generatorresume',
|
||||
GeneratorResumeAbrupt: 'https://ecma-international.org/ecma-262/7.0/#sec-generatorresumeabrupt',
|
||||
GeneratorStart: 'https://ecma-international.org/ecma-262/7.0/#sec-generatorstart',
|
||||
GeneratorValidate: 'https://ecma-international.org/ecma-262/7.0/#sec-generatorvalidate',
|
||||
GeneratorYield: 'https://ecma-international.org/ecma-262/7.0/#sec-generatoryield',
|
||||
Get: 'https://ecma-international.org/ecma-262/7.0/#sec-get-o-p',
|
||||
GetActiveScriptOrModule: 'https://ecma-international.org/ecma-262/7.0/#sec-getactivescriptormodule',
|
||||
GetFunctionRealm: 'https://ecma-international.org/ecma-262/7.0/#sec-getfunctionrealm',
|
||||
GetGlobalObject: 'https://ecma-international.org/ecma-262/7.0/#sec-getglobalobject',
|
||||
GetIdentifierReference: 'https://ecma-international.org/ecma-262/7.0/#sec-getidentifierreference',
|
||||
GetIterator: 'https://ecma-international.org/ecma-262/7.0/#sec-getiterator',
|
||||
GetMethod: 'https://ecma-international.org/ecma-262/7.0/#sec-getmethod',
|
||||
GetModuleNamespace: 'https://ecma-international.org/ecma-262/7.0/#sec-getmodulenamespace',
|
||||
GetNewTarget: 'https://ecma-international.org/ecma-262/7.0/#sec-getnewtarget',
|
||||
GetOwnPropertyKeys: 'https://ecma-international.org/ecma-262/7.0/#sec-getownpropertykeys',
|
||||
GetPrototypeFromConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-getprototypefromconstructor',
|
||||
GetSubstitution: 'https://ecma-international.org/ecma-262/7.0/#sec-getsubstitution',
|
||||
GetSuperConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-getsuperconstructor',
|
||||
GetTemplateObject: 'https://ecma-international.org/ecma-262/7.0/#sec-gettemplateobject',
|
||||
GetThisEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-getthisenvironment',
|
||||
GetThisValue: 'https://ecma-international.org/ecma-262/7.0/#sec-getthisvalue',
|
||||
GetV: 'https://ecma-international.org/ecma-262/7.0/#sec-getv',
|
||||
GetValue: 'https://ecma-international.org/ecma-262/7.0/#sec-getvalue',
|
||||
GetValueFromBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-getvaluefrombuffer',
|
||||
GetViewValue: 'https://ecma-international.org/ecma-262/7.0/#sec-getviewvalue',
|
||||
GlobalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/7.0/#sec-globaldeclarationinstantiation',
|
||||
HasOwnProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-hasownproperty',
|
||||
HasProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-hasproperty',
|
||||
HostPromiseRejectionTracker: 'https://ecma-international.org/ecma-262/7.0/#sec-host-promise-rejection-tracker',
|
||||
HostReportErrors: 'https://ecma-international.org/ecma-262/7.0/#sec-host-report-errors',
|
||||
HostResolveImportedModule: 'https://ecma-international.org/ecma-262/7.0/#sec-hostresolveimportedmodule',
|
||||
HourFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
HoursPerDay: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
IfAbruptRejectPromise: 'https://ecma-international.org/ecma-262/7.0/#sec-ifabruptrejectpromise',
|
||||
ImportedLocalNames: 'https://ecma-international.org/ecma-262/7.0/#sec-importedlocalnames',
|
||||
InitializeBoundName: 'https://ecma-international.org/ecma-262/7.0/#sec-initializeboundname',
|
||||
InitializeHostDefinedRealm: 'https://ecma-international.org/ecma-262/7.0/#sec-initializehostdefinedrealm',
|
||||
InitializeReferencedBinding: 'https://ecma-international.org/ecma-262/7.0/#sec-initializereferencedbinding',
|
||||
InLeapYear: 'https://ecma-international.org/ecma-262/7.0/#sec-year-number',
|
||||
InstanceofOperator: 'https://ecma-international.org/ecma-262/7.0/#sec-instanceofoperator',
|
||||
IntegerIndexedElementGet: 'https://ecma-international.org/ecma-262/7.0/#sec-integerindexedelementget',
|
||||
IntegerIndexedElementSet: 'https://ecma-international.org/ecma-262/7.0/#sec-integerindexedelementset',
|
||||
IntegerIndexedObjectCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-integerindexedobjectcreate',
|
||||
InternalizeJSONProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-internalizejsonproperty',
|
||||
Invoke: 'https://ecma-international.org/ecma-262/7.0/#sec-invoke',
|
||||
IsAccessorDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-isaccessordescriptor',
|
||||
IsAnonymousFunctionDefinition: 'https://ecma-international.org/ecma-262/7.0/#sec-isanonymousfunctiondefinition',
|
||||
IsArray: 'https://ecma-international.org/ecma-262/7.0/#sec-isarray',
|
||||
IsCallable: 'https://ecma-international.org/ecma-262/7.0/#sec-iscallable',
|
||||
IsCompatiblePropertyDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-iscompatiblepropertydescriptor',
|
||||
IsConcatSpreadable: 'https://ecma-international.org/ecma-262/7.0/#sec-isconcatspreadable',
|
||||
IsConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-isconstructor',
|
||||
IsDataDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-isdatadescriptor',
|
||||
IsDetachedBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-isdetachedbuffer',
|
||||
IsExtensible: 'https://ecma-international.org/ecma-262/7.0/#sec-isextensible-o',
|
||||
IsGenericDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-isgenericdescriptor',
|
||||
IsInTailPosition: 'https://ecma-international.org/ecma-262/7.0/#sec-isintailposition',
|
||||
IsInteger: 'https://ecma-international.org/ecma-262/7.0/#sec-isinteger',
|
||||
IsLabelledFunction: 'https://ecma-international.org/ecma-262/7.0/#sec-islabelledfunction',
|
||||
IsPromise: 'https://ecma-international.org/ecma-262/7.0/#sec-ispromise',
|
||||
IsPropertyKey: 'https://ecma-international.org/ecma-262/7.0/#sec-ispropertykey',
|
||||
IsRegExp: 'https://ecma-international.org/ecma-262/7.0/#sec-isregexp',
|
||||
IsWordChar: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-iswordchar-abstract-operation',
|
||||
IterableToArrayLike: 'https://ecma-international.org/ecma-262/7.0/#sec-iterabletoarraylike',
|
||||
IteratorClose: 'https://ecma-international.org/ecma-262/7.0/#sec-iteratorclose',
|
||||
IteratorComplete: 'https://ecma-international.org/ecma-262/7.0/#sec-iteratorcomplete',
|
||||
IteratorNext: 'https://ecma-international.org/ecma-262/7.0/#sec-iteratornext',
|
||||
IteratorStep: 'https://ecma-international.org/ecma-262/7.0/#sec-iteratorstep',
|
||||
IteratorValue: 'https://ecma-international.org/ecma-262/7.0/#sec-iteratorvalue',
|
||||
LocalTime: 'https://ecma-international.org/ecma-262/7.0/#sec-localtime',
|
||||
LoopContinues: 'https://ecma-international.org/ecma-262/7.0/#sec-loopcontinues',
|
||||
MakeArgGetter: 'https://ecma-international.org/ecma-262/7.0/#sec-makearggetter',
|
||||
MakeArgSetter: 'https://ecma-international.org/ecma-262/7.0/#sec-makeargsetter',
|
||||
MakeClassConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-makeclassconstructor',
|
||||
MakeConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-makeconstructor',
|
||||
MakeDate: 'https://ecma-international.org/ecma-262/7.0/#sec-makedate',
|
||||
MakeDay: 'https://ecma-international.org/ecma-262/7.0/#sec-makeday',
|
||||
MakeMethod: 'https://ecma-international.org/ecma-262/7.0/#sec-makemethod',
|
||||
MakeSuperPropertyReference: 'https://ecma-international.org/ecma-262/7.0/#sec-makesuperpropertyreference',
|
||||
MakeTime: 'https://ecma-international.org/ecma-262/7.0/#sec-maketime',
|
||||
max: 'https://ecma-international.org/ecma-262/7.0/#sec-algorithm-conventions',
|
||||
min: 'https://ecma-international.org/ecma-262/7.0/#sec-algorithm-conventions',
|
||||
MinFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
MinutesPerHour: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
ModuleNamespaceCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-modulenamespacecreate',
|
||||
modulo: 'https://ecma-international.org/ecma-262/7.0/#sec-algorithm-conventions',
|
||||
MonthFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-month-number',
|
||||
msFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
msPerDay: 'https://ecma-international.org/ecma-262/7.0/#sec-day-number-and-time-within-day',
|
||||
msPerHour: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
msPerMinute: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
msPerSecond: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
NewDeclarativeEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-newdeclarativeenvironment',
|
||||
NewFunctionEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-newfunctionenvironment',
|
||||
NewGlobalEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-newglobalenvironment',
|
||||
NewModuleEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-newmoduleenvironment',
|
||||
NewObjectEnvironment: 'https://ecma-international.org/ecma-262/7.0/#sec-newobjectenvironment',
|
||||
NewPromiseCapability: 'https://ecma-international.org/ecma-262/7.0/#sec-newpromisecapability',
|
||||
NextJob: 'https://ecma-international.org/ecma-262/7.0/#sec-nextjob-result',
|
||||
NormalCompletion: 'https://ecma-international.org/ecma-262/7.0/#sec-normalcompletion',
|
||||
ObjectCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-objectcreate',
|
||||
ObjectDefineProperties: 'https://ecma-international.org/ecma-262/7.0/#sec-objectdefineproperties',
|
||||
OrdinaryCallBindThis: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarycallbindthis',
|
||||
OrdinaryCallEvaluateBody: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarycallevaluatebody',
|
||||
OrdinaryCreateFromConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarycreatefromconstructor',
|
||||
OrdinaryDefineOwnProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarydefineownproperty',
|
||||
OrdinaryDelete: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarydelete',
|
||||
OrdinaryGet: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryget',
|
||||
OrdinaryGetOwnProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarygetownproperty',
|
||||
OrdinaryGetPrototypeOf: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarygetprototypeof',
|
||||
OrdinaryHasInstance: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryhasinstance',
|
||||
OrdinaryHasProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryhasproperty',
|
||||
OrdinaryIsExtensible: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryisextensible',
|
||||
OrdinaryOwnPropertyKeys: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryownpropertykeys',
|
||||
OrdinaryPreventExtensions: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarypreventextensions',
|
||||
OrdinarySet: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinaryset',
|
||||
OrdinarySetPrototypeOf: 'https://ecma-international.org/ecma-262/7.0/#sec-ordinarysetprototypeof',
|
||||
ParseModule: 'https://ecma-international.org/ecma-262/7.0/#sec-parsemodule',
|
||||
ParseScript: 'https://ecma-international.org/ecma-262/7.0/#sec-parse-script',
|
||||
PerformEval: 'https://ecma-international.org/ecma-262/7.0/#sec-performeval',
|
||||
PerformPromiseAll: 'https://ecma-international.org/ecma-262/7.0/#sec-performpromiseall',
|
||||
PerformPromiseRace: 'https://ecma-international.org/ecma-262/7.0/#sec-performpromiserace',
|
||||
PerformPromiseThen: 'https://ecma-international.org/ecma-262/7.0/#sec-performpromisethen',
|
||||
PrepareForOrdinaryCall: 'https://ecma-international.org/ecma-262/7.0/#sec-prepareforordinarycall',
|
||||
PrepareForTailCall: 'https://ecma-international.org/ecma-262/7.0/#sec-preparefortailcall',
|
||||
PromiseReactionJob: 'https://ecma-international.org/ecma-262/7.0/#sec-promisereactionjob',
|
||||
PromiseResolveThenableJob: 'https://ecma-international.org/ecma-262/7.0/#sec-promiseresolvethenablejob',
|
||||
ProxyCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-proxycreate',
|
||||
PutValue: 'https://ecma-international.org/ecma-262/7.0/#sec-putvalue',
|
||||
QuoteJSONString: 'https://ecma-international.org/ecma-262/7.0/#sec-quotejsonstring',
|
||||
RegExpAlloc: 'https://ecma-international.org/ecma-262/7.0/#sec-regexpalloc',
|
||||
RegExpBuiltinExec: 'https://ecma-international.org/ecma-262/7.0/#sec-regexpbuiltinexec',
|
||||
RegExpCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-regexpcreate',
|
||||
RegExpExec: 'https://ecma-international.org/ecma-262/7.0/#sec-regexpexec',
|
||||
RegExpInitialize: 'https://ecma-international.org/ecma-262/7.0/#sec-regexpinitialize',
|
||||
RejectPromise: 'https://ecma-international.org/ecma-262/7.0/#sec-rejectpromise',
|
||||
RepeatMatcher: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-repeatmatcher-abstract-operation',
|
||||
RequireObjectCoercible: 'https://ecma-international.org/ecma-262/7.0/#sec-requireobjectcoercible',
|
||||
ResolveBinding: 'https://ecma-international.org/ecma-262/7.0/#sec-resolvebinding',
|
||||
ResolveThisBinding: 'https://ecma-international.org/ecma-262/7.0/#sec-resolvethisbinding',
|
||||
ReturnIfAbrupt: 'https://ecma-international.org/ecma-262/7.0/#sec-returnifabrupt',
|
||||
SameValue: 'https://ecma-international.org/ecma-262/7.0/#sec-samevalue',
|
||||
SameValueNonNumber: 'https://ecma-international.org/ecma-262/7.0/#sec-samevaluenonnumber',
|
||||
SameValueZero: 'https://ecma-international.org/ecma-262/7.0/#sec-samevaluezero',
|
||||
ScriptEvaluation: 'https://ecma-international.org/ecma-262/7.0/#sec-runtime-semantics-scriptevaluation',
|
||||
ScriptEvaluationJob: 'https://ecma-international.org/ecma-262/7.0/#sec-scriptevaluationjob',
|
||||
SecFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
SecondsPerMinute: 'https://ecma-international.org/ecma-262/7.0/#sec-hours-minutes-second-and-milliseconds',
|
||||
SerializeJSONArray: 'https://ecma-international.org/ecma-262/7.0/#sec-serializejsonarray',
|
||||
SerializeJSONObject: 'https://ecma-international.org/ecma-262/7.0/#sec-serializejsonobject',
|
||||
SerializeJSONProperty: 'https://ecma-international.org/ecma-262/7.0/#sec-serializejsonproperty',
|
||||
Set: 'https://ecma-international.org/ecma-262/7.0/#sec-set-o-p-v-throw',
|
||||
SetDefaultGlobalBindings: 'https://ecma-international.org/ecma-262/7.0/#sec-setdefaultglobalbindings',
|
||||
SetFunctionName: 'https://ecma-international.org/ecma-262/7.0/#sec-setfunctionname',
|
||||
SetIntegrityLevel: 'https://ecma-international.org/ecma-262/7.0/#sec-setintegritylevel',
|
||||
SetRealmGlobalObject: 'https://ecma-international.org/ecma-262/7.0/#sec-setrealmglobalobject',
|
||||
SetValueInBuffer: 'https://ecma-international.org/ecma-262/7.0/#sec-setvalueinbuffer',
|
||||
SetViewValue: 'https://ecma-international.org/ecma-262/7.0/#sec-setviewvalue',
|
||||
SortCompare: 'https://ecma-international.org/ecma-262/7.0/#sec-sortcompare',
|
||||
SpeciesConstructor: 'https://ecma-international.org/ecma-262/7.0/#sec-speciesconstructor',
|
||||
SplitMatch: 'https://ecma-international.org/ecma-262/7.0/#sec-splitmatch',
|
||||
'Strict Equality Comparison': 'https://ecma-international.org/ecma-262/7.0/#sec-strict-equality-comparison',
|
||||
StringCreate: 'https://ecma-international.org/ecma-262/7.0/#sec-stringcreate',
|
||||
SymbolDescriptiveString: 'https://ecma-international.org/ecma-262/7.0/#sec-symboldescriptivestring',
|
||||
TestIntegrityLevel: 'https://ecma-international.org/ecma-262/7.0/#sec-testintegritylevel',
|
||||
thisBooleanValue: 'https://ecma-international.org/ecma-262/7.0/#sec-thisbooleanvalue',
|
||||
thisNumberValue: 'https://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-number-prototype-object',
|
||||
thisStringValue: 'https://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-string-prototype-object',
|
||||
thisTimeValue: 'https://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-date-prototype-object',
|
||||
TimeClip: 'https://ecma-international.org/ecma-262/7.0/#sec-timeclip',
|
||||
TimeFromYear: 'https://ecma-international.org/ecma-262/7.0/#sec-year-number',
|
||||
TimeWithinDay: 'https://ecma-international.org/ecma-262/7.0/#sec-day-number-and-time-within-day',
|
||||
ToBoolean: 'https://ecma-international.org/ecma-262/7.0/#sec-toboolean',
|
||||
ToDateString: 'https://ecma-international.org/ecma-262/7.0/#sec-todatestring',
|
||||
ToInt16: 'https://ecma-international.org/ecma-262/7.0/#sec-toint16',
|
||||
ToInt32: 'https://ecma-international.org/ecma-262/7.0/#sec-toint32',
|
||||
ToInt8: 'https://ecma-international.org/ecma-262/7.0/#sec-toint8',
|
||||
ToInteger: 'https://ecma-international.org/ecma-262/7.0/#sec-tointeger',
|
||||
ToLength: 'https://ecma-international.org/ecma-262/7.0/#sec-tolength',
|
||||
ToNumber: 'https://ecma-international.org/ecma-262/7.0/#sec-tonumber',
|
||||
ToObject: 'https://ecma-international.org/ecma-262/7.0/#sec-toobject',
|
||||
TopLevelModuleEvaluationJob: 'https://ecma-international.org/ecma-262/7.0/#sec-toplevelmoduleevaluationjob',
|
||||
ToPrimitive: 'https://ecma-international.org/ecma-262/7.0/#sec-toprimitive',
|
||||
ToPropertyDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-topropertydescriptor',
|
||||
ToPropertyKey: 'https://ecma-international.org/ecma-262/7.0/#sec-topropertykey',
|
||||
ToString: 'https://ecma-international.org/ecma-262/7.0/#sec-tostring',
|
||||
'ToString Applied to the Number Type': 'https://ecma-international.org/ecma-262/7.0/#sec-tostring-applied-to-the-number-type',
|
||||
ToUint16: 'https://ecma-international.org/ecma-262/7.0/#sec-touint16',
|
||||
ToUint32: 'https://ecma-international.org/ecma-262/7.0/#sec-touint32',
|
||||
ToUint8: 'https://ecma-international.org/ecma-262/7.0/#sec-touint8',
|
||||
ToUint8Clamp: 'https://ecma-international.org/ecma-262/7.0/#sec-touint8clamp',
|
||||
TriggerPromiseReactions: 'https://ecma-international.org/ecma-262/7.0/#sec-triggerpromisereactions',
|
||||
Type: 'https://ecma-international.org/ecma-262/7.0/#sec-ecmascript-data-types-and-values',
|
||||
TypedArrayCreate: 'https://ecma-international.org/ecma-262/7.0/#typedarray-create',
|
||||
TypedArraySpeciesCreate: 'https://ecma-international.org/ecma-262/7.0/#typedarray-species-create',
|
||||
UpdateEmpty: 'https://ecma-international.org/ecma-262/7.0/#sec-updateempty',
|
||||
UTC: 'https://ecma-international.org/ecma-262/7.0/#sec-utc-t',
|
||||
UTF16Decode: 'https://ecma-international.org/ecma-262/7.0/#sec-utf16decode',
|
||||
UTF16Encoding: 'https://ecma-international.org/ecma-262/7.0/#sec-utf16encoding',
|
||||
ValidateAndApplyPropertyDescriptor: 'https://ecma-international.org/ecma-262/7.0/#sec-validateandapplypropertydescriptor',
|
||||
ValidateTypedArray: 'https://ecma-international.org/ecma-262/7.0/#sec-validatetypedarray',
|
||||
WeekDay: 'https://ecma-international.org/ecma-262/7.0/#sec-week-day',
|
||||
YearFromTime: 'https://ecma-international.org/ecma-262/7.0/#sec-year-number'
|
||||
};
|
331
node_modules/es-abstract/operations/2017.js
generated
vendored
Normal file
331
node_modules/es-abstract/operations/2017.js
generated
vendored
Normal file
|
@ -0,0 +1,331 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
IsPropertyDescriptor: 'https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type', // not actually an abstract op
|
||||
|
||||
abs: 'https://ecma-international.org/ecma-262/8.0/#eqn-abs',
|
||||
'Abstract Equality Comparison': 'https://ecma-international.org/ecma-262/8.0/#sec-abstract-equality-comparison',
|
||||
'Abstract Relational Comparison': 'https://ecma-international.org/ecma-262/8.0/#sec-abstract-relational-comparison',
|
||||
AddRestrictedFunctionProperties: 'https://ecma-international.org/ecma-262/8.0/#sec-addrestrictedfunctionproperties',
|
||||
AddWaiter: 'https://ecma-international.org/ecma-262/8.0/#sec-addwaiter',
|
||||
AdvanceStringIndex: 'https://ecma-international.org/ecma-262/8.0/#sec-advancestringindex',
|
||||
'agent-order': 'https://ecma-international.org/ecma-262/8.0/#sec-agent-order',
|
||||
AgentCanSuspend: 'https://ecma-international.org/ecma-262/8.0/#sec-agentcansuspend',
|
||||
AgentSignifier: 'https://ecma-international.org/ecma-262/8.0/#sec-agentsignifier',
|
||||
AllocateArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-allocatearraybuffer',
|
||||
AllocateSharedArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-allocatesharedarraybuffer',
|
||||
AllocateTypedArray: 'https://ecma-international.org/ecma-262/8.0/#sec-allocatetypedarray',
|
||||
AllocateTypedArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-allocatetypedarraybuffer',
|
||||
ArrayCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-arraycreate',
|
||||
ArraySetLength: 'https://ecma-international.org/ecma-262/8.0/#sec-arraysetlength',
|
||||
ArraySpeciesCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-arrayspeciescreate',
|
||||
AsyncFunctionAwait: 'https://ecma-international.org/ecma-262/8.0/#sec-async-functions-abstract-operations-async-function-await',
|
||||
AsyncFunctionCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-async-functions-abstract-operations-async-function-create',
|
||||
AsyncFunctionStart: 'https://ecma-international.org/ecma-262/8.0/#sec-async-functions-abstract-operations-async-function-start',
|
||||
AtomicLoad: 'https://ecma-international.org/ecma-262/8.0/#sec-atomicload',
|
||||
AtomicReadModifyWrite: 'https://ecma-international.org/ecma-262/8.0/#sec-atomicreadmodifywrite',
|
||||
BlockDeclarationInstantiation: 'https://ecma-international.org/ecma-262/8.0/#sec-blockdeclarationinstantiation',
|
||||
BoundFunctionCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-boundfunctioncreate',
|
||||
Call: 'https://ecma-international.org/ecma-262/8.0/#sec-call',
|
||||
Canonicalize: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-canonicalize-ch',
|
||||
CanonicalNumericIndexString: 'https://ecma-international.org/ecma-262/8.0/#sec-canonicalnumericindexstring',
|
||||
CharacterRange: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-characterrange-abstract-operation',
|
||||
CharacterRangeOrUnion: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation',
|
||||
CharacterSetMatcher: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation',
|
||||
CloneArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-clonearraybuffer',
|
||||
CompletePropertyDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-completepropertydescriptor',
|
||||
Completion: 'https://ecma-international.org/ecma-262/8.0/#sec-completion-record-specification-type',
|
||||
ComposeWriteEventBytes: 'https://ecma-international.org/ecma-262/8.0/#sec-composewriteeventbytes',
|
||||
Construct: 'https://ecma-international.org/ecma-262/8.0/#sec-construct',
|
||||
CopyDataBlockBytes: 'https://ecma-international.org/ecma-262/8.0/#sec-copydatablockbytes',
|
||||
CreateArrayFromList: 'https://ecma-international.org/ecma-262/8.0/#sec-createarrayfromlist',
|
||||
CreateArrayIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-createarrayiterator',
|
||||
CreateBuiltinFunction: 'https://ecma-international.org/ecma-262/8.0/#sec-createbuiltinfunction',
|
||||
CreateByteDataBlock: 'https://ecma-international.org/ecma-262/8.0/#sec-createbytedatablock',
|
||||
CreateDataProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-createdataproperty',
|
||||
CreateDataPropertyOrThrow: 'https://ecma-international.org/ecma-262/8.0/#sec-createdatapropertyorthrow',
|
||||
CreateDynamicFunction: 'https://ecma-international.org/ecma-262/8.0/#sec-createdynamicfunction',
|
||||
CreateHTML: 'https://ecma-international.org/ecma-262/8.0/#sec-createhtml',
|
||||
CreateIntrinsics: 'https://ecma-international.org/ecma-262/8.0/#sec-createintrinsics',
|
||||
CreateIterResultObject: 'https://ecma-international.org/ecma-262/8.0/#sec-createiterresultobject',
|
||||
CreateListFromArrayLike: 'https://ecma-international.org/ecma-262/8.0/#sec-createlistfromarraylike',
|
||||
CreateListIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-createlistiterator',
|
||||
CreateMapIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-createmapiterator',
|
||||
CreateMappedArgumentsObject: 'https://ecma-international.org/ecma-262/8.0/#sec-createmappedargumentsobject',
|
||||
CreateMethodProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-createmethodproperty',
|
||||
CreatePerIterationEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-createperiterationenvironment',
|
||||
CreateRealm: 'https://ecma-international.org/ecma-262/8.0/#sec-createrealm',
|
||||
CreateResolvingFunctions: 'https://ecma-international.org/ecma-262/8.0/#sec-createresolvingfunctions',
|
||||
CreateSetIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-createsetiterator',
|
||||
CreateSharedByteDataBlock: 'https://ecma-international.org/ecma-262/8.0/#sec-createsharedbytedatablock',
|
||||
CreateStringIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-createstringiterator',
|
||||
CreateUnmappedArgumentsObject: 'https://ecma-international.org/ecma-262/8.0/#sec-createunmappedargumentsobject',
|
||||
DateFromTime: 'https://ecma-international.org/ecma-262/8.0/#sec-date-number',
|
||||
Day: 'https://ecma-international.org/ecma-262/8.0/#eqn-Day',
|
||||
DayFromYear: 'https://ecma-international.org/ecma-262/8.0/#eqn-DaysFromYear',
|
||||
DaysInYear: 'https://ecma-international.org/ecma-262/8.0/#eqn-DaysInYear',
|
||||
DayWithinYear: 'https://ecma-international.org/ecma-262/8.0/#eqn-DayWithinYear',
|
||||
Decode: 'https://ecma-international.org/ecma-262/8.0/#sec-decode',
|
||||
DefinePropertyOrThrow: 'https://ecma-international.org/ecma-262/8.0/#sec-definepropertyorthrow',
|
||||
DeletePropertyOrThrow: 'https://ecma-international.org/ecma-262/8.0/#sec-deletepropertyorthrow',
|
||||
DetachArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-detacharraybuffer',
|
||||
Encode: 'https://ecma-international.org/ecma-262/8.0/#sec-encode',
|
||||
EnqueueJob: 'https://ecma-international.org/ecma-262/8.0/#sec-enqueuejob',
|
||||
EnterCriticalSection: 'https://ecma-international.org/ecma-262/8.0/#sec-entercriticalsection',
|
||||
EnumerableOwnProperties: 'https://ecma-international.org/ecma-262/8.0/#sec-enumerableownproperties',
|
||||
EnumerateObjectProperties: 'https://ecma-international.org/ecma-262/8.0/#sec-enumerate-object-properties',
|
||||
EscapeRegExpPattern: 'https://ecma-international.org/ecma-262/8.0/#sec-escaperegexppattern',
|
||||
EvalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/8.0/#sec-evaldeclarationinstantiation',
|
||||
EvaluateCall: 'https://ecma-international.org/ecma-262/8.0/#sec-evaluatecall',
|
||||
EvaluateDirectCall: 'https://ecma-international.org/ecma-262/8.0/#sec-evaluatedirectcall',
|
||||
EvaluateNew: 'https://ecma-international.org/ecma-262/8.0/#sec-evaluatenew',
|
||||
EventSet: 'https://ecma-international.org/ecma-262/8.0/#sec-event-set',
|
||||
floor: 'https://ecma-international.org/ecma-262/8.0/#eqn-floor',
|
||||
ForBodyEvaluation: 'https://ecma-international.org/ecma-262/8.0/#sec-forbodyevaluation',
|
||||
'ForIn/OfBodyEvaluation': 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset',
|
||||
'ForIn/OfHeadEvaluation': 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind',
|
||||
FromPropertyDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-frompropertydescriptor',
|
||||
FulfillPromise: 'https://ecma-international.org/ecma-262/8.0/#sec-fulfillpromise',
|
||||
FunctionAllocate: 'https://ecma-international.org/ecma-262/8.0/#sec-functionallocate',
|
||||
FunctionCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-functioncreate',
|
||||
FunctionDeclarationInstantiation: 'https://ecma-international.org/ecma-262/8.0/#sec-functiondeclarationinstantiation',
|
||||
FunctionInitialize: 'https://ecma-international.org/ecma-262/8.0/#sec-functioninitialize',
|
||||
GeneratorFunctionCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-generatorfunctioncreate',
|
||||
GeneratorResume: 'https://ecma-international.org/ecma-262/8.0/#sec-generatorresume',
|
||||
GeneratorResumeAbrupt: 'https://ecma-international.org/ecma-262/8.0/#sec-generatorresumeabrupt',
|
||||
GeneratorStart: 'https://ecma-international.org/ecma-262/8.0/#sec-generatorstart',
|
||||
GeneratorValidate: 'https://ecma-international.org/ecma-262/8.0/#sec-generatorvalidate',
|
||||
GeneratorYield: 'https://ecma-international.org/ecma-262/8.0/#sec-generatoryield',
|
||||
Get: 'https://ecma-international.org/ecma-262/8.0/#sec-get-o-p',
|
||||
GetActiveScriptOrModule: 'https://ecma-international.org/ecma-262/8.0/#sec-getactivescriptormodule',
|
||||
GetBase: 'https://ecma-international.org/ecma-262/8.0/#ao-getbase',
|
||||
GetFunctionRealm: 'https://ecma-international.org/ecma-262/8.0/#sec-getfunctionrealm',
|
||||
GetGlobalObject: 'https://ecma-international.org/ecma-262/8.0/#sec-getglobalobject',
|
||||
GetIdentifierReference: 'https://ecma-international.org/ecma-262/8.0/#sec-getidentifierreference',
|
||||
GetIterator: 'https://ecma-international.org/ecma-262/8.0/#sec-getiterator',
|
||||
GetMethod: 'https://ecma-international.org/ecma-262/8.0/#sec-getmethod',
|
||||
GetModifySetValueInBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-getmodifysetvalueinbuffer',
|
||||
GetModuleNamespace: 'https://ecma-international.org/ecma-262/8.0/#sec-getmodulenamespace',
|
||||
GetNewTarget: 'https://ecma-international.org/ecma-262/8.0/#sec-getnewtarget',
|
||||
GetOwnPropertyKeys: 'https://ecma-international.org/ecma-262/8.0/#sec-getownpropertykeys',
|
||||
GetPrototypeFromConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-getprototypefromconstructor',
|
||||
GetReferencedName: 'https://ecma-international.org/ecma-262/8.0/#ao-getreferencedname',
|
||||
GetSubstitution: 'https://ecma-international.org/ecma-262/8.0/#sec-getsubstitution',
|
||||
GetSuperConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-getsuperconstructor',
|
||||
GetTemplateObject: 'https://ecma-international.org/ecma-262/8.0/#sec-gettemplateobject',
|
||||
GetThisEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-getthisenvironment',
|
||||
GetThisValue: 'https://ecma-international.org/ecma-262/8.0/#sec-getthisvalue',
|
||||
GetV: 'https://ecma-international.org/ecma-262/8.0/#sec-getv',
|
||||
GetValue: 'https://ecma-international.org/ecma-262/8.0/#sec-getvalue',
|
||||
GetValueFromBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-getvaluefrombuffer',
|
||||
GetViewValue: 'https://ecma-international.org/ecma-262/8.0/#sec-getviewvalue',
|
||||
GetWaiterList: 'https://ecma-international.org/ecma-262/8.0/#sec-getwaiterlist',
|
||||
GlobalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/8.0/#sec-globaldeclarationinstantiation',
|
||||
'happens-before': 'https://ecma-international.org/ecma-262/8.0/#sec-happens-before',
|
||||
HasOwnProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-hasownproperty',
|
||||
HasPrimitiveBase: 'https://ecma-international.org/ecma-262/8.0/#ao-hasprimitivebase',
|
||||
HasProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-hasproperty',
|
||||
'host-synchronizes-with': 'https://ecma-international.org/ecma-262/8.0/#sec-host-synchronizes-with',
|
||||
HostEnsureCanCompileStrings: 'https://ecma-international.org/ecma-262/8.0/#sec-hostensurecancompilestrings',
|
||||
HostEventSet: 'https://ecma-international.org/ecma-262/8.0/#sec-hosteventset',
|
||||
HostPromiseRejectionTracker: 'https://ecma-international.org/ecma-262/8.0/#sec-host-promise-rejection-tracker',
|
||||
HostReportErrors: 'https://ecma-international.org/ecma-262/8.0/#sec-host-report-errors',
|
||||
HostResolveImportedModule: 'https://ecma-international.org/ecma-262/8.0/#sec-hostresolveimportedmodule',
|
||||
HourFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-HourFromTime',
|
||||
HoursPerDay: 'https://ecma-international.org/ecma-262/8.0/#eqn-HoursPerDay',
|
||||
IfAbruptRejectPromise: 'https://ecma-international.org/ecma-262/8.0/#sec-ifabruptrejectpromise',
|
||||
ImportedLocalNames: 'https://ecma-international.org/ecma-262/8.0/#sec-importedlocalnames',
|
||||
InitializeBoundName: 'https://ecma-international.org/ecma-262/8.0/#sec-initializeboundname',
|
||||
InitializeHostDefinedRealm: 'https://ecma-international.org/ecma-262/8.0/#sec-initializehostdefinedrealm',
|
||||
InitializeReferencedBinding: 'https://ecma-international.org/ecma-262/8.0/#sec-initializereferencedbinding',
|
||||
InLeapYear: 'https://ecma-international.org/ecma-262/8.0/#eqn-InLeapYear',
|
||||
InstanceofOperator: 'https://ecma-international.org/ecma-262/8.0/#sec-instanceofoperator',
|
||||
IntegerIndexedElementGet: 'https://ecma-international.org/ecma-262/8.0/#sec-integerindexedelementget',
|
||||
IntegerIndexedElementSet: 'https://ecma-international.org/ecma-262/8.0/#sec-integerindexedelementset',
|
||||
IntegerIndexedObjectCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-integerindexedobjectcreate',
|
||||
InternalizeJSONProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-internalizejsonproperty',
|
||||
Invoke: 'https://ecma-international.org/ecma-262/8.0/#sec-invoke',
|
||||
IsAccessorDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-isaccessordescriptor',
|
||||
IsAnonymousFunctionDefinition: 'https://ecma-international.org/ecma-262/8.0/#sec-isanonymousfunctiondefinition',
|
||||
IsArray: 'https://ecma-international.org/ecma-262/8.0/#sec-isarray',
|
||||
IsCallable: 'https://ecma-international.org/ecma-262/8.0/#sec-iscallable',
|
||||
IsCompatiblePropertyDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-iscompatiblepropertydescriptor',
|
||||
IsConcatSpreadable: 'https://ecma-international.org/ecma-262/8.0/#sec-isconcatspreadable',
|
||||
IsConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-isconstructor',
|
||||
IsDataDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-isdatadescriptor',
|
||||
IsDetachedBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-isdetachedbuffer',
|
||||
IsExtensible: 'https://ecma-international.org/ecma-262/8.0/#sec-isextensible-o',
|
||||
IsGenericDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-isgenericdescriptor',
|
||||
IsInTailPosition: 'https://ecma-international.org/ecma-262/8.0/#sec-isintailposition',
|
||||
IsInteger: 'https://ecma-international.org/ecma-262/8.0/#sec-isinteger',
|
||||
IsLabelledFunction: 'https://ecma-international.org/ecma-262/8.0/#sec-islabelledfunction',
|
||||
IsPromise: 'https://ecma-international.org/ecma-262/8.0/#sec-ispromise',
|
||||
IsPropertyKey: 'https://ecma-international.org/ecma-262/8.0/#sec-ispropertykey',
|
||||
IsPropertyReference: 'https://ecma-international.org/ecma-262/8.0/#ao-ispropertyreference',
|
||||
IsRegExp: 'https://ecma-international.org/ecma-262/8.0/#sec-isregexp',
|
||||
IsSharedArrayBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-issharedarraybuffer',
|
||||
IsStrictReference: 'https://ecma-international.org/ecma-262/8.0/#ao-isstrictreference',
|
||||
IsSuperReference: 'https://ecma-international.org/ecma-262/8.0/#ao-issuperreference',
|
||||
IsUnresolvableReference: 'https://ecma-international.org/ecma-262/8.0/#ao-isunresolvablereference',
|
||||
IsWordChar: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-iswordchar-abstract-operation',
|
||||
IterableToList: 'https://ecma-international.org/ecma-262/8.0/#sec-iterabletolist',
|
||||
IteratorClose: 'https://ecma-international.org/ecma-262/8.0/#sec-iteratorclose',
|
||||
IteratorComplete: 'https://ecma-international.org/ecma-262/8.0/#sec-iteratorcomplete',
|
||||
IteratorNext: 'https://ecma-international.org/ecma-262/8.0/#sec-iteratornext',
|
||||
IteratorStep: 'https://ecma-international.org/ecma-262/8.0/#sec-iteratorstep',
|
||||
IteratorValue: 'https://ecma-international.org/ecma-262/8.0/#sec-iteratorvalue',
|
||||
LeaveCriticalSection: 'https://ecma-international.org/ecma-262/8.0/#sec-leavecriticalsection',
|
||||
LocalTime: 'https://ecma-international.org/ecma-262/8.0/#sec-localtime',
|
||||
LoopContinues: 'https://ecma-international.org/ecma-262/8.0/#sec-loopcontinues',
|
||||
MakeArgGetter: 'https://ecma-international.org/ecma-262/8.0/#sec-makearggetter',
|
||||
MakeArgSetter: 'https://ecma-international.org/ecma-262/8.0/#sec-makeargsetter',
|
||||
MakeClassConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-makeclassconstructor',
|
||||
MakeConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-makeconstructor',
|
||||
MakeDate: 'https://ecma-international.org/ecma-262/8.0/#sec-makedate',
|
||||
MakeDay: 'https://ecma-international.org/ecma-262/8.0/#sec-makeday',
|
||||
MakeMethod: 'https://ecma-international.org/ecma-262/8.0/#sec-makemethod',
|
||||
MakeSuperPropertyReference: 'https://ecma-international.org/ecma-262/8.0/#sec-makesuperpropertyreference',
|
||||
MakeTime: 'https://ecma-international.org/ecma-262/8.0/#sec-maketime',
|
||||
max: 'https://ecma-international.org/ecma-262/8.0/#eqn-max',
|
||||
'memory-order': 'https://ecma-international.org/ecma-262/8.0/#sec-memory-order',
|
||||
min: 'https://ecma-international.org/ecma-262/8.0/#eqn-min',
|
||||
MinFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-MinFromTime',
|
||||
MinutesPerHour: 'https://ecma-international.org/ecma-262/8.0/#eqn-MinutesPerHour',
|
||||
ModuleNamespaceCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-modulenamespacecreate',
|
||||
modulo: 'https://ecma-international.org/ecma-262/8.0/#eqn-modulo',
|
||||
MonthFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-MonthFromTime',
|
||||
msFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-msFromTime',
|
||||
msPerDay: 'https://ecma-international.org/ecma-262/8.0/#eqn-msPerDay',
|
||||
msPerHour: 'https://ecma-international.org/ecma-262/8.0/#eqn-msPerHour',
|
||||
msPerMinute: 'https://ecma-international.org/ecma-262/8.0/#eqn-msPerMinute',
|
||||
msPerSecond: 'https://ecma-international.org/ecma-262/8.0/#eqn-msPerSecond',
|
||||
NewDeclarativeEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-newdeclarativeenvironment',
|
||||
NewFunctionEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-newfunctionenvironment',
|
||||
NewGlobalEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-newglobalenvironment',
|
||||
NewModuleEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-newmoduleenvironment',
|
||||
NewObjectEnvironment: 'https://ecma-international.org/ecma-262/8.0/#sec-newobjectenvironment',
|
||||
NewPromiseCapability: 'https://ecma-international.org/ecma-262/8.0/#sec-newpromisecapability',
|
||||
NormalCompletion: 'https://ecma-international.org/ecma-262/8.0/#sec-normalcompletion',
|
||||
NumberToRawBytes: 'https://ecma-international.org/ecma-262/8.0/#sec-numbertorawbytes',
|
||||
ObjectCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-objectcreate',
|
||||
ObjectDefineProperties: 'https://ecma-international.org/ecma-262/8.0/#sec-objectdefineproperties',
|
||||
OrdinaryCallBindThis: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarycallbindthis',
|
||||
OrdinaryCallEvaluateBody: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarycallevaluatebody',
|
||||
OrdinaryCreateFromConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarycreatefromconstructor',
|
||||
OrdinaryDefineOwnProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarydefineownproperty',
|
||||
OrdinaryDelete: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarydelete',
|
||||
OrdinaryGet: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryget',
|
||||
OrdinaryGetOwnProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarygetownproperty',
|
||||
OrdinaryGetPrototypeOf: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarygetprototypeof',
|
||||
OrdinaryHasInstance: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryhasinstance',
|
||||
OrdinaryHasProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryhasproperty',
|
||||
OrdinaryIsExtensible: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryisextensible',
|
||||
OrdinaryOwnPropertyKeys: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryownpropertykeys',
|
||||
OrdinaryPreventExtensions: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarypreventextensions',
|
||||
OrdinarySet: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinaryset',
|
||||
OrdinarySetPrototypeOf: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarysetprototypeof',
|
||||
OrdinaryToPrimitive: 'https://ecma-international.org/ecma-262/8.0/#sec-ordinarytoprimitive',
|
||||
ParseModule: 'https://ecma-international.org/ecma-262/8.0/#sec-parsemodule',
|
||||
ParseScript: 'https://ecma-international.org/ecma-262/8.0/#sec-parse-script',
|
||||
PerformEval: 'https://ecma-international.org/ecma-262/8.0/#sec-performeval',
|
||||
PerformPromiseAll: 'https://ecma-international.org/ecma-262/8.0/#sec-performpromiseall',
|
||||
PerformPromiseRace: 'https://ecma-international.org/ecma-262/8.0/#sec-performpromiserace',
|
||||
PerformPromiseThen: 'https://ecma-international.org/ecma-262/8.0/#sec-performpromisethen',
|
||||
PrepareForOrdinaryCall: 'https://ecma-international.org/ecma-262/8.0/#sec-prepareforordinarycall',
|
||||
PrepareForTailCall: 'https://ecma-international.org/ecma-262/8.0/#sec-preparefortailcall',
|
||||
PromiseReactionJob: 'https://ecma-international.org/ecma-262/8.0/#sec-promisereactionjob',
|
||||
PromiseResolveThenableJob: 'https://ecma-international.org/ecma-262/8.0/#sec-promiseresolvethenablejob',
|
||||
ProxyCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-proxycreate',
|
||||
PutValue: 'https://ecma-international.org/ecma-262/8.0/#sec-putvalue',
|
||||
QuoteJSONString: 'https://ecma-international.org/ecma-262/8.0/#sec-quotejsonstring',
|
||||
RawBytesToNumber: 'https://ecma-international.org/ecma-262/8.0/#sec-rawbytestonumber',
|
||||
'reads-bytes-from': 'https://ecma-international.org/ecma-262/8.0/#sec-reads-bytes-from',
|
||||
'reads-from': 'https://ecma-international.org/ecma-262/8.0/#sec-reads-from',
|
||||
RegExpAlloc: 'https://ecma-international.org/ecma-262/8.0/#sec-regexpalloc',
|
||||
RegExpBuiltinExec: 'https://ecma-international.org/ecma-262/8.0/#sec-regexpbuiltinexec',
|
||||
RegExpCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-regexpcreate',
|
||||
RegExpExec: 'https://ecma-international.org/ecma-262/8.0/#sec-regexpexec',
|
||||
RegExpInitialize: 'https://ecma-international.org/ecma-262/8.0/#sec-regexpinitialize',
|
||||
RejectPromise: 'https://ecma-international.org/ecma-262/8.0/#sec-rejectpromise',
|
||||
RemoveWaiter: 'https://ecma-international.org/ecma-262/8.0/#sec-removewaiter',
|
||||
RemoveWaiters: 'https://ecma-international.org/ecma-262/8.0/#sec-removewaiters',
|
||||
RepeatMatcher: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-repeatmatcher-abstract-operation',
|
||||
RequireObjectCoercible: 'https://ecma-international.org/ecma-262/8.0/#sec-requireobjectcoercible',
|
||||
ResolveBinding: 'https://ecma-international.org/ecma-262/8.0/#sec-resolvebinding',
|
||||
ResolveThisBinding: 'https://ecma-international.org/ecma-262/8.0/#sec-resolvethisbinding',
|
||||
ReturnIfAbrupt: 'https://ecma-international.org/ecma-262/8.0/#sec-returnifabrupt',
|
||||
RunJobs: 'https://ecma-international.org/ecma-262/8.0/#sec-runjobs',
|
||||
SameValue: 'https://ecma-international.org/ecma-262/8.0/#sec-samevalue',
|
||||
SameValueNonNumber: 'https://ecma-international.org/ecma-262/8.0/#sec-samevaluenonnumber',
|
||||
SameValueZero: 'https://ecma-international.org/ecma-262/8.0/#sec-samevaluezero',
|
||||
ScriptEvaluation: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-scriptevaluation',
|
||||
ScriptEvaluationJob: 'https://ecma-international.org/ecma-262/8.0/#sec-scriptevaluationjob',
|
||||
SecFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-SecFromTime',
|
||||
SecondsPerMinute: 'https://ecma-international.org/ecma-262/8.0/#eqn-SecondsPerMinute',
|
||||
SerializeJSONArray: 'https://ecma-international.org/ecma-262/8.0/#sec-serializejsonarray',
|
||||
SerializeJSONObject: 'https://ecma-international.org/ecma-262/8.0/#sec-serializejsonobject',
|
||||
SerializeJSONProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-serializejsonproperty',
|
||||
Set: 'https://ecma-international.org/ecma-262/8.0/#sec-set-o-p-v-throw',
|
||||
SetDefaultGlobalBindings: 'https://ecma-international.org/ecma-262/8.0/#sec-setdefaultglobalbindings',
|
||||
SetFunctionName: 'https://ecma-international.org/ecma-262/8.0/#sec-setfunctionname',
|
||||
SetImmutablePrototype: 'https://ecma-international.org/ecma-262/8.0/#sec-set-immutable-prototype',
|
||||
SetIntegrityLevel: 'https://ecma-international.org/ecma-262/8.0/#sec-setintegritylevel',
|
||||
SetRealmGlobalObject: 'https://ecma-international.org/ecma-262/8.0/#sec-setrealmglobalobject',
|
||||
SetValueInBuffer: 'https://ecma-international.org/ecma-262/8.0/#sec-setvalueinbuffer',
|
||||
SetViewValue: 'https://ecma-international.org/ecma-262/8.0/#sec-setviewvalue',
|
||||
SharedDataBlockEventSet: 'https://ecma-international.org/ecma-262/8.0/#sec-sharedatablockeventset',
|
||||
SortCompare: 'https://ecma-international.org/ecma-262/8.0/#sec-sortcompare',
|
||||
SpeciesConstructor: 'https://ecma-international.org/ecma-262/8.0/#sec-speciesconstructor',
|
||||
SplitMatch: 'https://ecma-international.org/ecma-262/8.0/#sec-splitmatch',
|
||||
'Strict Equality Comparison': 'https://ecma-international.org/ecma-262/8.0/#sec-strict-equality-comparison',
|
||||
StringCreate: 'https://ecma-international.org/ecma-262/8.0/#sec-stringcreate',
|
||||
StringGetOwnProperty: 'https://ecma-international.org/ecma-262/8.0/#sec-stringgetownproperty',
|
||||
Suspend: 'https://ecma-international.org/ecma-262/8.0/#sec-suspend',
|
||||
SymbolDescriptiveString: 'https://ecma-international.org/ecma-262/8.0/#sec-symboldescriptivestring',
|
||||
'synchronizes-with': 'https://ecma-international.org/ecma-262/8.0/#sec-synchronizes-with',
|
||||
TestIntegrityLevel: 'https://ecma-international.org/ecma-262/8.0/#sec-testintegritylevel',
|
||||
thisBooleanValue: 'https://ecma-international.org/ecma-262/8.0/#sec-thisbooleanvalue',
|
||||
thisNumberValue: 'https://ecma-international.org/ecma-262/8.0/#sec-thisnumbervalue',
|
||||
thisStringValue: 'https://ecma-international.org/ecma-262/8.0/#sec-thisstringvalue',
|
||||
thisTimeValue: 'https://ecma-international.org/ecma-262/8.0/#sec-thistimevalue',
|
||||
TimeClip: 'https://ecma-international.org/ecma-262/8.0/#sec-timeclip',
|
||||
TimeFromYear: 'https://ecma-international.org/ecma-262/8.0/#eqn-TimeFromYear',
|
||||
TimeWithinDay: 'https://ecma-international.org/ecma-262/8.0/#eqn-TimeWithinDay',
|
||||
ToBoolean: 'https://ecma-international.org/ecma-262/8.0/#sec-toboolean',
|
||||
ToDateString: 'https://ecma-international.org/ecma-262/8.0/#sec-todatestring',
|
||||
ToIndex: 'https://ecma-international.org/ecma-262/8.0/#sec-toindex',
|
||||
ToInt16: 'https://ecma-international.org/ecma-262/8.0/#sec-toint16',
|
||||
ToInt32: 'https://ecma-international.org/ecma-262/8.0/#sec-toint32',
|
||||
ToInt8: 'https://ecma-international.org/ecma-262/8.0/#sec-toint8',
|
||||
ToInteger: 'https://ecma-international.org/ecma-262/8.0/#sec-tointeger',
|
||||
ToLength: 'https://ecma-international.org/ecma-262/8.0/#sec-tolength',
|
||||
ToNumber: 'https://ecma-international.org/ecma-262/8.0/#sec-tonumber',
|
||||
ToObject: 'https://ecma-international.org/ecma-262/8.0/#sec-toobject',
|
||||
TopLevelModuleEvaluationJob: 'https://ecma-international.org/ecma-262/8.0/#sec-toplevelmoduleevaluationjob',
|
||||
ToPrimitive: 'https://ecma-international.org/ecma-262/8.0/#sec-toprimitive',
|
||||
ToPropertyDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-topropertydescriptor',
|
||||
ToPropertyKey: 'https://ecma-international.org/ecma-262/8.0/#sec-topropertykey',
|
||||
ToString: 'https://ecma-international.org/ecma-262/8.0/#sec-tostring',
|
||||
'ToString Applied to the Number Type': 'https://ecma-international.org/ecma-262/8.0/#sec-tostring-applied-to-the-number-type',
|
||||
ToUint16: 'https://ecma-international.org/ecma-262/8.0/#sec-touint16',
|
||||
ToUint32: 'https://ecma-international.org/ecma-262/8.0/#sec-touint32',
|
||||
ToUint8: 'https://ecma-international.org/ecma-262/8.0/#sec-touint8',
|
||||
ToUint8Clamp: 'https://ecma-international.org/ecma-262/8.0/#sec-touint8clamp',
|
||||
TriggerPromiseReactions: 'https://ecma-international.org/ecma-262/8.0/#sec-triggerpromisereactions',
|
||||
Type: 'https://ecma-international.org/ecma-262/8.0/#sec-ecmascript-data-types-and-values',
|
||||
TypedArrayCreate: 'https://ecma-international.org/ecma-262/8.0/#typedarray-create',
|
||||
TypedArraySpeciesCreate: 'https://ecma-international.org/ecma-262/8.0/#typedarray-species-create',
|
||||
UpdateEmpty: 'https://ecma-international.org/ecma-262/8.0/#sec-updateempty',
|
||||
UTC: 'https://ecma-international.org/ecma-262/8.0/#sec-utc-t',
|
||||
UTF16Decode: 'https://ecma-international.org/ecma-262/8.0/#sec-utf16decode',
|
||||
UTF16Encoding: 'https://ecma-international.org/ecma-262/8.0/#sec-utf16encoding',
|
||||
ValidateAndApplyPropertyDescriptor: 'https://ecma-international.org/ecma-262/8.0/#sec-validateandapplypropertydescriptor',
|
||||
ValidateAtomicAccess: 'https://ecma-international.org/ecma-262/8.0/#sec-validateatomicaccess',
|
||||
ValidateSharedIntegerTypedArray: 'https://ecma-international.org/ecma-262/8.0/#sec-validatesharedintegertypedarray',
|
||||
ValidateTypedArray: 'https://ecma-international.org/ecma-262/8.0/#sec-validatetypedarray',
|
||||
ValueOfReadEvent: 'https://ecma-international.org/ecma-262/8.0/#sec-valueofreadevent',
|
||||
WakeWaiter: 'https://ecma-international.org/ecma-262/8.0/#sec-wakewaiter',
|
||||
WeekDay: 'https://ecma-international.org/ecma-262/8.0/#sec-week-day',
|
||||
WordCharacters: 'https://ecma-international.org/ecma-262/8.0/#sec-runtime-semantics-wordcharacters-abstract-operation',
|
||||
YearFromTime: 'https://ecma-international.org/ecma-262/8.0/#eqn-YearFromTime'
|
||||
};
|
357
node_modules/es-abstract/operations/2018.js
generated
vendored
Normal file
357
node_modules/es-abstract/operations/2018.js
generated
vendored
Normal file
|
@ -0,0 +1,357 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
abs: 'https://ecma-international.org/ecma-262/9.0/#eqn-abs',
|
||||
'Abstract Equality Comparison': 'https://ecma-international.org/ecma-262/9.0/#sec-abstract-equality-comparison',
|
||||
'Abstract Relational Comparison': 'https://ecma-international.org/ecma-262/9.0/#sec-abstract-relational-comparison',
|
||||
AddRestrictedFunctionProperties: 'https://ecma-international.org/ecma-262/9.0/#sec-addrestrictedfunctionproperties',
|
||||
AddWaiter: 'https://ecma-international.org/ecma-262/9.0/#sec-addwaiter',
|
||||
AdvanceStringIndex: 'https://ecma-international.org/ecma-262/9.0/#sec-advancestringindex',
|
||||
'agent-order': 'https://ecma-international.org/ecma-262/9.0/#sec-agent-order',
|
||||
AgentCanSuspend: 'https://ecma-international.org/ecma-262/9.0/#sec-agentcansuspend',
|
||||
AgentSignifier: 'https://ecma-international.org/ecma-262/9.0/#sec-agentsignifier',
|
||||
AllocateArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-allocatearraybuffer',
|
||||
AllocateSharedArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-allocatesharedarraybuffer',
|
||||
AllocateTypedArray: 'https://ecma-international.org/ecma-262/9.0/#sec-allocatetypedarray',
|
||||
AllocateTypedArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-allocatetypedarraybuffer',
|
||||
ArrayCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-arraycreate',
|
||||
ArraySetLength: 'https://ecma-international.org/ecma-262/9.0/#sec-arraysetlength',
|
||||
ArraySpeciesCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-arrayspeciescreate',
|
||||
AsyncFunctionCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-async-functions-abstract-operations-async-function-create',
|
||||
AsyncFunctionStart: 'https://ecma-international.org/ecma-262/9.0/#sec-async-functions-abstract-operations-async-function-start',
|
||||
AsyncGeneratorEnqueue: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorenqueue',
|
||||
AsyncGeneratorFunctionCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorfunctioncreate',
|
||||
AsyncGeneratorReject: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorreject',
|
||||
AsyncGeneratorResolve: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorresolve',
|
||||
AsyncGeneratorResumeNext: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorresumenext',
|
||||
AsyncGeneratorStart: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratorstart',
|
||||
AsyncGeneratorYield: 'https://ecma-international.org/ecma-262/9.0/#sec-asyncgeneratoryield',
|
||||
AsyncIteratorClose: 'https://ecma-international.org/ecma-262/9.0/#sec-asynciteratorclose',
|
||||
AtomicLoad: 'https://ecma-international.org/ecma-262/9.0/#sec-atomicload',
|
||||
AtomicReadModifyWrite: 'https://ecma-international.org/ecma-262/9.0/#sec-atomicreadmodifywrite',
|
||||
Await: 'https://ecma-international.org/ecma-262/9.0/#await',
|
||||
BackreferenceMatcher: 'https://ecma-international.org/ecma-262/9.0/#sec-backreference-matcher',
|
||||
BlockDeclarationInstantiation: 'https://ecma-international.org/ecma-262/9.0/#sec-blockdeclarationinstantiation',
|
||||
BoundFunctionCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-boundfunctioncreate',
|
||||
Call: 'https://ecma-international.org/ecma-262/9.0/#sec-call',
|
||||
Canonicalize: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-canonicalize-ch',
|
||||
CanonicalNumericIndexString: 'https://ecma-international.org/ecma-262/9.0/#sec-canonicalnumericindexstring',
|
||||
CaseClauseIsSelected: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-caseclauseisselected',
|
||||
CharacterRange: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-characterrange-abstract-operation',
|
||||
CharacterRangeOrUnion: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-characterrangeorunion-abstract-operation',
|
||||
CharacterSetMatcher: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-charactersetmatcher-abstract-operation',
|
||||
CloneArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-clonearraybuffer',
|
||||
CompletePropertyDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-completepropertydescriptor',
|
||||
Completion: 'https://ecma-international.org/ecma-262/9.0/#sec-completion-record-specification-type',
|
||||
ComposeWriteEventBytes: 'https://ecma-international.org/ecma-262/9.0/#sec-composewriteeventbytes',
|
||||
Construct: 'https://ecma-international.org/ecma-262/9.0/#sec-construct',
|
||||
CopyDataBlockBytes: 'https://ecma-international.org/ecma-262/9.0/#sec-copydatablockbytes',
|
||||
CopyDataProperties: 'https://ecma-international.org/ecma-262/9.0/#sec-copydataproperties',
|
||||
CreateArrayFromList: 'https://ecma-international.org/ecma-262/9.0/#sec-createarrayfromlist',
|
||||
CreateArrayIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-createarrayiterator',
|
||||
CreateAsyncFromSyncIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-createasyncfromsynciterator',
|
||||
CreateBuiltinFunction: 'https://ecma-international.org/ecma-262/9.0/#sec-createbuiltinfunction',
|
||||
CreateByteDataBlock: 'https://ecma-international.org/ecma-262/9.0/#sec-createbytedatablock',
|
||||
CreateDataProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-createdataproperty',
|
||||
CreateDataPropertyOrThrow: 'https://ecma-international.org/ecma-262/9.0/#sec-createdatapropertyorthrow',
|
||||
CreateDynamicFunction: 'https://ecma-international.org/ecma-262/9.0/#sec-createdynamicfunction',
|
||||
CreateHTML: 'https://ecma-international.org/ecma-262/9.0/#sec-createhtml',
|
||||
CreateIntrinsics: 'https://ecma-international.org/ecma-262/9.0/#sec-createintrinsics',
|
||||
CreateIterResultObject: 'https://ecma-international.org/ecma-262/9.0/#sec-createiterresultobject',
|
||||
CreateListFromArrayLike: 'https://ecma-international.org/ecma-262/9.0/#sec-createlistfromarraylike',
|
||||
CreateListIteratorRecord: 'https://ecma-international.org/ecma-262/9.0/#sec-createlistiteratorRecord',
|
||||
CreateMapIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-createmapiterator',
|
||||
CreateMappedArgumentsObject: 'https://ecma-international.org/ecma-262/9.0/#sec-createmappedargumentsobject',
|
||||
CreateMethodProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-createmethodproperty',
|
||||
CreatePerIterationEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-createperiterationenvironment',
|
||||
CreateRealm: 'https://ecma-international.org/ecma-262/9.0/#sec-createrealm',
|
||||
CreateResolvingFunctions: 'https://ecma-international.org/ecma-262/9.0/#sec-createresolvingfunctions',
|
||||
CreateSetIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-createsetiterator',
|
||||
CreateSharedByteDataBlock: 'https://ecma-international.org/ecma-262/9.0/#sec-createsharedbytedatablock',
|
||||
CreateStringIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-createstringiterator',
|
||||
CreateUnmappedArgumentsObject: 'https://ecma-international.org/ecma-262/9.0/#sec-createunmappedargumentsobject',
|
||||
DateFromTime: 'https://ecma-international.org/ecma-262/9.0/#sec-date-number',
|
||||
DateString: 'https://ecma-international.org/ecma-262/9.0/#sec-datestring',
|
||||
Day: 'https://ecma-international.org/ecma-262/9.0/#eqn-Day',
|
||||
DayFromYear: 'https://ecma-international.org/ecma-262/9.0/#eqn-DaysFromYear',
|
||||
DaysInYear: 'https://ecma-international.org/ecma-262/9.0/#eqn-DaysInYear',
|
||||
DayWithinYear: 'https://ecma-international.org/ecma-262/9.0/#eqn-DayWithinYear',
|
||||
Decode: 'https://ecma-international.org/ecma-262/9.0/#sec-decode',
|
||||
DefinePropertyOrThrow: 'https://ecma-international.org/ecma-262/9.0/#sec-definepropertyorthrow',
|
||||
DeletePropertyOrThrow: 'https://ecma-international.org/ecma-262/9.0/#sec-deletepropertyorthrow',
|
||||
DetachArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-detacharraybuffer',
|
||||
Encode: 'https://ecma-international.org/ecma-262/9.0/#sec-encode',
|
||||
EnqueueJob: 'https://ecma-international.org/ecma-262/9.0/#sec-enqueuejob',
|
||||
EnterCriticalSection: 'https://ecma-international.org/ecma-262/9.0/#sec-entercriticalsection',
|
||||
EnumerableOwnPropertyNames: 'https://ecma-international.org/ecma-262/9.0/#sec-enumerableownpropertynames',
|
||||
EnumerateObjectProperties: 'https://ecma-international.org/ecma-262/9.0/#sec-enumerate-object-properties',
|
||||
EscapeRegExpPattern: 'https://ecma-international.org/ecma-262/9.0/#sec-escaperegexppattern',
|
||||
EvalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/9.0/#sec-evaldeclarationinstantiation',
|
||||
EvaluateCall: 'https://ecma-international.org/ecma-262/9.0/#sec-evaluatecall',
|
||||
EvaluateNew: 'https://ecma-international.org/ecma-262/9.0/#sec-evaluatenew',
|
||||
EventSet: 'https://ecma-international.org/ecma-262/9.0/#sec-event-set',
|
||||
floor: 'https://ecma-international.org/ecma-262/9.0/#eqn-floor',
|
||||
ForBodyEvaluation: 'https://ecma-international.org/ecma-262/9.0/#sec-forbodyevaluation',
|
||||
'ForIn/OfBodyEvaluation': 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset',
|
||||
'ForIn/OfHeadEvaluation': 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind',
|
||||
FromPropertyDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-frompropertydescriptor',
|
||||
FulfillPromise: 'https://ecma-international.org/ecma-262/9.0/#sec-fulfillpromise',
|
||||
FunctionAllocate: 'https://ecma-international.org/ecma-262/9.0/#sec-functionallocate',
|
||||
FunctionCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-functioncreate',
|
||||
FunctionDeclarationInstantiation: 'https://ecma-international.org/ecma-262/9.0/#sec-functiondeclarationinstantiation',
|
||||
FunctionInitialize: 'https://ecma-international.org/ecma-262/9.0/#sec-functioninitialize',
|
||||
GeneratorFunctionCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-generatorfunctioncreate',
|
||||
GeneratorResume: 'https://ecma-international.org/ecma-262/9.0/#sec-generatorresume',
|
||||
GeneratorResumeAbrupt: 'https://ecma-international.org/ecma-262/9.0/#sec-generatorresumeabrupt',
|
||||
GeneratorStart: 'https://ecma-international.org/ecma-262/9.0/#sec-generatorstart',
|
||||
GeneratorValidate: 'https://ecma-international.org/ecma-262/9.0/#sec-generatorvalidate',
|
||||
GeneratorYield: 'https://ecma-international.org/ecma-262/9.0/#sec-generatoryield',
|
||||
Get: 'https://ecma-international.org/ecma-262/9.0/#sec-get-o-p',
|
||||
GetActiveScriptOrModule: 'https://ecma-international.org/ecma-262/9.0/#sec-getactivescriptormodule',
|
||||
GetBase: 'https://ecma-international.org/ecma-262/9.0/#sec-getbase',
|
||||
GetFunctionRealm: 'https://ecma-international.org/ecma-262/9.0/#sec-getfunctionrealm',
|
||||
GetGeneratorKind: 'https://ecma-international.org/ecma-262/9.0/#sec-getgeneratorkind',
|
||||
GetGlobalObject: 'https://ecma-international.org/ecma-262/9.0/#sec-getglobalobject',
|
||||
GetIdentifierReference: 'https://ecma-international.org/ecma-262/9.0/#sec-getidentifierreference',
|
||||
GetIterator: 'https://ecma-international.org/ecma-262/9.0/#sec-getiterator',
|
||||
GetMethod: 'https://ecma-international.org/ecma-262/9.0/#sec-getmethod',
|
||||
GetModifySetValueInBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-getmodifysetvalueinbuffer',
|
||||
GetModuleNamespace: 'https://ecma-international.org/ecma-262/9.0/#sec-getmodulenamespace',
|
||||
GetNewTarget: 'https://ecma-international.org/ecma-262/9.0/#sec-getnewtarget',
|
||||
GetOwnPropertyKeys: 'https://ecma-international.org/ecma-262/9.0/#sec-getownpropertykeys',
|
||||
GetPrototypeFromConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-getprototypefromconstructor',
|
||||
GetReferencedName: 'https://ecma-international.org/ecma-262/9.0/#sec-getreferencedname',
|
||||
GetSubstitution: 'https://ecma-international.org/ecma-262/9.0/#sec-getsubstitution',
|
||||
GetSuperConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-getsuperconstructor',
|
||||
GetTemplateObject: 'https://ecma-international.org/ecma-262/9.0/#sec-gettemplateobject',
|
||||
GetThisEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-getthisenvironment',
|
||||
GetThisValue: 'https://ecma-international.org/ecma-262/9.0/#sec-getthisvalue',
|
||||
GetV: 'https://ecma-international.org/ecma-262/9.0/#sec-getv',
|
||||
GetValue: 'https://ecma-international.org/ecma-262/9.0/#sec-getvalue',
|
||||
GetValueFromBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-getvaluefrombuffer',
|
||||
GetViewValue: 'https://ecma-international.org/ecma-262/9.0/#sec-getviewvalue',
|
||||
GetWaiterList: 'https://ecma-international.org/ecma-262/9.0/#sec-getwaiterlist',
|
||||
GlobalDeclarationInstantiation: 'https://ecma-international.org/ecma-262/9.0/#sec-globaldeclarationinstantiation',
|
||||
'happens-before': 'https://ecma-international.org/ecma-262/9.0/#sec-happens-before',
|
||||
HasOwnProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-hasownproperty',
|
||||
HasPrimitiveBase: 'https://ecma-international.org/ecma-262/9.0/#sec-hasprimitivebase',
|
||||
HasProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-hasproperty',
|
||||
'host-synchronizes-with': 'https://ecma-international.org/ecma-262/9.0/#sec-host-synchronizes-with',
|
||||
HostEnsureCanCompileStrings: 'https://ecma-international.org/ecma-262/9.0/#sec-hostensurecancompilestrings',
|
||||
HostEventSet: 'https://ecma-international.org/ecma-262/9.0/#sec-hosteventset',
|
||||
HostPromiseRejectionTracker: 'https://ecma-international.org/ecma-262/9.0/#sec-host-promise-rejection-tracker',
|
||||
HostReportErrors: 'https://ecma-international.org/ecma-262/9.0/#sec-host-report-errors',
|
||||
HostResolveImportedModule: 'https://ecma-international.org/ecma-262/9.0/#sec-hostresolveimportedmodule',
|
||||
HourFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-HourFromTime',
|
||||
HoursPerDay: 'https://ecma-international.org/ecma-262/9.0/#eqn-HoursPerDay',
|
||||
IfAbruptRejectPromise: 'https://ecma-international.org/ecma-262/9.0/#sec-ifabruptrejectpromise',
|
||||
ImportedLocalNames: 'https://ecma-international.org/ecma-262/9.0/#sec-importedlocalnames',
|
||||
InitializeBoundName: 'https://ecma-international.org/ecma-262/9.0/#sec-initializeboundname',
|
||||
InitializeHostDefinedRealm: 'https://ecma-international.org/ecma-262/9.0/#sec-initializehostdefinedrealm',
|
||||
InitializeReferencedBinding: 'https://ecma-international.org/ecma-262/9.0/#sec-initializereferencedbinding',
|
||||
InLeapYear: 'https://ecma-international.org/ecma-262/9.0/#eqn-InLeapYear',
|
||||
InnerModuleEvaluation: 'https://ecma-international.org/ecma-262/9.0/#sec-innermoduleevaluation',
|
||||
InnerModuleInstantiation: 'https://ecma-international.org/ecma-262/9.0/#sec-innermoduleinstantiation',
|
||||
InstanceofOperator: 'https://ecma-international.org/ecma-262/9.0/#sec-instanceofoperator',
|
||||
IntegerIndexedElementGet: 'https://ecma-international.org/ecma-262/9.0/#sec-integerindexedelementget',
|
||||
IntegerIndexedElementSet: 'https://ecma-international.org/ecma-262/9.0/#sec-integerindexedelementset',
|
||||
IntegerIndexedObjectCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-integerindexedobjectcreate',
|
||||
InternalizeJSONProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-internalizejsonproperty',
|
||||
Invoke: 'https://ecma-international.org/ecma-262/9.0/#sec-invoke',
|
||||
IsAccessorDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-isaccessordescriptor',
|
||||
IsAnonymousFunctionDefinition: 'https://ecma-international.org/ecma-262/9.0/#sec-isanonymousfunctiondefinition',
|
||||
IsArray: 'https://ecma-international.org/ecma-262/9.0/#sec-isarray',
|
||||
IsCallable: 'https://ecma-international.org/ecma-262/9.0/#sec-iscallable',
|
||||
IsCompatiblePropertyDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-iscompatiblepropertydescriptor',
|
||||
IsConcatSpreadable: 'https://ecma-international.org/ecma-262/9.0/#sec-isconcatspreadable',
|
||||
IsConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-isconstructor',
|
||||
IsDataDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-isdatadescriptor',
|
||||
IsDetachedBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-isdetachedbuffer',
|
||||
IsExtensible: 'https://ecma-international.org/ecma-262/9.0/#sec-isextensible-o',
|
||||
IsGenericDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-isgenericdescriptor',
|
||||
IsInTailPosition: 'https://ecma-international.org/ecma-262/9.0/#sec-isintailposition',
|
||||
IsInteger: 'https://ecma-international.org/ecma-262/9.0/#sec-isinteger',
|
||||
IsLabelledFunction: 'https://ecma-international.org/ecma-262/9.0/#sec-islabelledfunction',
|
||||
IsPromise: 'https://ecma-international.org/ecma-262/9.0/#sec-ispromise',
|
||||
IsPropertyKey: 'https://ecma-international.org/ecma-262/9.0/#sec-ispropertykey',
|
||||
IsPropertyReference: 'https://ecma-international.org/ecma-262/9.0/#sec-ispropertyreference',
|
||||
IsRegExp: 'https://ecma-international.org/ecma-262/9.0/#sec-isregexp',
|
||||
IsSharedArrayBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-issharedarraybuffer',
|
||||
IsStrictReference: 'https://ecma-international.org/ecma-262/9.0/#sec-isstrictreference',
|
||||
IsStringPrefix: 'https://ecma-international.org/ecma-262/9.0/#sec-isstringprefix',
|
||||
IsSuperReference: 'https://ecma-international.org/ecma-262/9.0/#sec-issuperreference',
|
||||
IsUnresolvableReference: 'https://ecma-international.org/ecma-262/9.0/#sec-isunresolvablereference',
|
||||
IsWordChar: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-iswordchar-abstract-operation',
|
||||
IterableToList: 'https://ecma-international.org/ecma-262/9.0/#sec-iterabletolist',
|
||||
IteratorClose: 'https://ecma-international.org/ecma-262/9.0/#sec-iteratorclose',
|
||||
IteratorComplete: 'https://ecma-international.org/ecma-262/9.0/#sec-iteratorcomplete',
|
||||
IteratorNext: 'https://ecma-international.org/ecma-262/9.0/#sec-iteratornext',
|
||||
IteratorStep: 'https://ecma-international.org/ecma-262/9.0/#sec-iteratorstep',
|
||||
IteratorValue: 'https://ecma-international.org/ecma-262/9.0/#sec-iteratorvalue',
|
||||
LeaveCriticalSection: 'https://ecma-international.org/ecma-262/9.0/#sec-leavecriticalsection',
|
||||
LocalTime: 'https://ecma-international.org/ecma-262/9.0/#sec-localtime',
|
||||
LoopContinues: 'https://ecma-international.org/ecma-262/9.0/#sec-loopcontinues',
|
||||
MakeArgGetter: 'https://ecma-international.org/ecma-262/9.0/#sec-makearggetter',
|
||||
MakeArgSetter: 'https://ecma-international.org/ecma-262/9.0/#sec-makeargsetter',
|
||||
MakeClassConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-makeclassconstructor',
|
||||
MakeConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-makeconstructor',
|
||||
MakeDate: 'https://ecma-international.org/ecma-262/9.0/#sec-makedate',
|
||||
MakeDay: 'https://ecma-international.org/ecma-262/9.0/#sec-makeday',
|
||||
MakeMethod: 'https://ecma-international.org/ecma-262/9.0/#sec-makemethod',
|
||||
MakeSuperPropertyReference: 'https://ecma-international.org/ecma-262/9.0/#sec-makesuperpropertyreference',
|
||||
MakeTime: 'https://ecma-international.org/ecma-262/9.0/#sec-maketime',
|
||||
max: 'https://ecma-international.org/ecma-262/9.0/#eqn-max',
|
||||
'memory-order': 'https://ecma-international.org/ecma-262/9.0/#sec-memory-order',
|
||||
min: 'https://ecma-international.org/ecma-262/9.0/#eqn-min',
|
||||
MinFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-MinFromTime',
|
||||
MinutesPerHour: 'https://ecma-international.org/ecma-262/9.0/#eqn-MinutesPerHour',
|
||||
ModuleDeclarationEnvironmentSetup: 'https://ecma-international.org/ecma-262/9.0/#sec-moduledeclarationenvironmentsetup',
|
||||
ModuleExecution: 'https://ecma-international.org/ecma-262/9.0/#sec-moduleexecution',
|
||||
ModuleNamespaceCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-modulenamespacecreate',
|
||||
modulo: 'https://ecma-international.org/ecma-262/9.0/#eqn-modulo',
|
||||
MonthFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-MonthFromTime',
|
||||
msFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-msFromTime',
|
||||
msPerDay: 'https://ecma-international.org/ecma-262/9.0/#eqn-msPerDay',
|
||||
msPerHour: 'https://ecma-international.org/ecma-262/9.0/#eqn-msPerHour',
|
||||
msPerMinute: 'https://ecma-international.org/ecma-262/9.0/#eqn-msPerMinute',
|
||||
msPerSecond: 'https://ecma-international.org/ecma-262/9.0/#eqn-msPerSecond',
|
||||
NewDeclarativeEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-newdeclarativeenvironment',
|
||||
NewFunctionEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-newfunctionenvironment',
|
||||
NewGlobalEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-newglobalenvironment',
|
||||
NewModuleEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-newmoduleenvironment',
|
||||
NewObjectEnvironment: 'https://ecma-international.org/ecma-262/9.0/#sec-newobjectenvironment',
|
||||
NewPromiseCapability: 'https://ecma-international.org/ecma-262/9.0/#sec-newpromisecapability',
|
||||
NormalCompletion: 'https://ecma-international.org/ecma-262/9.0/#sec-normalcompletion',
|
||||
NumberToRawBytes: 'https://ecma-international.org/ecma-262/9.0/#sec-numbertorawbytes',
|
||||
NumberToString: 'https://ecma-international.org/ecma-262/9.0/#sec-tostring-applied-to-the-number-type',
|
||||
ObjectCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-objectcreate',
|
||||
ObjectDefineProperties: 'https://ecma-international.org/ecma-262/9.0/#sec-objectdefineproperties',
|
||||
OrdinaryCallBindThis: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarycallbindthis',
|
||||
OrdinaryCallEvaluateBody: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarycallevaluatebody',
|
||||
OrdinaryCreateFromConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarycreatefromconstructor',
|
||||
OrdinaryDefineOwnProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarydefineownproperty',
|
||||
OrdinaryDelete: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarydelete',
|
||||
OrdinaryGet: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryget',
|
||||
OrdinaryGetOwnProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarygetownproperty',
|
||||
OrdinaryGetPrototypeOf: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarygetprototypeof',
|
||||
OrdinaryHasInstance: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryhasinstance',
|
||||
OrdinaryHasProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryhasproperty',
|
||||
OrdinaryIsExtensible: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryisextensible',
|
||||
OrdinaryOwnPropertyKeys: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryownpropertykeys',
|
||||
OrdinaryPreventExtensions: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarypreventextensions',
|
||||
OrdinarySet: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinaryset',
|
||||
OrdinarySetPrototypeOf: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarysetprototypeof',
|
||||
OrdinarySetWithOwnDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarysetwithowndescriptor',
|
||||
OrdinaryToPrimitive: 'https://ecma-international.org/ecma-262/9.0/#sec-ordinarytoprimitive',
|
||||
ParseModule: 'https://ecma-international.org/ecma-262/9.0/#sec-parsemodule',
|
||||
ParseScript: 'https://ecma-international.org/ecma-262/9.0/#sec-parse-script',
|
||||
PerformEval: 'https://ecma-international.org/ecma-262/9.0/#sec-performeval',
|
||||
PerformPromiseAll: 'https://ecma-international.org/ecma-262/9.0/#sec-performpromiseall',
|
||||
PerformPromiseRace: 'https://ecma-international.org/ecma-262/9.0/#sec-performpromiserace',
|
||||
PerformPromiseThen: 'https://ecma-international.org/ecma-262/9.0/#sec-performpromisethen',
|
||||
PrepareForOrdinaryCall: 'https://ecma-international.org/ecma-262/9.0/#sec-prepareforordinarycall',
|
||||
PrepareForTailCall: 'https://ecma-international.org/ecma-262/9.0/#sec-preparefortailcall',
|
||||
PromiseReactionJob: 'https://ecma-international.org/ecma-262/9.0/#sec-promisereactionjob',
|
||||
PromiseResolve: 'https://ecma-international.org/ecma-262/9.0/#sec-promise-resolve',
|
||||
PromiseResolveThenableJob: 'https://ecma-international.org/ecma-262/9.0/#sec-promiseresolvethenablejob',
|
||||
ProxyCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-proxycreate',
|
||||
PutValue: 'https://ecma-international.org/ecma-262/9.0/#sec-putvalue',
|
||||
QuoteJSONString: 'https://ecma-international.org/ecma-262/9.0/#sec-quotejsonstring',
|
||||
RawBytesToNumber: 'https://ecma-international.org/ecma-262/9.0/#sec-rawbytestonumber',
|
||||
'reads-bytes-from': 'https://ecma-international.org/ecma-262/9.0/#sec-reads-bytes-from',
|
||||
'reads-from': 'https://ecma-international.org/ecma-262/9.0/#sec-reads-from',
|
||||
RegExpAlloc: 'https://ecma-international.org/ecma-262/9.0/#sec-regexpalloc',
|
||||
RegExpBuiltinExec: 'https://ecma-international.org/ecma-262/9.0/#sec-regexpbuiltinexec',
|
||||
RegExpCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-regexpcreate',
|
||||
RegExpExec: 'https://ecma-international.org/ecma-262/9.0/#sec-regexpexec',
|
||||
RegExpInitialize: 'https://ecma-international.org/ecma-262/9.0/#sec-regexpinitialize',
|
||||
RejectPromise: 'https://ecma-international.org/ecma-262/9.0/#sec-rejectpromise',
|
||||
RemoveWaiter: 'https://ecma-international.org/ecma-262/9.0/#sec-removewaiter',
|
||||
RemoveWaiters: 'https://ecma-international.org/ecma-262/9.0/#sec-removewaiters',
|
||||
RepeatMatcher: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-repeatmatcher-abstract-operation',
|
||||
RequireObjectCoercible: 'https://ecma-international.org/ecma-262/9.0/#sec-requireobjectcoercible',
|
||||
ResolveBinding: 'https://ecma-international.org/ecma-262/9.0/#sec-resolvebinding',
|
||||
ResolveThisBinding: 'https://ecma-international.org/ecma-262/9.0/#sec-resolvethisbinding',
|
||||
ReturnIfAbrupt: 'https://ecma-international.org/ecma-262/9.0/#sec-returnifabrupt',
|
||||
RunJobs: 'https://ecma-international.org/ecma-262/9.0/#sec-runjobs',
|
||||
SameValue: 'https://ecma-international.org/ecma-262/9.0/#sec-samevalue',
|
||||
SameValueNonNumber: 'https://ecma-international.org/ecma-262/9.0/#sec-samevaluenonnumber',
|
||||
SameValueZero: 'https://ecma-international.org/ecma-262/9.0/#sec-samevaluezero',
|
||||
ScriptEvaluation: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-scriptevaluation',
|
||||
ScriptEvaluationJob: 'https://ecma-international.org/ecma-262/9.0/#sec-scriptevaluationjob',
|
||||
SecFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-SecFromTime',
|
||||
SecondsPerMinute: 'https://ecma-international.org/ecma-262/9.0/#eqn-SecondsPerMinute',
|
||||
SerializeJSONArray: 'https://ecma-international.org/ecma-262/9.0/#sec-serializejsonarray',
|
||||
SerializeJSONObject: 'https://ecma-international.org/ecma-262/9.0/#sec-serializejsonobject',
|
||||
SerializeJSONProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-serializejsonproperty',
|
||||
Set: 'https://ecma-international.org/ecma-262/9.0/#sec-set-o-p-v-throw',
|
||||
SetDefaultGlobalBindings: 'https://ecma-international.org/ecma-262/9.0/#sec-setdefaultglobalbindings',
|
||||
SetFunctionLength: 'https://ecma-international.org/ecma-262/9.0/#sec-setfunctionlength',
|
||||
SetFunctionName: 'https://ecma-international.org/ecma-262/9.0/#sec-setfunctionname',
|
||||
SetImmutablePrototype: 'https://ecma-international.org/ecma-262/9.0/#sec-set-immutable-prototype',
|
||||
SetIntegrityLevel: 'https://ecma-international.org/ecma-262/9.0/#sec-setintegritylevel',
|
||||
SetRealmGlobalObject: 'https://ecma-international.org/ecma-262/9.0/#sec-setrealmglobalobject',
|
||||
SetValueInBuffer: 'https://ecma-international.org/ecma-262/9.0/#sec-setvalueinbuffer',
|
||||
SetViewValue: 'https://ecma-international.org/ecma-262/9.0/#sec-setviewvalue',
|
||||
SharedDataBlockEventSet: 'https://ecma-international.org/ecma-262/9.0/#sec-sharedatablockeventset',
|
||||
SortCompare: 'https://ecma-international.org/ecma-262/9.0/#sec-sortcompare',
|
||||
SpeciesConstructor: 'https://ecma-international.org/ecma-262/9.0/#sec-speciesconstructor',
|
||||
SplitMatch: 'https://ecma-international.org/ecma-262/9.0/#sec-splitmatch',
|
||||
'Strict Equality Comparison': 'https://ecma-international.org/ecma-262/9.0/#sec-strict-equality-comparison',
|
||||
StringCreate: 'https://ecma-international.org/ecma-262/9.0/#sec-stringcreate',
|
||||
StringGetOwnProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-stringgetownproperty',
|
||||
Suspend: 'https://ecma-international.org/ecma-262/9.0/#sec-suspend',
|
||||
SymbolDescriptiveString: 'https://ecma-international.org/ecma-262/9.0/#sec-symboldescriptivestring',
|
||||
'synchronizes-with': 'https://ecma-international.org/ecma-262/9.0/#sec-synchronizes-with',
|
||||
TestIntegrityLevel: 'https://ecma-international.org/ecma-262/9.0/#sec-testintegritylevel',
|
||||
thisBooleanValue: 'https://ecma-international.org/ecma-262/9.0/#sec-thisbooleanvalue',
|
||||
thisNumberValue: 'https://ecma-international.org/ecma-262/9.0/#sec-thisnumbervalue',
|
||||
thisStringValue: 'https://ecma-international.org/ecma-262/9.0/#sec-thisstringvalue',
|
||||
thisSymbolValue: 'https://ecma-international.org/ecma-262/9.0/#sec-thissymbolvalue',
|
||||
thisTimeValue: 'https://ecma-international.org/ecma-262/9.0/#sec-thistimevalue',
|
||||
ThrowCompletion: 'https://ecma-international.org/ecma-262/9.0/#sec-throwcompletion',
|
||||
TimeClip: 'https://ecma-international.org/ecma-262/9.0/#sec-timeclip',
|
||||
TimeFromYear: 'https://ecma-international.org/ecma-262/9.0/#eqn-TimeFromYear',
|
||||
TimeString: 'https://ecma-international.org/ecma-262/9.0/#sec-timestring',
|
||||
TimeWithinDay: 'https://ecma-international.org/ecma-262/9.0/#eqn-TimeWithinDay',
|
||||
TimeZoneString: 'https://ecma-international.org/ecma-262/9.0/#sec-timezoneestring',
|
||||
ToBoolean: 'https://ecma-international.org/ecma-262/9.0/#sec-toboolean',
|
||||
ToDateString: 'https://ecma-international.org/ecma-262/9.0/#sec-todatestring',
|
||||
ToIndex: 'https://ecma-international.org/ecma-262/9.0/#sec-toindex',
|
||||
ToInt16: 'https://ecma-international.org/ecma-262/9.0/#sec-toint16',
|
||||
ToInt32: 'https://ecma-international.org/ecma-262/9.0/#sec-toint32',
|
||||
ToInt8: 'https://ecma-international.org/ecma-262/9.0/#sec-toint8',
|
||||
ToInteger: 'https://ecma-international.org/ecma-262/9.0/#sec-tointeger',
|
||||
ToLength: 'https://ecma-international.org/ecma-262/9.0/#sec-tolength',
|
||||
ToNumber: 'https://ecma-international.org/ecma-262/9.0/#sec-tonumber',
|
||||
ToObject: 'https://ecma-international.org/ecma-262/9.0/#sec-toobject',
|
||||
TopLevelModuleEvaluationJob: 'https://ecma-international.org/ecma-262/9.0/#sec-toplevelmoduleevaluationjob',
|
||||
ToPrimitive: 'https://ecma-international.org/ecma-262/9.0/#sec-toprimitive',
|
||||
ToPropertyDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-topropertydescriptor',
|
||||
ToPropertyKey: 'https://ecma-international.org/ecma-262/9.0/#sec-topropertykey',
|
||||
ToString: 'https://ecma-international.org/ecma-262/9.0/#sec-tostring',
|
||||
ToUint16: 'https://ecma-international.org/ecma-262/9.0/#sec-touint16',
|
||||
ToUint32: 'https://ecma-international.org/ecma-262/9.0/#sec-touint32',
|
||||
ToUint8: 'https://ecma-international.org/ecma-262/9.0/#sec-touint8',
|
||||
ToUint8Clamp: 'https://ecma-international.org/ecma-262/9.0/#sec-touint8clamp',
|
||||
TriggerPromiseReactions: 'https://ecma-international.org/ecma-262/9.0/#sec-triggerpromisereactions',
|
||||
Type: 'https://ecma-international.org/ecma-262/9.0/#sec-ecmascript-data-types-and-values',
|
||||
TypedArrayCreate: 'https://ecma-international.org/ecma-262/9.0/#typedarray-create',
|
||||
TypedArraySpeciesCreate: 'https://ecma-international.org/ecma-262/9.0/#typedarray-species-create',
|
||||
UnicodeEscape: 'https://ecma-international.org/ecma-262/9.0/#sec-unicodeescape',
|
||||
UnicodeMatchProperty: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-unicodematchproperty-p',
|
||||
UnicodeMatchPropertyValue: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-unicodematchpropertyvalue-p-v',
|
||||
UpdateEmpty: 'https://ecma-international.org/ecma-262/9.0/#sec-updateempty',
|
||||
UTC: 'https://ecma-international.org/ecma-262/9.0/#sec-utc-t',
|
||||
UTF16Decode: 'https://ecma-international.org/ecma-262/9.0/#sec-utf16decode',
|
||||
UTF16Encoding: 'https://ecma-international.org/ecma-262/9.0/#sec-utf16encoding',
|
||||
ValidateAndApplyPropertyDescriptor: 'https://ecma-international.org/ecma-262/9.0/#sec-validateandapplypropertydescriptor',
|
||||
ValidateAtomicAccess: 'https://ecma-international.org/ecma-262/9.0/#sec-validateatomicaccess',
|
||||
ValidateSharedIntegerTypedArray: 'https://ecma-international.org/ecma-262/9.0/#sec-validatesharedintegertypedarray',
|
||||
ValidateTypedArray: 'https://ecma-international.org/ecma-262/9.0/#sec-validatetypedarray',
|
||||
ValueOfReadEvent: 'https://ecma-international.org/ecma-262/9.0/#sec-valueofreadevent',
|
||||
WakeWaiter: 'https://ecma-international.org/ecma-262/9.0/#sec-wakewaiter',
|
||||
WeekDay: 'https://ecma-international.org/ecma-262/9.0/#sec-week-day',
|
||||
WordCharacters: 'https://ecma-international.org/ecma-262/9.0/#sec-runtime-semantics-wordcharacters-abstract-operation',
|
||||
YearFromTime: 'https://ecma-international.org/ecma-262/9.0/#eqn-YearFromTime'
|
||||
};
|
9
node_modules/es-abstract/operations/es5.js
generated
vendored
Normal file
9
node_modules/es-abstract/operations/es5.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
IsAccessorDescriptor: 'https://ecma-international.org/ecma-262/5.1/#sec-8.10.1',
|
||||
IsDataDescriptor: 'https://ecma-international.org/ecma-262/5.1/#sec-8.10.2',
|
||||
IsGenericDescriptor: 'https://ecma-international.org/ecma-262/5.1/#sec-8.10.3',
|
||||
FromPropertyDescriptor: 'https://ecma-international.org/ecma-262/5.1/#sec-8.10.4',
|
||||
ToPropertyDescriptor: 'https://ecma-international.org/ecma-262/5.1/#sec-8.10.5'
|
||||
};
|
61
node_modules/es-abstract/operations/getOps.js
generated
vendored
Executable file
61
node_modules/es-abstract/operations/getOps.js
generated
vendored
Executable file
|
@ -0,0 +1,61 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var execSync = require('child_process').execSync;
|
||||
|
||||
var $ = require('cheerio');
|
||||
var fromEntries = require('object.fromentries');
|
||||
|
||||
if (process.argv.length !== 3) {
|
||||
throw new RangeError('please provide a year');
|
||||
}
|
||||
var year = parseInt(process.argv[2]);
|
||||
if (year < 2016) {
|
||||
throw new RangeError('ES2016+ only');
|
||||
}
|
||||
var edition = year - 2009;
|
||||
|
||||
var specHTMLurl = new URL('https://raw.githubusercontent.com/tc39/ecma262/es' + year + '/spec.html');
|
||||
|
||||
var specHTML = String(execSync('curl --silent ' + specHTMLurl));
|
||||
|
||||
var root = $(specHTML);
|
||||
|
||||
var aOps = root.filter('[aoid]').add(root.find('[aoid]'));
|
||||
|
||||
var missings = [];
|
||||
|
||||
var entries = aOps.toArray().map(function (x) {
|
||||
var op = $(x);
|
||||
var aoid = op.attr('aoid');
|
||||
var id = op.attr('id');
|
||||
|
||||
if (!id) {
|
||||
id = op.closest('[id]').attr('id');
|
||||
}
|
||||
|
||||
if (!id) {
|
||||
missings.push(aoid);
|
||||
}
|
||||
|
||||
return [
|
||||
aoid,
|
||||
'https://ecma-international.org/ecma-262/' + edition + '.0/#' + id
|
||||
];
|
||||
});
|
||||
|
||||
if (missings.length > 0) {
|
||||
console.error('Missing URLs:', missings);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
entries.sort(function (a, b) { return a[0].localeCompare(b[0]); });
|
||||
|
||||
var obj = fromEntries(entries);
|
||||
|
||||
var outputPath = path.join('operations', year + '.js');
|
||||
fs.writeFileSync(outputPath, '\'use strict\';\n\nmodule.exports = ' + JSON.stringify(obj, null, '\t')+ ';\n');
|
||||
|
||||
console.log('npx eslint --quiet --fix ' + outputPath);
|
||||
execSync('npx eslint --quiet --fix ' + outputPath);
|
132
node_modules/es-abstract/package.json
generated
vendored
Normal file
132
node_modules/es-abstract/package.json
generated
vendored
Normal file
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
"es-abstract@1.13.0",
|
||||
"/Users/eric/repos/actions/setup-node"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "es-abstract@1.13.0",
|
||||
"_id": "es-abstract@1.13.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==",
|
||||
"_location": "/es-abstract",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "es-abstract@1.13.0",
|
||||
"name": "es-abstract",
|
||||
"escapedName": "es-abstract",
|
||||
"rawSpec": "1.13.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.13.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/object.getownpropertydescriptors"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz",
|
||||
"_spec": "1.13.0",
|
||||
"_where": "/Users/eric/repos/actions/setup-node",
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/es-abstract/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"es-to-primitive": "^1.2.0",
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3",
|
||||
"is-callable": "^1.1.4",
|
||||
"is-regex": "^1.0.4",
|
||||
"object-keys": "^1.0.12"
|
||||
},
|
||||
"description": "ECMAScript spec abstract operations.",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^13.1.1",
|
||||
"cheerio": "^1.0.0-rc.2",
|
||||
"editorconfig-tools": "^0.1.1",
|
||||
"eslint": "^5.11.1",
|
||||
"foreach": "^2.0.5",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.6.0",
|
||||
"object-is": "^1.0.1",
|
||||
"object.assign": "^4.1.0",
|
||||
"object.fromentries": "^2.0.0",
|
||||
"replace": "^1.0.1",
|
||||
"safe-publish-latest": "^1.1.2",
|
||||
"semver": "^5.6.0",
|
||||
"tape": "^4.9.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"greenkeeper": {
|
||||
"//": "nyc is ignored because it requires node 4+, and we support older than that",
|
||||
"ignore": [
|
||||
"nyc"
|
||||
]
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/es-abstract#readme",
|
||||
"keywords": [
|
||||
"ECMAScript",
|
||||
"ES",
|
||||
"abstract",
|
||||
"operation",
|
||||
"abstract operation",
|
||||
"JavaScript",
|
||||
"ES5",
|
||||
"ES6",
|
||||
"ES7"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "es-abstract",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ljharb/es-abstract.git"
|
||||
},
|
||||
"scripts": {
|
||||
"audit": "npm audit",
|
||||
"coverage": "nyc npm run --silent tests-only >/dev/null",
|
||||
"eccheck": "editorconfig-tools check *.js **/*.js > /dev/null",
|
||||
"lint": "eslint test/*.js *.js",
|
||||
"postaudit": "rm package-lock.json",
|
||||
"postcoverage": "nyc report",
|
||||
"posttest": "npm run audit",
|
||||
"preaudit": "npm install --package-lock --package-lock-only",
|
||||
"prepublish": "safe-publish-latest",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run tests-only",
|
||||
"tests-only": "node test"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"version": "1.13.0"
|
||||
}
|
13
node_modules/es-abstract/test/.eslintrc
generated
vendored
Normal file
13
node_modules/es-abstract/test/.eslintrc
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"rules": {
|
||||
"id-length": 0,
|
||||
"max-lines": 0,
|
||||
"max-lines-per-function": 0,
|
||||
"max-statements-per-line": [2, { "max": 3 }],
|
||||
"max-nested-callbacks": [2, 4],
|
||||
"max-statements": 0,
|
||||
"no-implicit-coercion": 1,
|
||||
"no-invalid-this": 1,
|
||||
"object-curly-newline": 0,
|
||||
}
|
||||
}
|
34
node_modules/es-abstract/test/GetIntrinsic.js
generated
vendored
Normal file
34
node_modules/es-abstract/test/GetIntrinsic.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('../GetIntrinsic');
|
||||
|
||||
var test = require('tape');
|
||||
var forEach = require('foreach');
|
||||
var debug = require('object-inspect');
|
||||
|
||||
var v = require('./helpers/values');
|
||||
|
||||
test('export', function (t) {
|
||||
t.equal(typeof GetIntrinsic, 'function', 'it is a function');
|
||||
t.equal(GetIntrinsic.length, 2, 'function has length of 2');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('throws', function (t) {
|
||||
t['throws'](
|
||||
function () { GetIntrinsic('not an intrinsic'); },
|
||||
SyntaxError,
|
||||
'nonexistent intrinsic throws a syntax error'
|
||||
);
|
||||
|
||||
forEach(v.nonBooleans, function (nonBoolean) {
|
||||
t['throws'](
|
||||
function () { GetIntrinsic('%', nonBoolean); },
|
||||
TypeError,
|
||||
debug(nonBoolean) + ' is not a Boolean'
|
||||
);
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
26
node_modules/es-abstract/test/diffOps.js
generated
vendored
Normal file
26
node_modules/es-abstract/test/diffOps.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
'use strict';
|
||||
|
||||
var keys = require('object-keys');
|
||||
var forEach = require('foreach');
|
||||
|
||||
module.exports = function diffOperations(actual, expected, expectedMissing) {
|
||||
var actualKeys = keys(actual);
|
||||
var expectedKeys = keys(expected);
|
||||
|
||||
var extra = [];
|
||||
var missing = [];
|
||||
forEach(actualKeys, function (op) {
|
||||
if (!(op in expected)) {
|
||||
extra.push(op);
|
||||
} else if (expectedMissing.indexOf(op) !== -1) {
|
||||
extra.push(op);
|
||||
}
|
||||
});
|
||||
forEach(expectedKeys, function (op) {
|
||||
if (typeof actual[op] !== 'function' && expectedMissing.indexOf(op) === -1) {
|
||||
missing.push(op);
|
||||
}
|
||||
});
|
||||
|
||||
return { missing: missing, extra: extra };
|
||||
};
|
9
node_modules/es-abstract/test/es2015.js
generated
vendored
Normal file
9
node_modules/es-abstract/test/es2015.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
var ES = require('../').ES2015;
|
||||
|
||||
var ops = require('../operations/2015');
|
||||
|
||||
var expectedMissing = ['Construct', 'SetIntegrityLevel', 'TestIntegrityLevel', 'CreateArrayFromList', 'CreateListFromArrayLike', 'OrdinaryHasInstance', 'CreateListIterator', 'RegExpBuiltinExec', 'IsPromise', 'NormalCompletion'];
|
||||
|
||||
require('./tests').es2015(ES, ops, expectedMissing);
|
9
node_modules/es-abstract/test/es2016.js
generated
vendored
Normal file
9
node_modules/es-abstract/test/es2016.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
var ES = require('../').ES2016;
|
||||
|
||||
var ops = require('../operations/2016');
|
||||
|
||||
var expectedMissing = ['Abstract Equality Comparison', 'Abstract Relational Comparison', 'AddRestrictedFunctionProperties', 'AllocateArrayBuffer', 'AllocateTypedArray', 'AllocateTypedArrayBuffer', 'ArrayCreate', 'ArraySetLength', 'BlockDeclarationInstantiation', 'BoundFunctionCreate', 'Canonicalize', 'CharacterRange', 'CharacterRangeOrUnion', 'CharacterSetMatcher', 'CloneArrayBuffer', 'Completion', 'Construct', 'CopyDataBlockBytes', 'CreateArrayFromList', 'CreateArrayIterator', 'CreateBuiltinFunction', 'CreateByteDataBlock', 'CreateDynamicFunction', 'CreateHTML', 'CreateIntrinsics', 'CreateListFromArrayLike', 'CreateListIterator', 'CreateMapIterator', 'CreateMappedArgumentsObject', 'CreatePerIterationEnvironment', 'CreateRealm', 'CreateResolvingFunctions', 'CreateSetIterator', 'CreateStringIterator', 'CreateUnmappedArgumentsObject', 'DateFromTime', 'Day', 'DayFromYear', 'DayWithinYear', 'DaysInYear', 'Decode', 'DetachArrayBuffer', 'Encode', 'EnqueueJob', 'EnumerateObjectProperties', 'EscapeRegExpPattern', 'EvalDeclarationInstantiation', 'EvaluateCall', 'EvaluateDirectCall', 'EvaluateNew', 'ForBodyEvaluation', 'ForIn/OfBodyEvaluation', 'ForIn/OfHeadEvaluation', 'FulfillPromise', 'FunctionAllocate', 'FunctionCreate', 'FunctionDeclarationInstantiation', 'FunctionInitialize', 'GeneratorFunctionCreate', 'GeneratorResume', 'GeneratorResumeAbrupt', 'GeneratorStart', 'GeneratorValidate', 'GeneratorYield', 'GetActiveScriptOrModule', 'GetFunctionRealm', 'GetGlobalObject', 'GetIdentifierReference', 'GetModuleNamespace', 'GetNewTarget', 'GetOwnPropertyKeys', 'GetPrototypeFromConstructor', 'GetSubstitution', 'GetSuperConstructor', 'GetTemplateObject', 'GetThisEnvironment', 'GetThisValue', 'GetValue', 'GetValueFromBuffer', 'GetViewValue', 'GlobalDeclarationInstantiation', 'HostPromiseRejectionTracker', 'HostReportErrors', 'HostResolveImportedModule', 'HourFromTime', 'HoursPerDay', 'IfAbruptRejectPromise', 'ImportedLocalNames', 'InLeapYear', 'InitializeBoundName', 'InitializeHostDefinedRealm', 'InitializeReferencedBinding', 'InstanceofOperator', 'IntegerIndexedElementGet', 'IntegerIndexedElementSet', 'IntegerIndexedObjectCreate', 'InternalizeJSONProperty', 'IsAnonymousFunctionDefinition', 'IsCompatiblePropertyDescriptor', 'IsDetachedBuffer', 'IsInTailPosition', 'IsLabelledFunction', 'IsPromise', 'IsWordChar', 'IterableToArrayLike', 'LocalTime', 'LoopContinues', 'MakeArgGetter', 'MakeArgSetter', 'MakeClassConstructor', 'MakeConstructor', 'MakeDate', 'MakeDay', 'MakeMethod', 'MakeSuperPropertyReference', 'MakeTime', 'MinFromTime', 'MinutesPerHour', 'ModuleNamespaceCreate', 'MonthFromTime', 'NewDeclarativeEnvironment', 'NewFunctionEnvironment', 'NewGlobalEnvironment', 'NewModuleEnvironment', 'NewObjectEnvironment', 'NewPromiseCapability', 'NextJob', 'NormalCompletion', 'ObjectDefineProperties', 'OrdinaryCallBindThis', 'OrdinaryCallEvaluateBody', 'OrdinaryCreateFromConstructor', 'OrdinaryDefineOwnProperty', 'OrdinaryDelete', 'OrdinaryGet', 'OrdinaryGetOwnProperty', 'OrdinaryGetPrototypeOf', 'OrdinaryHasInstance', 'OrdinaryHasProperty', 'OrdinaryIsExtensible', 'OrdinaryOwnPropertyKeys', 'OrdinaryPreventExtensions', 'OrdinarySet', 'OrdinarySetPrototypeOf', 'ParseModule', 'ParseScript', 'PerformEval', 'PerformPromiseAll', 'PerformPromiseRace', 'PerformPromiseThen', 'PrepareForOrdinaryCall', 'PrepareForTailCall', 'PromiseReactionJob', 'PromiseResolveThenableJob', 'ProxyCreate', 'PutValue', 'QuoteJSONString', 'RegExpAlloc', 'RegExpBuiltinExec', 'RegExpCreate', 'RegExpInitialize', 'RejectPromise', 'RepeatMatcher', 'ResolveBinding', 'ResolveThisBinding', 'ReturnIfAbrupt', 'ScriptEvaluation', 'ScriptEvaluationJob', 'SecFromTime', 'SecondsPerMinute', 'SerializeJSONArray', 'SerializeJSONObject', 'SerializeJSONProperty', 'SetDefaultGlobalBindings', 'SetFunctionName', 'SetIntegrityLevel', 'SetRealmGlobalObject', 'SetValueInBuffer', 'SetViewValue', 'SortCompare', 'SplitMatch', 'Strict Equality Comparison', 'StringCreate', 'SymbolDescriptiveString', 'TestIntegrityLevel', 'TimeClip', 'TimeFromYear', 'TimeWithinDay', 'ToDateString', 'ToString Applied to the Number Type', 'TopLevelModuleEvaluationJob', 'TriggerPromiseReactions', 'TypedArrayCreate', 'TypedArraySpeciesCreate', 'UTC', 'UTF16Decode', 'UTF16Encoding', 'UpdateEmpty', 'ValidateAndApplyPropertyDescriptor', 'ValidateTypedArray', 'WeekDay', 'YearFromTime', 'abs', 'floor', 'max', 'min', 'modulo', 'msFromTime', 'msPerDay', 'msPerHour', 'msPerMinute', 'msPerSecond'];
|
||||
|
||||
require('./tests').es2016(ES, ops, expectedMissing);
|
9
node_modules/es-abstract/test/es2017.js
generated
vendored
Normal file
9
node_modules/es-abstract/test/es2017.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9
node_modules/es-abstract/test/es2018.js
generated
vendored
Normal file
9
node_modules/es-abstract/test/es2018.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
415
node_modules/es-abstract/test/es5.js
generated
vendored
Normal file
415
node_modules/es-abstract/test/es5.js
generated
vendored
Normal file
|
@ -0,0 +1,415 @@
|
|||
'use strict';
|
||||
|
||||
var ES = require('../').ES5;
|
||||
var test = require('tape');
|
||||
|
||||
var forEach = require('foreach');
|
||||
var is = require('object-is');
|
||||
|
||||
var coercibleObject = { valueOf: function () { return '3'; }, toString: function () { return 42; } };
|
||||
var coercibleFnObject = {
|
||||
valueOf: function () { return function valueOfFn() {}; },
|
||||
toString: function () { return 42; }
|
||||
};
|
||||
var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } };
|
||||
var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; } };
|
||||
var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; } };
|
||||
var uncoercibleFnObject = {
|
||||
valueOf: function () { return function valueOfFn() {}; },
|
||||
toString: function () { return function toStrFn() {}; }
|
||||
};
|
||||
var objects = [{}, coercibleObject, toStringOnlyObject, valueOfOnlyObject];
|
||||
var numbers = [0, -0, Infinity, -Infinity, 42];
|
||||
var nonNullPrimitives = [true, false, 'foo', ''].concat(numbers);
|
||||
var primitives = [undefined, null].concat(nonNullPrimitives);
|
||||
|
||||
test('ToPrimitive', function (t) {
|
||||
t.test('primitives', function (st) {
|
||||
var testPrimitive = function (primitive) {
|
||||
st.ok(is(ES.ToPrimitive(primitive), primitive), primitive + ' is returned correctly');
|
||||
};
|
||||
forEach(primitives, testPrimitive);
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('objects', function (st) {
|
||||
st.equal(ES.ToPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject coerces to valueOf');
|
||||
st.equal(ES.ToPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with hint Number coerces to valueOf');
|
||||
st.equal(ES.ToPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject with hint String coerces to toString');
|
||||
st.equal(ES.ToPrimitive(coercibleFnObject), coercibleFnObject.toString(), 'coercibleFnObject coerces to toString');
|
||||
st.equal(ES.ToPrimitive(toStringOnlyObject), toStringOnlyObject.toString(), 'toStringOnlyObject returns toString');
|
||||
st.equal(ES.ToPrimitive(valueOfOnlyObject), valueOfOnlyObject.valueOf(), 'valueOfOnlyObject returns valueOf');
|
||||
st.equal(ES.ToPrimitive({}), '[object Object]', '{} with no hint coerces to Object#toString');
|
||||
st.equal(ES.ToPrimitive({}, String), '[object Object]', '{} with hint String coerces to Object#toString');
|
||||
st.equal(ES.ToPrimitive({}, Number), '[object Object]', '{} with hint Number coerces to Object#toString');
|
||||
st['throws'](function () { return ES.ToPrimitive(uncoercibleObject); }, TypeError, 'uncoercibleObject throws a TypeError');
|
||||
st['throws'](function () { return ES.ToPrimitive(uncoercibleFnObject); }, TypeError, 'uncoercibleFnObject throws a TypeError');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToBoolean', function (t) {
|
||||
t.equal(false, ES.ToBoolean(undefined), 'undefined coerces to false');
|
||||
t.equal(false, ES.ToBoolean(null), 'null coerces to false');
|
||||
t.equal(false, ES.ToBoolean(false), 'false returns false');
|
||||
t.equal(true, ES.ToBoolean(true), 'true returns true');
|
||||
forEach([0, -0, NaN], function (falsyNumber) {
|
||||
t.equal(false, ES.ToBoolean(falsyNumber), 'falsy number ' + falsyNumber + ' coerces to false');
|
||||
});
|
||||
forEach([Infinity, 42, 1, -Infinity], function (truthyNumber) {
|
||||
t.equal(true, ES.ToBoolean(truthyNumber), 'truthy number ' + truthyNumber + ' coerces to true');
|
||||
});
|
||||
t.equal(false, ES.ToBoolean(''), 'empty string coerces to false');
|
||||
t.equal(true, ES.ToBoolean('foo'), 'nonempty string coerces to true');
|
||||
forEach(objects, function (obj) {
|
||||
t.equal(true, ES.ToBoolean(obj), 'object coerces to true');
|
||||
});
|
||||
t.equal(true, ES.ToBoolean(uncoercibleObject), 'uncoercibleObject coerces to true');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToNumber', function (t) {
|
||||
t.ok(is(NaN, ES.ToNumber(undefined)), 'undefined coerces to NaN');
|
||||
t.ok(is(ES.ToNumber(null), 0), 'null coerces to +0');
|
||||
t.ok(is(ES.ToNumber(false), 0), 'false coerces to +0');
|
||||
t.equal(1, ES.ToNumber(true), 'true coerces to 1');
|
||||
t.ok(is(NaN, ES.ToNumber(NaN)), 'NaN returns itself');
|
||||
forEach([0, -0, 42, Infinity, -Infinity], function (num) {
|
||||
t.equal(num, ES.ToNumber(num), num + ' returns itself');
|
||||
});
|
||||
forEach(['foo', '0', '4a', '2.0', 'Infinity', '-Infinity'], function (numString) {
|
||||
t.ok(is(+numString, ES.ToNumber(numString)), '"' + numString + '" coerces to ' + Number(numString));
|
||||
});
|
||||
forEach(objects, function (object) {
|
||||
t.ok(is(ES.ToNumber(object), ES.ToNumber(ES.ToPrimitive(object))), 'object ' + object + ' coerces to same as ToPrimitive of object does');
|
||||
});
|
||||
t['throws'](function () { return ES.ToNumber(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToInteger', function (t) {
|
||||
t.ok(is(0, ES.ToInteger(NaN)), 'NaN coerces to +0');
|
||||
forEach([0, Infinity, 42], function (num) {
|
||||
t.ok(is(num, ES.ToInteger(num)), num + ' returns itself');
|
||||
t.ok(is(-num, ES.ToInteger(-num)), '-' + num + ' returns itself');
|
||||
});
|
||||
t.equal(3, ES.ToInteger(Math.PI), 'pi returns 3');
|
||||
t['throws'](function () { return ES.ToInteger(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToInt32', function (t) {
|
||||
t.ok(is(0, ES.ToInt32(NaN)), 'NaN coerces to +0');
|
||||
forEach([0, Infinity], function (num) {
|
||||
t.ok(is(0, ES.ToInt32(num)), num + ' returns +0');
|
||||
t.ok(is(0, ES.ToInt32(-num)), '-' + num + ' returns +0');
|
||||
});
|
||||
t['throws'](function () { return ES.ToInt32(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.ok(is(ES.ToInt32(0x100000000), 0), '2^32 returns +0');
|
||||
t.ok(is(ES.ToInt32(0x100000000 - 1), -1), '2^32 - 1 returns -1');
|
||||
t.ok(is(ES.ToInt32(0x80000000), -0x80000000), '2^31 returns -2^31');
|
||||
t.ok(is(ES.ToInt32(0x80000000 - 1), 0x80000000 - 1), '2^31 - 1 returns 2^31 - 1');
|
||||
forEach([0, Infinity, NaN, 0x100000000, 0x80000000, 0x10000, 0x42], function (num) {
|
||||
t.ok(is(ES.ToInt32(num), ES.ToInt32(ES.ToUint32(num))), 'ToInt32(x) === ToInt32(ToUint32(x)) for 0x' + num.toString(16));
|
||||
t.ok(is(ES.ToInt32(-num), ES.ToInt32(ES.ToUint32(-num))), 'ToInt32(x) === ToInt32(ToUint32(x)) for -0x' + num.toString(16));
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToUint32', function (t) {
|
||||
t.ok(is(0, ES.ToUint32(NaN)), 'NaN coerces to +0');
|
||||
forEach([0, Infinity], function (num) {
|
||||
t.ok(is(0, ES.ToUint32(num)), num + ' returns +0');
|
||||
t.ok(is(0, ES.ToUint32(-num)), '-' + num + ' returns +0');
|
||||
});
|
||||
t['throws'](function () { return ES.ToUint32(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.ok(is(ES.ToUint32(0x100000000), 0), '2^32 returns +0');
|
||||
t.ok(is(ES.ToUint32(0x100000000 - 1), 0x100000000 - 1), '2^32 - 1 returns 2^32 - 1');
|
||||
t.ok(is(ES.ToUint32(0x80000000), 0x80000000), '2^31 returns 2^31');
|
||||
t.ok(is(ES.ToUint32(0x80000000 - 1), 0x80000000 - 1), '2^31 - 1 returns 2^31 - 1');
|
||||
forEach([0, Infinity, NaN, 0x100000000, 0x80000000, 0x10000, 0x42], function (num) {
|
||||
t.ok(is(ES.ToUint32(num), ES.ToUint32(ES.ToInt32(num))), 'ToUint32(x) === ToUint32(ToInt32(x)) for 0x' + num.toString(16));
|
||||
t.ok(is(ES.ToUint32(-num), ES.ToUint32(ES.ToInt32(-num))), 'ToUint32(x) === ToUint32(ToInt32(x)) for -0x' + num.toString(16));
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToUint16', function (t) {
|
||||
t.ok(is(0, ES.ToUint16(NaN)), 'NaN coerces to +0');
|
||||
forEach([0, Infinity], function (num) {
|
||||
t.ok(is(0, ES.ToUint16(num)), num + ' returns +0');
|
||||
t.ok(is(0, ES.ToUint16(-num)), '-' + num + ' returns +0');
|
||||
});
|
||||
t['throws'](function () { return ES.ToUint16(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.ok(is(ES.ToUint16(0x100000000), 0), '2^32 returns +0');
|
||||
t.ok(is(ES.ToUint16(0x100000000 - 1), 0x10000 - 1), '2^32 - 1 returns 2^16 - 1');
|
||||
t.ok(is(ES.ToUint16(0x80000000), 0), '2^31 returns +0');
|
||||
t.ok(is(ES.ToUint16(0x80000000 - 1), 0x10000 - 1), '2^31 - 1 returns 2^16 - 1');
|
||||
t.ok(is(ES.ToUint16(0x10000), 0), '2^16 returns +0');
|
||||
t.ok(is(ES.ToUint16(0x10000 - 1), 0x10000 - 1), '2^16 - 1 returns 2^16 - 1');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToString', function (t) {
|
||||
t['throws'](function () { return ES.ToString(uncoercibleObject); }, TypeError, 'uncoercibleObject throws');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToObject', function (t) {
|
||||
t['throws'](function () { return ES.ToObject(undefined); }, TypeError, 'undefined throws');
|
||||
t['throws'](function () { return ES.ToObject(null); }, TypeError, 'null throws');
|
||||
forEach(numbers, function (number) {
|
||||
var obj = ES.ToObject(number);
|
||||
t.equal(typeof obj, 'object', 'number ' + number + ' coerces to object');
|
||||
t.equal(true, obj instanceof Number, 'object of ' + number + ' is Number object');
|
||||
t.ok(is(obj.valueOf(), number), 'object of ' + number + ' coerces to ' + number);
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('CheckObjectCoercible', function (t) {
|
||||
t['throws'](function () { return ES.CheckObjectCoercible(undefined); }, TypeError, 'undefined throws');
|
||||
t['throws'](function () { return ES.CheckObjectCoercible(null); }, TypeError, 'null throws');
|
||||
var checkCoercible = function (value) {
|
||||
t.doesNotThrow(function () { return ES.CheckObjectCoercible(value); }, '"' + value + '" does not throw');
|
||||
};
|
||||
forEach(objects.concat(nonNullPrimitives), checkCoercible);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('IsCallable', function (t) {
|
||||
t.equal(true, ES.IsCallable(function () {}), 'function is callable');
|
||||
var nonCallables = [/a/g, {}, Object.prototype, NaN].concat(primitives);
|
||||
forEach(nonCallables, function (nonCallable) {
|
||||
t.equal(false, ES.IsCallable(nonCallable), nonCallable + ' is not callable');
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('SameValue', function (t) {
|
||||
t.equal(true, ES.SameValue(NaN, NaN), 'NaN is SameValue as NaN');
|
||||
t.equal(false, ES.SameValue(0, -0), '+0 is not SameValue as -0');
|
||||
forEach(objects.concat(primitives), function (val) {
|
||||
t.equal(val === val, ES.SameValue(val, val), '"' + val + '" is SameValue to itself');
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Type', function (t) {
|
||||
t.equal(ES.Type(), 'Undefined', 'Type() is Undefined');
|
||||
t.equal(ES.Type(undefined), 'Undefined', 'Type(undefined) is Undefined');
|
||||
t.equal(ES.Type(null), 'Null', 'Type(null) is Null');
|
||||
t.equal(ES.Type(true), 'Boolean', 'Type(true) is Boolean');
|
||||
t.equal(ES.Type(false), 'Boolean', 'Type(false) is Boolean');
|
||||
t.equal(ES.Type(0), 'Number', 'Type(0) is Number');
|
||||
t.equal(ES.Type(NaN), 'Number', 'Type(NaN) is Number');
|
||||
t.equal(ES.Type('abc'), 'String', 'Type("abc") is String');
|
||||
t.equal(ES.Type(function () {}), 'Object', 'Type(function () {}) is Object');
|
||||
t.equal(ES.Type({}), 'Object', 'Type({}) is Object');
|
||||
t.end();
|
||||
});
|
||||
|
||||
var bothDescriptor = function () {
|
||||
return { '[[Get]]': function () {}, '[[Value]]': true };
|
||||
};
|
||||
var accessorDescriptor = function () {
|
||||
return {
|
||||
'[[Get]]': function () {},
|
||||
'[[Enumerable]]': true,
|
||||
'[[Configurable]]': true
|
||||
};
|
||||
};
|
||||
var mutatorDescriptor = function () {
|
||||
return {
|
||||
'[[Set]]': function () {},
|
||||
'[[Enumerable]]': true,
|
||||
'[[Configurable]]': true
|
||||
};
|
||||
};
|
||||
var dataDescriptor = function () {
|
||||
return {
|
||||
'[[Value]]': 42,
|
||||
'[[Writable]]': false,
|
||||
'[[Configurable]]': false
|
||||
};
|
||||
};
|
||||
var genericDescriptor = function () {
|
||||
return {
|
||||
'[[Configurable]]': true,
|
||||
'[[Enumerable]]': false
|
||||
};
|
||||
};
|
||||
|
||||
test('IsPropertyDescriptor', function (t) {
|
||||
forEach(primitives, function (primitive) {
|
||||
t.equal(ES.IsPropertyDescriptor(primitive), false, primitive + ' is not a Property Descriptor');
|
||||
});
|
||||
|
||||
t.equal(ES.IsPropertyDescriptor({ invalid: true }), false, 'invalid keys not allowed on a Property Descriptor');
|
||||
|
||||
t.equal(ES.IsPropertyDescriptor({}), true, 'empty object is an incomplete Property Descriptor');
|
||||
|
||||
t.equal(ES.IsPropertyDescriptor(accessorDescriptor()), true, 'accessor descriptor is a Property Descriptor');
|
||||
t.equal(ES.IsPropertyDescriptor(mutatorDescriptor()), true, 'mutator descriptor is a Property Descriptor');
|
||||
t.equal(ES.IsPropertyDescriptor(dataDescriptor()), true, 'data descriptor is a Property Descriptor');
|
||||
t.equal(ES.IsPropertyDescriptor(genericDescriptor()), true, 'generic descriptor is a Property Descriptor');
|
||||
|
||||
t['throws'](function () {
|
||||
ES.IsPropertyDescriptor(bothDescriptor());
|
||||
}, TypeError, 'a Property Descriptor can not be both a Data and an Accessor Descriptor');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('IsAccessorDescriptor', function (t) {
|
||||
forEach(nonNullPrimitives.concat(null), function (primitive) {
|
||||
t['throws'](function () { ES.IsAccessorDescriptor(primitive); }, TypeError, primitive + ' is not a Property Descriptor');
|
||||
});
|
||||
|
||||
t.equal(ES.IsAccessorDescriptor(), false, 'no value is not an Accessor Descriptor');
|
||||
t.equal(ES.IsAccessorDescriptor(undefined), false, 'undefined value is not an Accessor Descriptor');
|
||||
|
||||
t.equal(ES.IsAccessorDescriptor(accessorDescriptor()), true, 'accessor descriptor is an Accessor Descriptor');
|
||||
t.equal(ES.IsAccessorDescriptor(mutatorDescriptor()), true, 'mutator descriptor is an Accessor Descriptor');
|
||||
t.equal(ES.IsAccessorDescriptor(dataDescriptor()), false, 'data descriptor is not an Accessor Descriptor');
|
||||
t.equal(ES.IsAccessorDescriptor(genericDescriptor()), false, 'generic descriptor is not an Accessor Descriptor');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('IsDataDescriptor', function (t) {
|
||||
forEach(nonNullPrimitives.concat(null), function (primitive) {
|
||||
t['throws'](function () { ES.IsDataDescriptor(primitive); }, TypeError, primitive + ' is not a Property Descriptor');
|
||||
});
|
||||
|
||||
t.equal(ES.IsDataDescriptor(), false, 'no value is not a Data Descriptor');
|
||||
t.equal(ES.IsDataDescriptor(undefined), false, 'undefined value is not a Data Descriptor');
|
||||
|
||||
t.equal(ES.IsDataDescriptor(accessorDescriptor()), false, 'accessor descriptor is not a Data Descriptor');
|
||||
t.equal(ES.IsDataDescriptor(mutatorDescriptor()), false, 'mutator descriptor is not a Data Descriptor');
|
||||
t.equal(ES.IsDataDescriptor(dataDescriptor()), true, 'data descriptor is a Data Descriptor');
|
||||
t.equal(ES.IsDataDescriptor(genericDescriptor()), false, 'generic descriptor is not a Data Descriptor');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('IsGenericDescriptor', function (t) {
|
||||
forEach(nonNullPrimitives.concat(null), function (primitive) {
|
||||
t['throws'](
|
||||
function () { ES.IsGenericDescriptor(primitive); },
|
||||
TypeError,
|
||||
primitive + ' is not a Property Descriptor'
|
||||
);
|
||||
});
|
||||
|
||||
t.equal(ES.IsGenericDescriptor(), false, 'no value is not a Data Descriptor');
|
||||
t.equal(ES.IsGenericDescriptor(undefined), false, 'undefined value is not a Data Descriptor');
|
||||
|
||||
t.equal(ES.IsGenericDescriptor(accessorDescriptor()), false, 'accessor descriptor is not a generic Descriptor');
|
||||
t.equal(ES.IsGenericDescriptor(mutatorDescriptor()), false, 'mutator descriptor is not a generic Descriptor');
|
||||
t.equal(ES.IsGenericDescriptor(dataDescriptor()), false, 'data descriptor is not a generic Descriptor');
|
||||
|
||||
t.equal(ES.IsGenericDescriptor(genericDescriptor()), true, 'generic descriptor is a generic Descriptor');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('FromPropertyDescriptor', function (t) {
|
||||
t.equal(ES.FromPropertyDescriptor(), undefined, 'no value begets undefined');
|
||||
t.equal(ES.FromPropertyDescriptor(undefined), undefined, 'undefined value begets undefined');
|
||||
|
||||
forEach(nonNullPrimitives.concat(null), function (primitive) {
|
||||
t['throws'](
|
||||
function () { ES.FromPropertyDescriptor(primitive); },
|
||||
TypeError,
|
||||
primitive + ' is not a Property Descriptor'
|
||||
);
|
||||
});
|
||||
|
||||
var accessor = accessorDescriptor();
|
||||
t.deepEqual(ES.FromPropertyDescriptor(accessor), {
|
||||
get: accessor['[[Get]]'],
|
||||
set: accessor['[[Set]]'],
|
||||
enumerable: !!accessor['[[Enumerable]]'],
|
||||
configurable: !!accessor['[[Configurable]]']
|
||||
});
|
||||
|
||||
var mutator = mutatorDescriptor();
|
||||
t.deepEqual(ES.FromPropertyDescriptor(mutator), {
|
||||
get: mutator['[[Get]]'],
|
||||
set: mutator['[[Set]]'],
|
||||
enumerable: !!mutator['[[Enumerable]]'],
|
||||
configurable: !!mutator['[[Configurable]]']
|
||||
});
|
||||
var data = dataDescriptor();
|
||||
t.deepEqual(ES.FromPropertyDescriptor(data), {
|
||||
value: data['[[Value]]'],
|
||||
writable: data['[[Writable]]'],
|
||||
enumerable: !!data['[[Enumerable]]'],
|
||||
configurable: !!data['[[Configurable]]']
|
||||
});
|
||||
|
||||
t['throws'](
|
||||
function () { ES.FromPropertyDescriptor(genericDescriptor()); },
|
||||
TypeError,
|
||||
'a complete Property Descriptor is required'
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('ToPropertyDescriptor', function (t) {
|
||||
forEach(nonNullPrimitives.concat(null), function (primitive) {
|
||||
t['throws'](
|
||||
function () { ES.ToPropertyDescriptor(primitive); },
|
||||
TypeError,
|
||||
primitive + ' is not an Object'
|
||||
);
|
||||
});
|
||||
|
||||
var accessor = accessorDescriptor();
|
||||
t.deepEqual(ES.ToPropertyDescriptor({
|
||||
get: accessor['[[Get]]'],
|
||||
enumerable: !!accessor['[[Enumerable]]'],
|
||||
configurable: !!accessor['[[Configurable]]']
|
||||
}), accessor);
|
||||
|
||||
var mutator = mutatorDescriptor();
|
||||
t.deepEqual(ES.ToPropertyDescriptor({
|
||||
set: mutator['[[Set]]'],
|
||||
enumerable: !!mutator['[[Enumerable]]'],
|
||||
configurable: !!mutator['[[Configurable]]']
|
||||
}), mutator);
|
||||
|
||||
var data = dataDescriptor();
|
||||
t.deepEqual(ES.ToPropertyDescriptor({
|
||||
value: data['[[Value]]'],
|
||||
writable: data['[[Writable]]'],
|
||||
configurable: !!data['[[Configurable]]']
|
||||
}), data);
|
||||
|
||||
var both = bothDescriptor();
|
||||
t['throws'](
|
||||
function () {
|
||||
ES.ToPropertyDescriptor({ get: both['[[Get]]'], value: both['[[Value]]'] });
|
||||
},
|
||||
TypeError,
|
||||
'data and accessor descriptors are mutually exclusive'
|
||||
);
|
||||
|
||||
t['throws'](
|
||||
function () { ES.ToPropertyDescriptor({ get: 'not callable' }); },
|
||||
TypeError,
|
||||
'"get" must be undefined or callable'
|
||||
);
|
||||
|
||||
t['throws'](
|
||||
function () { ES.ToPropertyDescriptor({ set: 'not callable' }); },
|
||||
TypeError,
|
||||
'"set" must be undefined or callable'
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
18
node_modules/es-abstract/test/es6.js
generated
vendored
Normal file
18
node_modules/es-abstract/test/es6.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
|
||||
var ES = require('../');
|
||||
var ES6 = ES.ES6;
|
||||
var ES2015 = ES.ES2015;
|
||||
var ES6entry = require('../es6');
|
||||
|
||||
test('legacy es6 export', function (t) {
|
||||
t.equal(ES6, ES2015, 'main ES6 === main ES2015');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('legacy es6 entry point', function (t) {
|
||||
t.equal(ES6, ES6entry, 'main ES6 === ES6 entry point');
|
||||
t.end();
|
||||
});
|
18
node_modules/es-abstract/test/es7.js
generated
vendored
Normal file
18
node_modules/es-abstract/test/es7.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
|
||||
var ES = require('../');
|
||||
var ES7 = ES.ES7;
|
||||
var ES2016 = ES.ES2016;
|
||||
var ES7entry = require('../es7');
|
||||
|
||||
test('legacy es7 export', function (t) {
|
||||
t.equal(ES7, ES2016, 'main ES7 === main ES2016');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('legacy es7 entry point', function (t) {
|
||||
t.equal(ES7, ES7entry, 'main ES7 === ES7 entry point');
|
||||
t.end();
|
||||
});
|
60
node_modules/es-abstract/test/helpers/assertRecord.js
generated
vendored
Normal file
60
node_modules/es-abstract/test/helpers/assertRecord.js
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
'use strict';
|
||||
|
||||
var forEach = require('foreach');
|
||||
var debug = require('object-inspect');
|
||||
|
||||
var assertRecord = require('../../helpers/assertRecord');
|
||||
var v = require('./values');
|
||||
|
||||
module.exports = function assertRecordTests(ES, test) {
|
||||
test('Property Descriptor', function (t) {
|
||||
var record = 'Property Descriptor';
|
||||
|
||||
forEach(v.nonUndefinedPrimitives, function (primitive) {
|
||||
t['throws'](
|
||||
function () { assertRecord(ES, record, 'arg', primitive); },
|
||||
TypeError,
|
||||
debug(primitive) + ' is not a Property Descriptor'
|
||||
);
|
||||
});
|
||||
|
||||
t['throws'](
|
||||
function () { assertRecord(ES, record, 'arg', { invalid: true }); },
|
||||
TypeError,
|
||||
'invalid keys not allowed on a Property Descriptor'
|
||||
);
|
||||
|
||||
t.doesNotThrow(
|
||||
function () { assertRecord(ES, record, 'arg', {}); },
|
||||
'empty object is an incomplete Property Descriptor'
|
||||
);
|
||||
|
||||
t.doesNotThrow(
|
||||
function () { assertRecord(ES, record, 'arg', v.accessorDescriptor()); },
|
||||
'accessor descriptor is a Property Descriptor'
|
||||
);
|
||||
|
||||
t.doesNotThrow(
|
||||
function () { assertRecord(ES, record, 'arg', v.mutatorDescriptor()); },
|
||||
'mutator descriptor is a Property Descriptor'
|
||||
);
|
||||
|
||||
t.doesNotThrow(
|
||||
function () { assertRecord(ES, record, 'arg', v.dataDescriptor()); },
|
||||
'data descriptor is a Property Descriptor'
|
||||
);
|
||||
|
||||
t.doesNotThrow(
|
||||
function () { assertRecord(ES, record, 'arg', v.genericDescriptor()); },
|
||||
'generic descriptor is a Property Descriptor'
|
||||
);
|
||||
|
||||
t['throws'](
|
||||
function () { assertRecord(ES, record, 'arg', v.bothDescriptor()); },
|
||||
TypeError,
|
||||
'a Property Descriptor can not be both a Data and an Accessor Descriptor'
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
};
|
84
node_modules/es-abstract/test/helpers/values.js
generated
vendored
Normal file
84
node_modules/es-abstract/test/helpers/values.js
generated
vendored
Normal file
|
@ -0,0 +1,84 @@
|
|||
'use strict';
|
||||
|
||||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
|
||||
|
||||
var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } };
|
||||
var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } };
|
||||
var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; } };
|
||||
var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; } };
|
||||
var objects = [{}, coercibleObject, toStringOnlyObject, valueOfOnlyObject];
|
||||
var nullPrimitives = [undefined, null];
|
||||
var nonIntegerNumbers = [-1.3, 0.2, 1.8, 1 / 3];
|
||||
var numbers = [0, -0, Infinity, -Infinity, 42].concat(nonIntegerNumbers);
|
||||
var strings = ['', 'foo', 'a\uD83D\uDCA9c'];
|
||||
var booleans = [true, false];
|
||||
var symbols = hasSymbols ? [Symbol.iterator, Symbol('foo')] : [];
|
||||
var nonSymbolPrimitives = [].concat(nullPrimitives, booleans, strings, numbers);
|
||||
var nonNumberPrimitives = [].concat(nullPrimitives, booleans, strings, symbols);
|
||||
var nonNullPrimitives = [].concat(booleans, strings, numbers, symbols);
|
||||
var nonUndefinedPrimitives = [].concat(null, nonNullPrimitives);
|
||||
var nonStrings = [].concat(nullPrimitives, booleans, numbers, symbols, objects);
|
||||
var primitives = [].concat(nullPrimitives, nonNullPrimitives);
|
||||
var nonPropertyKeys = [].concat(nullPrimitives, booleans, numbers, objects);
|
||||
var propertyKeys = [].concat(strings, symbols);
|
||||
var nonBooleans = [].concat(nullPrimitives, strings, symbols, numbers, objects);
|
||||
var falsies = [].concat(nullPrimitives, false, '', 0, -0, NaN);
|
||||
var truthies = [].concat(true, 'foo', 42, symbols, objects);
|
||||
var timestamps = [].concat(0, 946713600000, 1546329600000);
|
||||
|
||||
module.exports = {
|
||||
coercibleObject: coercibleObject,
|
||||
valueOfOnlyObject: valueOfOnlyObject,
|
||||
toStringOnlyObject: toStringOnlyObject,
|
||||
uncoercibleObject: uncoercibleObject,
|
||||
objects: objects,
|
||||
nullPrimitives: nullPrimitives,
|
||||
numbers: numbers,
|
||||
strings: strings,
|
||||
booleans: booleans,
|
||||
symbols: symbols,
|
||||
hasSymbols: hasSymbols,
|
||||
nonSymbolPrimitives: nonSymbolPrimitives,
|
||||
nonNumberPrimitives: nonNumberPrimitives,
|
||||
nonNullPrimitives: nonNullPrimitives,
|
||||
nonUndefinedPrimitives: nonUndefinedPrimitives,
|
||||
nonStrings: nonStrings,
|
||||
nonNumbers: nonNumberPrimitives.concat(objects),
|
||||
nonIntegerNumbers: nonIntegerNumbers,
|
||||
primitives: primitives,
|
||||
nonPropertyKeys: nonPropertyKeys,
|
||||
propertyKeys: propertyKeys,
|
||||
nonBooleans: nonBooleans,
|
||||
falsies: falsies,
|
||||
truthies: truthies,
|
||||
timestamps: timestamps,
|
||||
bothDescriptor: function () {
|
||||
return { '[[Get]]': function () {}, '[[Value]]': true };
|
||||
},
|
||||
accessorDescriptor: function () {
|
||||
return {
|
||||
'[[Get]]': function () {},
|
||||
'[[Enumerable]]': true,
|
||||
'[[Configurable]]': true
|
||||
};
|
||||
},
|
||||
mutatorDescriptor: function () {
|
||||
return {
|
||||
'[[Set]]': function () {},
|
||||
'[[Enumerable]]': true,
|
||||
'[[Configurable]]': true
|
||||
};
|
||||
},
|
||||
dataDescriptor: function () {
|
||||
return {
|
||||
'[[Value]]': 42,
|
||||
'[[Writable]]': false
|
||||
};
|
||||
},
|
||||
genericDescriptor: function () {
|
||||
return {
|
||||
'[[Configurable]]': true,
|
||||
'[[Enumerable]]': false
|
||||
};
|
||||
}
|
||||
};
|
29
node_modules/es-abstract/test/index.js
generated
vendored
Normal file
29
node_modules/es-abstract/test/index.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
'use strict';
|
||||
|
||||
var ES = require('../');
|
||||
var test = require('tape');
|
||||
|
||||
var ESkeys = Object.keys(ES).sort();
|
||||
var ES6keys = Object.keys(ES.ES6).sort();
|
||||
|
||||
test('exposed properties', function (t) {
|
||||
t.deepEqual(ESkeys, ES6keys.concat(['ES2018', 'ES2017', 'ES7', 'ES2016', 'ES6', 'ES2015', 'ES5']).sort(), 'main ES object keys match ES6 keys');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('methods match', function (t) {
|
||||
ES6keys.forEach(function (key) {
|
||||
t.equal(ES.ES6[key], ES[key], 'method ' + key + ' on main ES object is ES6 method');
|
||||
});
|
||||
t.end();
|
||||
});
|
||||
|
||||
require('./GetIntrinsic');
|
||||
|
||||
require('./es5');
|
||||
require('./es6');
|
||||
require('./es2015');
|
||||
require('./es7');
|
||||
require('./es2016');
|
||||
require('./es2017');
|
||||
require('./es2018');
|
2136
node_modules/es-abstract/test/tests.js
generated
vendored
Normal file
2136
node_modules/es-abstract/test/tests.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue