amended packages due to build issue
parent
3a1cf7853f
commit
35127825dd
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../acorn/bin/acorn
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../escodegen/bin/escodegen.js
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../escodegen/bin/esgenerate.js
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../esprima/bin/esparse.js
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../esprima/bin/esvalidate.js
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../mime/cli.js
|
|
@ -4,7 +4,6 @@
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"../../../../../url_to_markdown_readers.js": {},
|
|
||||||
"node_modules/@7c/validurl": {
|
"node_modules/@7c/validurl": {
|
||||||
"version": "0.0.3",
|
"version": "0.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@7c/validurl/-/validurl-0.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@7c/validurl/-/validurl-0.0.3.tgz",
|
||||||
|
@ -27,9 +26,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/abab": {
|
"node_modules/abab": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
|
||||||
"integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q=="
|
"integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="
|
||||||
},
|
},
|
||||||
"node_modules/accepts": {
|
"node_modules/accepts": {
|
||||||
"version": "1.3.8",
|
"version": "1.3.8",
|
||||||
|
@ -44,9 +43,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/acorn": {
|
"node_modules/acorn": {
|
||||||
"version": "8.7.0",
|
"version": "8.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz",
|
||||||
"integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==",
|
"integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==",
|
||||||
"bin": {
|
"bin": {
|
||||||
"acorn": "bin/acorn"
|
"acorn": "bin/acorn"
|
||||||
},
|
},
|
||||||
|
@ -94,9 +93,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/agent-base/node_modules/debug": {
|
"node_modules/agent-base/node_modules/debug": {
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": "2.1.2"
|
"ms": "2.1.2"
|
||||||
},
|
},
|
||||||
|
@ -117,12 +116,12 @@
|
||||||
"node_modules/array-flatten": {
|
"node_modules/array-flatten": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
||||||
"integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
|
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
|
||||||
},
|
},
|
||||||
"node_modules/asynckit": {
|
"node_modules/asynckit": {
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||||
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||||
},
|
},
|
||||||
"node_modules/body-parser": {
|
"node_modules/body-parser": {
|
||||||
"version": "1.20.1",
|
"version": "1.20.1",
|
||||||
|
@ -213,7 +212,7 @@
|
||||||
"node_modules/cookie-signature": {
|
"node_modules/cookie-signature": {
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
||||||
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
|
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
|
||||||
},
|
},
|
||||||
"node_modules/cssom": {
|
"node_modules/cssom": {
|
||||||
"version": "0.4.4",
|
"version": "0.4.4",
|
||||||
|
@ -258,9 +257,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/decimal.js": {
|
"node_modules/decimal.js": {
|
||||||
"version": "10.3.1",
|
"version": "10.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz",
|
||||||
"integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ=="
|
"integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="
|
||||||
},
|
},
|
||||||
"node_modules/deep-is": {
|
"node_modules/deep-is": {
|
||||||
"version": "0.1.4",
|
"version": "0.1.4",
|
||||||
|
@ -270,7 +269,7 @@
|
||||||
"node_modules/delayed-stream": {
|
"node_modules/delayed-stream": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||||
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
|
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.4.0"
|
"node": ">=0.4.0"
|
||||||
}
|
}
|
||||||
|
@ -433,20 +432,20 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/express-rate-limit": {
|
"node_modules/express-rate-limit": {
|
||||||
"version": "6.1.0",
|
"version": "6.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-6.7.0.tgz",
|
||||||
"integrity": "sha512-OWyJUDYVq/hRxGU3ufTnXDer5bRBwFiq5D35ZSZ9B2EHdjulWO4bwrbg+iIrapodDZse/35obeOj7igRHuP3Zw==",
|
"integrity": "sha512-vhwIdRoqcYB/72TK3tRZI+0ttS8Ytrk24GfmsxDXK9o9IhHNO5bXRiXQSExPQ4GbaE5tvIS7j1SGrxsuWs+sGA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14.5.0"
|
"node": ">= 12.9.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"express": "^4"
|
"express": "^4 || ^5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fast-levenshtein": {
|
"node_modules/fast-levenshtein": {
|
||||||
"version": "2.0.6",
|
"version": "2.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
|
||||||
"integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc="
|
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="
|
||||||
},
|
},
|
||||||
"node_modules/finalhandler": {
|
"node_modules/finalhandler": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
|
@ -579,9 +578,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/http-proxy-agent/node_modules/debug": {
|
"node_modules/http-proxy-agent/node_modules/debug": {
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": "2.1.2"
|
"ms": "2.1.2"
|
||||||
},
|
},
|
||||||
|
@ -600,9 +599,9 @@
|
||||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||||
},
|
},
|
||||||
"node_modules/https-proxy-agent": {
|
"node_modules/https-proxy-agent": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
||||||
"integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==",
|
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"agent-base": "6",
|
"agent-base": "6",
|
||||||
"debug": "4"
|
"debug": "4"
|
||||||
|
@ -612,9 +611,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/https-proxy-agent/node_modules/debug": {
|
"node_modules/https-proxy-agent/node_modules/debug": {
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
"integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ms": "2.1.2"
|
"ms": "2.1.2"
|
||||||
},
|
},
|
||||||
|
@ -714,7 +713,7 @@
|
||||||
"node_modules/levn": {
|
"node_modules/levn": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
|
||||||
"integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
|
"integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"prelude-ls": "~1.1.2",
|
"prelude-ls": "~1.1.2",
|
||||||
"type-check": "~0.3.2"
|
"type-check": "~0.3.2"
|
||||||
|
@ -739,12 +738,12 @@
|
||||||
"node_modules/merge-descriptors": {
|
"node_modules/merge-descriptors": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
|
||||||
"integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
|
"integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
|
||||||
},
|
},
|
||||||
"node_modules/methods": {
|
"node_modules/methods": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
||||||
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
|
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
|
@ -761,19 +760,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mime-db": {
|
"node_modules/mime-db": {
|
||||||
"version": "1.51.0",
|
"version": "1.52.0",
|
||||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz",
|
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||||
"integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==",
|
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mime-types": {
|
"node_modules/mime-types": {
|
||||||
"version": "2.1.34",
|
"version": "2.1.35",
|
||||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz",
|
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||||
"integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",
|
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": "1.51.0"
|
"mime-db": "1.52.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
|
@ -793,9 +792,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nwsapi": {
|
"node_modules/nwsapi": {
|
||||||
"version": "2.2.0",
|
"version": "2.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz",
|
||||||
"integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ=="
|
"integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw=="
|
||||||
},
|
},
|
||||||
"node_modules/object-inspect": {
|
"node_modules/object-inspect": {
|
||||||
"version": "1.12.2",
|
"version": "1.12.2",
|
||||||
|
@ -848,12 +847,12 @@
|
||||||
"node_modules/path-to-regexp": {
|
"node_modules/path-to-regexp": {
|
||||||
"version": "0.1.7",
|
"version": "0.1.7",
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
||||||
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
|
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
|
||||||
},
|
},
|
||||||
"node_modules/prelude-ls": {
|
"node_modules/prelude-ls": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
|
||||||
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
|
"integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8.0"
|
"node": ">= 0.8.0"
|
||||||
}
|
}
|
||||||
|
@ -871,9 +870,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/psl": {
|
"node_modules/psl": {
|
||||||
"version": "1.8.0",
|
"version": "1.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz",
|
||||||
"integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
|
"integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag=="
|
||||||
},
|
},
|
||||||
"node_modules/punycode": {
|
"node_modules/punycode": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
|
@ -900,12 +899,17 @@
|
||||||
"node_modules/querystring": {
|
"node_modules/querystring": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
|
||||||
"integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=",
|
"integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==",
|
||||||
"deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.",
|
"deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.4.x"
|
"node": ">=0.4.x"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/querystringify": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="
|
||||||
|
},
|
||||||
"node_modules/range-parser": {
|
"node_modules/range-parser": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||||
|
@ -928,6 +932,11 @@
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/requires-port": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="
|
||||||
|
},
|
||||||
"node_modules/safe-buffer": {
|
"node_modules/safe-buffer": {
|
||||||
"version": "5.2.1",
|
"version": "5.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
|
@ -1054,13 +1063,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tough-cookie": {
|
"node_modules/tough-cookie": {
|
||||||
"version": "4.0.0",
|
"version": "4.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz",
|
||||||
"integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==",
|
"integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"psl": "^1.1.33",
|
"psl": "^1.1.33",
|
||||||
"punycode": "^2.1.1",
|
"punycode": "^2.1.1",
|
||||||
"universalify": "^0.1.2"
|
"universalify": "^0.2.0",
|
||||||
|
"url-parse": "^1.5.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
|
@ -1088,7 +1098,7 @@
|
||||||
"node_modules/type-check": {
|
"node_modules/type-check": {
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
|
||||||
"integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
|
"integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"prelude-ls": "~1.1.2"
|
"prelude-ls": "~1.1.2"
|
||||||
},
|
},
|
||||||
|
@ -1109,9 +1119,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/universalify": {
|
"node_modules/universalify": {
|
||||||
"version": "0.1.2",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",
|
||||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 4.0.0"
|
"node": ">= 4.0.0"
|
||||||
}
|
}
|
||||||
|
@ -1127,41 +1137,30 @@
|
||||||
"node_modules/url": {
|
"node_modules/url": {
|
||||||
"version": "0.11.0",
|
"version": "0.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
|
||||||
"integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=",
|
"integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"punycode": "1.3.2",
|
"punycode": "1.3.2",
|
||||||
"querystring": "0.2.0"
|
"querystring": "0.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/url_to_markdown_apple_dev_docs": {
|
"node_modules/url-parse": {
|
||||||
"resolved": "url_to_markdown_apple_dev_docs.js",
|
"version": "1.5.10",
|
||||||
"link": true
|
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
|
||||||
},
|
"integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
|
||||||
"node_modules/url_to_markdown_common_filters": {
|
"dependencies": {
|
||||||
"resolved": "url_to_markdown_common_filters.js",
|
"querystringify": "^2.1.1",
|
||||||
"link": true
|
"requires-port": "^1.0.0"
|
||||||
},
|
}
|
||||||
"node_modules/url_to_markdown_formatters": {
|
|
||||||
"resolved": "url_to_markdown_formatters.js",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/url_to_markdown_processor": {
|
|
||||||
"resolved": "url_to_markdown_processor.js",
|
|
||||||
"link": true
|
|
||||||
},
|
|
||||||
"node_modules/url_to_markdown_readers": {
|
|
||||||
"resolved": "../../../../../url_to_markdown_readers.js",
|
|
||||||
"link": true
|
|
||||||
},
|
},
|
||||||
"node_modules/url/node_modules/punycode": {
|
"node_modules/url/node_modules/punycode": {
|
||||||
"version": "1.3.2",
|
"version": "1.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
|
||||||
"integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0="
|
"integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw=="
|
||||||
},
|
},
|
||||||
"node_modules/utils-merge": {
|
"node_modules/utils-merge": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
||||||
"integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
|
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4.0"
|
"node": ">= 0.4.0"
|
||||||
}
|
}
|
||||||
|
@ -1169,7 +1168,7 @@
|
||||||
"node_modules/vary": {
|
"node_modules/vary": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||||
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
|
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.8"
|
"node": ">= 0.8"
|
||||||
}
|
}
|
||||||
|
@ -1178,6 +1177,7 @@
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
|
||||||
"integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",
|
"integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",
|
||||||
|
"deprecated": "Use your platform's native performance.now() and performance.timeOrigin.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browser-process-hrtime": "^1.0.0"
|
"browser-process-hrtime": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -1236,9 +1236,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ws": {
|
"node_modules/ws": {
|
||||||
"version": "7.5.6",
|
"version": "7.5.9",
|
||||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz",
|
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
|
||||||
"integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==",
|
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.3.0"
|
"node": ">=8.3.0"
|
||||||
},
|
},
|
||||||
|
@ -1264,10 +1264,6 @@
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
|
||||||
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="
|
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="
|
||||||
},
|
}
|
||||||
"url_to_markdown_apple_dev_docs.js": {},
|
|
||||||
"url_to_markdown_common_filters.js": {},
|
|
||||||
"url_to_markdown_formatters.js": {},
|
|
||||||
"url_to_markdown_processor.js": {}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
0
node_modules/@mozilla/readability/CODE_OF_CONDUCT.md
generated
vendored
Executable file → Normal file
0
node_modules/@mozilla/readability/CODE_OF_CONDUCT.md
generated
vendored
Executable file → Normal file
0
node_modules/@mozilla/readability/Readability-readerable.js
generated
vendored
Executable file → Normal file
0
node_modules/@mozilla/readability/Readability-readerable.js
generated
vendored
Executable file → Normal file
|
@ -1,45 +0,0 @@
|
||||||
## 2.0.5
|
|
||||||
|
|
||||||
- Use a lookup string in atobLookup and btoaLookup (@GiovanniFrigo in #38)
|
|
||||||
- Dependency updates
|
|
||||||
|
|
||||||
## 2.0.4
|
|
||||||
|
|
||||||
- Dependency updates
|
|
||||||
|
|
||||||
## 2.0.3
|
|
||||||
|
|
||||||
- Use standard wording for BSD-3-Clause license (@PhilippWendler)
|
|
||||||
|
|
||||||
## 2.0.2
|
|
||||||
|
|
||||||
- Correct license in `package.json` (@Haegin)
|
|
||||||
|
|
||||||
## 2.0.1
|
|
||||||
|
|
||||||
- Add TypeScript type definitions, thanks to @LinusU
|
|
||||||
|
|
||||||
## 2.0.0
|
|
||||||
|
|
||||||
Modernization updates thanks to @TimothyGu:
|
|
||||||
|
|
||||||
- Use jsdom's eslint config, remove jscs
|
|
||||||
- Move syntax to ES6
|
|
||||||
- Remove Babel
|
|
||||||
- Via: https://github.com/jsdom/abab/pull/26
|
|
||||||
|
|
||||||
## 1.0.4
|
|
||||||
|
|
||||||
- Added license file
|
|
||||||
|
|
||||||
## 1.0.3
|
|
||||||
|
|
||||||
- Replaced `let` with `var` in `lib/btoa.js`
|
|
||||||
- Follow up from `1.0.2`
|
|
||||||
- Resolves https://github.com/jsdom/abab/issues/18
|
|
||||||
|
|
||||||
## 1.0.2
|
|
||||||
|
|
||||||
- Replaced `const` with `var` in `index.js`
|
|
||||||
- Allows use of `abab` in the browser without a transpilation step
|
|
||||||
- Resolves https://github.com/jsdom/abab/issues/15
|
|
|
@ -5,6 +5,10 @@
|
||||||
* instead of throwing INVALID_CHARACTER_ERR we return null.
|
* instead of throwing INVALID_CHARACTER_ERR we return null.
|
||||||
*/
|
*/
|
||||||
function atob(data) {
|
function atob(data) {
|
||||||
|
if (arguments.length === 0) {
|
||||||
|
throw new TypeError("1 argument required, but only 0 present.");
|
||||||
|
}
|
||||||
|
|
||||||
// Web IDL requires DOMStrings to just be converted using ECMAScript
|
// Web IDL requires DOMStrings to just be converted using ECMAScript
|
||||||
// ToString, which in our case amounts to using a template literal.
|
// ToString, which in our case amounts to using a template literal.
|
||||||
data = `${data}`;
|
data = `${data}`;
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
* RFC 4648.
|
* RFC 4648.
|
||||||
*/
|
*/
|
||||||
function btoa(s) {
|
function btoa(s) {
|
||||||
|
if (arguments.length === 0) {
|
||||||
|
throw new TypeError("1 argument required, but only 0 present.");
|
||||||
|
}
|
||||||
|
|
||||||
let i;
|
let i;
|
||||||
// String conversion as required by Web IDL.
|
// String conversion as required by Web IDL.
|
||||||
s = `${s}`;
|
s = `${s}`;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "abab",
|
"name": "abab",
|
||||||
"version": "2.0.5",
|
"version": "2.0.6",
|
||||||
"description": "WHATWG spec-compliant implementations of window.atob and window.btoa.",
|
"description": "WHATWG spec-compliant implementations of window.atob and window.btoa.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
../acorn/bin/acorn
|
0
node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/CHANGELOG.md
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/LICENSE
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/LICENSE
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/README.md
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/README.md
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.d.ts
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.js.map
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.d.ts
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/acorn.mjs.map
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/bin.js
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/dist/bin.js
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/package.json
generated
vendored
Executable file → Normal file
0
node_modules/acorn-globals/node_modules/acorn/package.json
generated
vendored
Executable file → Normal file
|
@ -1,3 +1,31 @@
|
||||||
|
## 8.8.1 (2022-10-24)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make type for `Comment` compatible with estree types.
|
||||||
|
|
||||||
|
## 8.8.0 (2022-07-21)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Allow parentheses around spread args in destructuring object assignment.
|
||||||
|
|
||||||
|
Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Support hashbang comments by default in ECMAScript 2023 and later.
|
||||||
|
|
||||||
|
## 8.7.1 (2021-04-26)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Stop handling `"use strict"` directives in ECMAScript versions before 5.
|
||||||
|
|
||||||
|
Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
|
||||||
|
|
||||||
|
Add missing type for `tokTypes`.
|
||||||
|
|
||||||
## 8.7.0 (2021-12-27)
|
## 8.7.0 (2021-12-27)
|
||||||
|
|
||||||
### New features
|
### New features
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (C) 2012-2020 by various contributors (see AUTHORS)
|
Copyright (C) 2012-2022 by various contributors (see AUTHORS)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -54,10 +54,10 @@ required):
|
||||||
|
|
||||||
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
|
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
|
||||||
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
|
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019),
|
||||||
11 (2020), 12 (2021), 13 (2022, partial support)
|
11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the
|
||||||
or `"latest"` (the latest the library supports). This influences
|
latest the library supports). This influences support for strict
|
||||||
support for strict mode, the set of reserved words, and support
|
mode, the set of reserved words, and support for new syntax
|
||||||
for new syntax features.
|
features.
|
||||||
|
|
||||||
**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
|
**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
|
||||||
implemented by Acorn. Other proposed new features must be
|
implemented by Acorn. Other proposed new features must be
|
||||||
|
@ -104,9 +104,9 @@ required):
|
||||||
- **allowSuperOutsideMethod**: By default, `super` outside a method
|
- **allowSuperOutsideMethod**: By default, `super` outside a method
|
||||||
raises an error. Set this to `true` to accept such code.
|
raises an error. Set this to `true` to accept such code.
|
||||||
|
|
||||||
- **allowHashBang**: When this is enabled (off by default), if the
|
- **allowHashBang**: When this is enabled, if the code starts with the
|
||||||
code starts with the characters `#!` (as in a shellscript), the
|
characters `#!` (as in a shellscript), the first line will be
|
||||||
first line will be treated as a comment.
|
treated as a comment. Defaults to true when `ecmaVersion` >= 2023.
|
||||||
|
|
||||||
- **locations**: When `true`, each node has a `loc` object attached
|
- **locations**: When `true`, each node has a `loc` object attached
|
||||||
with `start` and `end` subobjects, each of which contains the
|
with `start` and `end` subobjects, each of which contains the
|
||||||
|
@ -271,10 +271,3 @@ The utility spits out the syntax tree as JSON data.
|
||||||
## Existing plugins
|
## Existing plugins
|
||||||
|
|
||||||
- [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)
|
- [`acorn-jsx`](https://github.com/RReverser/acorn-jsx): Parse [Facebook JSX syntax extensions](https://github.com/facebook/jsx)
|
||||||
|
|
||||||
Plugins for ECMAScript proposals:
|
|
||||||
|
|
||||||
- [`acorn-stage3`](https://github.com/acornjs/acorn-stage3): Parse most stage 3 proposals, bundling:
|
|
||||||
- [`acorn-class-fields`](https://github.com/acornjs/acorn-class-fields): Parse [class fields proposal](https://github.com/tc39/proposal-class-fields)
|
|
||||||
- [`acorn-import-meta`](https://github.com/acornjs/acorn-import-meta): Parse [import.meta proposal](https://github.com/tc39/proposal-import-meta)
|
|
||||||
- [`acorn-private-methods`](https://github.com/acornjs/acorn-private-methods): parse [private methods, getters and setters proposal](https://github.com/tc39/proposal-private-methods)n
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
'use strict';
|
"use strict"
|
||||||
|
|
||||||
require('../dist/bin.js');
|
require("../dist/bin.js")
|
||||||
|
|
|
@ -11,8 +11,10 @@ declare namespace acorn {
|
||||||
[Symbol.iterator](): Iterator<Token>
|
[Symbol.iterator](): Iterator<Token>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
|
||||||
|
|
||||||
interface Options {
|
interface Options {
|
||||||
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest'
|
ecmaVersion: ecmaVersion
|
||||||
sourceType?: 'script' | 'module'
|
sourceType?: 'script' | 'module'
|
||||||
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
||||||
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void
|
||||||
|
@ -36,8 +38,41 @@ declare namespace acorn {
|
||||||
}
|
}
|
||||||
|
|
||||||
class Parser {
|
class Parser {
|
||||||
|
// state.js
|
||||||
|
lineStart: number;
|
||||||
|
options: Options;
|
||||||
|
curLine: number;
|
||||||
|
start: number;
|
||||||
|
end: number;
|
||||||
|
input: string;
|
||||||
|
type: TokenType;
|
||||||
|
|
||||||
|
// state.js
|
||||||
constructor(options: Options, input: string, startPos?: number)
|
constructor(options: Options, input: string, startPos?: number)
|
||||||
parse(this: Parser): Node
|
parse(this: Parser): Node
|
||||||
|
|
||||||
|
// tokenize.js
|
||||||
|
next(): void;
|
||||||
|
nextToken(): void;
|
||||||
|
|
||||||
|
// statement.js
|
||||||
|
parseTopLevel(node: Node): Node;
|
||||||
|
|
||||||
|
// node.js
|
||||||
|
finishNode(node: Node, type: string): Node;
|
||||||
|
finishNodeAt(node: Node, type: string, pos: number, loc: Position): Node;
|
||||||
|
|
||||||
|
// location.js
|
||||||
|
raise(pos: number, message: string) : void;
|
||||||
|
raiseRecoverable?(pos: number, message: string) : void;
|
||||||
|
|
||||||
|
// parseutils.js
|
||||||
|
unexpected(pos: number) : void;
|
||||||
|
|
||||||
|
// index.js
|
||||||
|
static acorn: typeof acorn;
|
||||||
|
|
||||||
|
// state.js
|
||||||
static parse(this: typeof Parser, input: string, options: Options): Node
|
static parse(this: typeof Parser, input: string, options: Options): Node
|
||||||
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
|
static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
|
||||||
static tokenizer(this: typeof Parser, input: string, options: Options): {
|
static tokenizer(this: typeof Parser, input: string, options: Options): {
|
||||||
|
@ -102,8 +137,10 @@ declare namespace acorn {
|
||||||
colon: TokenType
|
colon: TokenType
|
||||||
dot: TokenType
|
dot: TokenType
|
||||||
question: TokenType
|
question: TokenType
|
||||||
|
questionDot: TokenType
|
||||||
arrow: TokenType
|
arrow: TokenType
|
||||||
template: TokenType
|
template: TokenType
|
||||||
|
invalidTemplate: TokenType
|
||||||
ellipsis: TokenType
|
ellipsis: TokenType
|
||||||
backQuote: TokenType
|
backQuote: TokenType
|
||||||
dollarBraceL: TokenType
|
dollarBraceL: TokenType
|
||||||
|
@ -124,6 +161,7 @@ declare namespace acorn {
|
||||||
star: TokenType
|
star: TokenType
|
||||||
slash: TokenType
|
slash: TokenType
|
||||||
starstar: TokenType
|
starstar: TokenType
|
||||||
|
coalesce: TokenType
|
||||||
_break: TokenType
|
_break: TokenType
|
||||||
_case: TokenType
|
_case: TokenType
|
||||||
_catch: TokenType
|
_catch: TokenType
|
||||||
|
@ -186,7 +224,7 @@ declare namespace acorn {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Comment extends AbstractToken {
|
interface Comment extends AbstractToken {
|
||||||
type: string
|
type: 'Line' | 'Block'
|
||||||
value: string
|
value: string
|
||||||
start: number
|
start: number
|
||||||
end: number
|
end: number
|
||||||
|
|
|
@ -4,6 +4,20 @@
|
||||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {}));
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {}));
|
||||||
})(this, (function (exports) { 'use strict';
|
})(this, (function (exports) { 'use strict';
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 262, 6, 10, 9, 357, 0, 62, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 190, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1070, 4050, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 46, 2, 18, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 482, 44, 11, 6, 17, 0, 322, 29, 19, 43, 1269, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4152, 8, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938];
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
||||||
|
|
||||||
|
// These are a run-length and offset encoded representation of the
|
||||||
|
|
||||||
// Reserved word lists for various dialects of the language
|
// Reserved word lists for various dialects of the language
|
||||||
|
|
||||||
var reservedWords = {
|
var reservedWords = {
|
||||||
|
@ -28,31 +42,9 @@
|
||||||
|
|
||||||
// ## Character categories
|
// ## Character categories
|
||||||
|
|
||||||
// Big ugly regular expressions that match characters in the
|
|
||||||
// whitespace, identifier, and identifier-start categories. These
|
|
||||||
// are only applied when a character is found to actually have a
|
|
||||||
// code point above 128.
|
|
||||||
// Generated by `bin/generate-identifier-regex.js`.
|
|
||||||
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
||||||
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
|
|
||||||
|
|
||||||
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
||||||
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
||||||
|
|
||||||
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
||||||
|
|
||||||
// These are a run-length and offset encoded representation of the
|
|
||||||
// >0xffff code points that are a valid part of identifiers. The
|
|
||||||
// offset starts at 0x10000, and each pair of numbers represents an
|
|
||||||
// offset to the next range, and then a size of the range. They were
|
|
||||||
// generated by bin/generate-identifier-regex.js
|
|
||||||
|
|
||||||
// eslint-disable-next-line comma-spacing
|
|
||||||
var astralIdentifierStartCodes = [0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938];
|
|
||||||
|
|
||||||
// eslint-disable-next-line comma-spacing
|
|
||||||
var astralIdentifierCodes = [509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];
|
|
||||||
|
|
||||||
// This has a complexity linear to the value of the code. The
|
// This has a complexity linear to the value of the code. The
|
||||||
// assumption is that looking up astral identifier characters is
|
// assumption is that looking up astral identifier characters is
|
||||||
// rare.
|
// rare.
|
||||||
|
@ -287,6 +279,13 @@
|
||||||
return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
|
return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function codePointToString(code) {
|
||||||
|
// UTF-16 Decoding
|
||||||
|
if (code <= 0xFFFF) { return String.fromCharCode(code) }
|
||||||
|
code -= 0x10000;
|
||||||
|
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
|
||||||
|
}
|
||||||
|
|
||||||
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
||||||
|
|
||||||
// These are used when `options.locations` is on, for the
|
// These are used when `options.locations` is on, for the
|
||||||
|
@ -328,10 +327,10 @@
|
||||||
var defaultOptions = {
|
var defaultOptions = {
|
||||||
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
||||||
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
||||||
// (2019), 11 (2020), 12 (2021), 13 (2022), or `"latest"` (the
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
||||||
// latest version the library supports). This influences support
|
// (the latest version the library supports). This influences
|
||||||
// for strict mode, the set of reserved words, and support for
|
// support for strict mode, the set of reserved words, and support
|
||||||
// new syntax features.
|
// for new syntax features.
|
||||||
ecmaVersion: null,
|
ecmaVersion: null,
|
||||||
// `sourceType` indicates the mode the code should be parsed in.
|
// `sourceType` indicates the mode the code should be parsed in.
|
||||||
// Can be either `"script"` or `"module"`. This influences global
|
// Can be either `"script"` or `"module"`. This influences global
|
||||||
|
@ -365,8 +364,9 @@
|
||||||
// When enabled, super identifiers are not constrained to
|
// When enabled, super identifiers are not constrained to
|
||||||
// appearing in methods and do not raise an error when they appear elsewhere.
|
// appearing in methods and do not raise an error when they appear elsewhere.
|
||||||
allowSuperOutsideMethod: null,
|
allowSuperOutsideMethod: null,
|
||||||
// When enabled, hashbang directive in the beginning of file
|
// When enabled, hashbang directive in the beginning of file is
|
||||||
// is allowed and treated as a line comment.
|
// allowed and treated as a line comment. Enabled by default when
|
||||||
|
// `ecmaVersion` >= 2023.
|
||||||
allowHashBang: false,
|
allowHashBang: false,
|
||||||
// When `locations` is on, `loc` properties holding objects with
|
// When `locations` is on, `loc` properties holding objects with
|
||||||
// `start` and `end` properties in `{line, column}` form (with
|
// `start` and `end` properties in `{line, column}` form (with
|
||||||
|
@ -441,6 +441,9 @@
|
||||||
if (options.allowReserved == null)
|
if (options.allowReserved == null)
|
||||||
{ options.allowReserved = options.ecmaVersion < 5; }
|
{ options.allowReserved = options.ecmaVersion < 5; }
|
||||||
|
|
||||||
|
if (opts.allowHashBang == null)
|
||||||
|
{ options.allowHashBang = options.ecmaVersion >= 14; }
|
||||||
|
|
||||||
if (isArray(options.onToken)) {
|
if (isArray(options.onToken)) {
|
||||||
var tokens = options.onToken;
|
var tokens = options.onToken;
|
||||||
options.onToken = function (token) { return tokens.push(token); };
|
options.onToken = function (token) { return tokens.push(token); };
|
||||||
|
@ -654,6 +657,7 @@
|
||||||
|
|
||||||
var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
||||||
pp$9.strictDirective = function(start) {
|
pp$9.strictDirective = function(start) {
|
||||||
|
if (this.options.ecmaVersion < 5) { return false }
|
||||||
for (;;) {
|
for (;;) {
|
||||||
// Try to find string literal.
|
// Try to find string literal.
|
||||||
skipWhiteSpace.lastIndex = start;
|
skipWhiteSpace.lastIndex = start;
|
||||||
|
@ -756,21 +760,21 @@
|
||||||
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
||||||
};
|
};
|
||||||
|
|
||||||
function DestructuringErrors() {
|
var DestructuringErrors = function DestructuringErrors() {
|
||||||
this.shorthandAssign =
|
this.shorthandAssign =
|
||||||
this.trailingComma =
|
this.trailingComma =
|
||||||
this.parenthesizedAssign =
|
this.parenthesizedAssign =
|
||||||
this.parenthesizedBind =
|
this.parenthesizedBind =
|
||||||
this.doubleProto =
|
this.doubleProto =
|
||||||
-1;
|
-1;
|
||||||
}
|
};
|
||||||
|
|
||||||
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
||||||
if (!refDestructuringErrors) { return }
|
if (!refDestructuringErrors) { return }
|
||||||
if (refDestructuringErrors.trailingComma > -1)
|
if (refDestructuringErrors.trailingComma > -1)
|
||||||
{ this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); }
|
{ this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); }
|
||||||
var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
|
var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
|
||||||
if (parens > -1) { this.raiseRecoverable(parens, "Parenthesized pattern"); }
|
if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); }
|
||||||
};
|
};
|
||||||
|
|
||||||
pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
|
pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
|
||||||
|
@ -1644,7 +1648,7 @@
|
||||||
if (this.options.ecmaVersion >= 11) {
|
if (this.options.ecmaVersion >= 11) {
|
||||||
if (this.eatContextual("as")) {
|
if (this.eatContextual("as")) {
|
||||||
node.exported = this.parseModuleExportName();
|
node.exported = this.parseModuleExportName();
|
||||||
this.checkExport(exports, node.exported.name, this.lastTokStart);
|
this.checkExport(exports, node.exported, this.lastTokStart);
|
||||||
} else {
|
} else {
|
||||||
node.exported = null;
|
node.exported = null;
|
||||||
}
|
}
|
||||||
|
@ -1678,7 +1682,7 @@
|
||||||
if (node.declaration.type === "VariableDeclaration")
|
if (node.declaration.type === "VariableDeclaration")
|
||||||
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
||||||
else
|
else
|
||||||
{ this.checkExport(exports, node.declaration.id.name, node.declaration.id.start); }
|
{ this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
|
||||||
node.specifiers = [];
|
node.specifiers = [];
|
||||||
node.source = null;
|
node.source = null;
|
||||||
} else { // export { x, y as z } [from '...']
|
} else { // export { x, y as z } [from '...']
|
||||||
|
@ -1710,6 +1714,8 @@
|
||||||
|
|
||||||
pp$8.checkExport = function(exports, name, pos) {
|
pp$8.checkExport = function(exports, name, pos) {
|
||||||
if (!exports) { return }
|
if (!exports) { return }
|
||||||
|
if (typeof name !== "string")
|
||||||
|
{ name = name.type === "Identifier" ? name.name : name.value; }
|
||||||
if (hasOwn(exports, name))
|
if (hasOwn(exports, name))
|
||||||
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
||||||
exports[name] = true;
|
exports[name] = true;
|
||||||
|
@ -1718,7 +1724,7 @@
|
||||||
pp$8.checkPatternExport = function(exports, pat) {
|
pp$8.checkPatternExport = function(exports, pat) {
|
||||||
var type = pat.type;
|
var type = pat.type;
|
||||||
if (type === "Identifier")
|
if (type === "Identifier")
|
||||||
{ this.checkExport(exports, pat.name, pat.start); }
|
{ this.checkExport(exports, pat, pat.start); }
|
||||||
else if (type === "ObjectPattern")
|
else if (type === "ObjectPattern")
|
||||||
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
||||||
{
|
{
|
||||||
|
@ -1778,7 +1784,7 @@
|
||||||
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
||||||
this.checkExport(
|
this.checkExport(
|
||||||
exports,
|
exports,
|
||||||
node.exported[node.exported.type === "Identifier" ? "name" : "value"],
|
node.exported,
|
||||||
node.exported.start
|
node.exported.start
|
||||||
);
|
);
|
||||||
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
||||||
|
@ -1864,6 +1870,7 @@
|
||||||
};
|
};
|
||||||
pp$8.isDirectiveCandidate = function(statement) {
|
pp$8.isDirectiveCandidate = function(statement) {
|
||||||
return (
|
return (
|
||||||
|
this.options.ecmaVersion >= 5 &&
|
||||||
statement.type === "ExpressionStatement" &&
|
statement.type === "ExpressionStatement" &&
|
||||||
statement.expression.type === "Literal" &&
|
statement.expression.type === "Literal" &&
|
||||||
typeof statement.expression.value === "string" &&
|
typeof statement.expression.value === "string" &&
|
||||||
|
@ -2274,7 +2281,8 @@
|
||||||
{ this.exprAllowed = type.beforeExpr; }
|
{ this.exprAllowed = type.beforeExpr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Used to handle egde case when token context could not be inferred correctly in tokenize phase
|
// Used to handle egde cases when token context could not be inferred correctly during tokenization phase
|
||||||
|
|
||||||
pp$6.overrideContext = function(tokenCtx) {
|
pp$6.overrideContext = function(tokenCtx) {
|
||||||
if (this.curContext() !== tokenCtx) {
|
if (this.curContext() !== tokenCtx) {
|
||||||
this.context[this.context.length - 1] = tokenCtx;
|
this.context[this.context.length - 1] = tokenCtx;
|
||||||
|
@ -3090,15 +3098,6 @@
|
||||||
}
|
}
|
||||||
return this.finishNode(prop, "RestElement")
|
return this.finishNode(prop, "RestElement")
|
||||||
}
|
}
|
||||||
// To disallow parenthesized identifier via `this.toAssignable()`.
|
|
||||||
if (this.type === types$1.parenL && refDestructuringErrors) {
|
|
||||||
if (refDestructuringErrors.parenthesizedAssign < 0) {
|
|
||||||
refDestructuringErrors.parenthesizedAssign = this.start;
|
|
||||||
}
|
|
||||||
if (refDestructuringErrors.parenthesizedBind < 0) {
|
|
||||||
refDestructuringErrors.parenthesizedBind = this.start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Parse argument.
|
// Parse argument.
|
||||||
prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);
|
prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);
|
||||||
// To disallow trailing comma via `this.toAssignable()`.
|
// To disallow trailing comma via `this.toAssignable()`.
|
||||||
|
@ -3768,12 +3767,6 @@
|
||||||
return false
|
return false
|
||||||
};
|
};
|
||||||
|
|
||||||
function codePointToString$1(ch) {
|
|
||||||
if (ch <= 0xFFFF) { return String.fromCharCode(ch) }
|
|
||||||
ch -= 0x10000;
|
|
||||||
return String.fromCharCode((ch >> 10) + 0xD800, (ch & 0x03FF) + 0xDC00)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate the flags part of a given RegExpLiteral.
|
* Validate the flags part of a given RegExpLiteral.
|
||||||
*
|
*
|
||||||
|
@ -4138,9 +4131,9 @@
|
||||||
pp$1.regexp_eatRegExpIdentifierName = function(state) {
|
pp$1.regexp_eatRegExpIdentifierName = function(state) {
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
if (this.regexp_eatRegExpIdentifierStart(state)) {
|
if (this.regexp_eatRegExpIdentifierStart(state)) {
|
||||||
state.lastStringValue += codePointToString$1(state.lastIntValue);
|
state.lastStringValue += codePointToString(state.lastIntValue);
|
||||||
while (this.regexp_eatRegExpIdentifierPart(state)) {
|
while (this.regexp_eatRegExpIdentifierPart(state)) {
|
||||||
state.lastStringValue += codePointToString$1(state.lastIntValue);
|
state.lastStringValue += codePointToString(state.lastIntValue);
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -4492,7 +4485,7 @@
|
||||||
var ch = 0;
|
var ch = 0;
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
while (isUnicodePropertyNameCharacter(ch = state.current())) {
|
while (isUnicodePropertyNameCharacter(ch = state.current())) {
|
||||||
state.lastStringValue += codePointToString$1(ch);
|
state.lastStringValue += codePointToString(ch);
|
||||||
state.advance();
|
state.advance();
|
||||||
}
|
}
|
||||||
return state.lastStringValue !== ""
|
return state.lastStringValue !== ""
|
||||||
|
@ -4507,7 +4500,7 @@
|
||||||
var ch = 0;
|
var ch = 0;
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
while (isUnicodePropertyValueCharacter(ch = state.current())) {
|
while (isUnicodePropertyValueCharacter(ch = state.current())) {
|
||||||
state.lastStringValue += codePointToString$1(ch);
|
state.lastStringValue += codePointToString(ch);
|
||||||
state.advance();
|
state.advance();
|
||||||
}
|
}
|
||||||
return state.lastStringValue !== ""
|
return state.lastStringValue !== ""
|
||||||
|
@ -5290,13 +5283,6 @@
|
||||||
return code
|
return code
|
||||||
};
|
};
|
||||||
|
|
||||||
function codePointToString(code) {
|
|
||||||
// UTF-16 Decoding
|
|
||||||
if (code <= 0xFFFF) { return String.fromCharCode(code) }
|
|
||||||
code -= 0x10000;
|
|
||||||
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
|
|
||||||
}
|
|
||||||
|
|
||||||
pp.readString = function(quote) {
|
pp.readString = function(quote) {
|
||||||
var out = "", chunkStart = ++this.pos;
|
var out = "", chunkStart = ++this.pos;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -5541,7 +5527,7 @@
|
||||||
|
|
||||||
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
||||||
|
|
||||||
var version = "8.7.0";
|
var version = "8.8.1";
|
||||||
|
|
||||||
Parser.acorn = {
|
Parser.acorn = {
|
||||||
Parser: Parser,
|
Parser: Parser,
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 262, 6, 10, 9, 357, 0, 62, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 190, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1070, 4050, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 46, 2, 18, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 482, 44, 11, 6, 17, 0, 322, 29, 19, 43, 1269, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4152, 8, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938];
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
|
||||||
|
|
||||||
|
// This file was generated. Do not modify manually!
|
||||||
|
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
||||||
|
|
||||||
|
// These are a run-length and offset encoded representation of the
|
||||||
|
|
||||||
// Reserved word lists for various dialects of the language
|
// Reserved word lists for various dialects of the language
|
||||||
|
|
||||||
var reservedWords = {
|
var reservedWords = {
|
||||||
|
@ -22,31 +36,9 @@ var keywordRelationalOperator = /^in(stanceof)?$/;
|
||||||
|
|
||||||
// ## Character categories
|
// ## Character categories
|
||||||
|
|
||||||
// Big ugly regular expressions that match characters in the
|
|
||||||
// whitespace, identifier, and identifier-start categories. These
|
|
||||||
// are only applied when a character is found to actually have a
|
|
||||||
// code point above 128.
|
|
||||||
// Generated by `bin/generate-identifier-regex.js`.
|
|
||||||
var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
|
|
||||||
var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
|
|
||||||
|
|
||||||
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
||||||
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
||||||
|
|
||||||
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
||||||
|
|
||||||
// These are a run-length and offset encoded representation of the
|
|
||||||
// >0xffff code points that are a valid part of identifiers. The
|
|
||||||
// offset starts at 0x10000, and each pair of numbers represents an
|
|
||||||
// offset to the next range, and then a size of the range. They were
|
|
||||||
// generated by bin/generate-identifier-regex.js
|
|
||||||
|
|
||||||
// eslint-disable-next-line comma-spacing
|
|
||||||
var astralIdentifierStartCodes = [0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938];
|
|
||||||
|
|
||||||
// eslint-disable-next-line comma-spacing
|
|
||||||
var astralIdentifierCodes = [509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];
|
|
||||||
|
|
||||||
// This has a complexity linear to the value of the code. The
|
// This has a complexity linear to the value of the code. The
|
||||||
// assumption is that looking up astral identifier characters is
|
// assumption is that looking up astral identifier characters is
|
||||||
// rare.
|
// rare.
|
||||||
|
@ -281,6 +273,13 @@ function wordsRegexp(words) {
|
||||||
return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
|
return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function codePointToString(code) {
|
||||||
|
// UTF-16 Decoding
|
||||||
|
if (code <= 0xFFFF) { return String.fromCharCode(code) }
|
||||||
|
code -= 0x10000;
|
||||||
|
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
|
||||||
|
}
|
||||||
|
|
||||||
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
||||||
|
|
||||||
// These are used when `options.locations` is on, for the
|
// These are used when `options.locations` is on, for the
|
||||||
|
@ -322,10 +321,10 @@ function getLineInfo(input, offset) {
|
||||||
var defaultOptions = {
|
var defaultOptions = {
|
||||||
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
||||||
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
||||||
// (2019), 11 (2020), 12 (2021), 13 (2022), or `"latest"` (the
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
||||||
// latest version the library supports). This influences support
|
// (the latest version the library supports). This influences
|
||||||
// for strict mode, the set of reserved words, and support for
|
// support for strict mode, the set of reserved words, and support
|
||||||
// new syntax features.
|
// for new syntax features.
|
||||||
ecmaVersion: null,
|
ecmaVersion: null,
|
||||||
// `sourceType` indicates the mode the code should be parsed in.
|
// `sourceType` indicates the mode the code should be parsed in.
|
||||||
// Can be either `"script"` or `"module"`. This influences global
|
// Can be either `"script"` or `"module"`. This influences global
|
||||||
|
@ -359,8 +358,9 @@ var defaultOptions = {
|
||||||
// When enabled, super identifiers are not constrained to
|
// When enabled, super identifiers are not constrained to
|
||||||
// appearing in methods and do not raise an error when they appear elsewhere.
|
// appearing in methods and do not raise an error when they appear elsewhere.
|
||||||
allowSuperOutsideMethod: null,
|
allowSuperOutsideMethod: null,
|
||||||
// When enabled, hashbang directive in the beginning of file
|
// When enabled, hashbang directive in the beginning of file is
|
||||||
// is allowed and treated as a line comment.
|
// allowed and treated as a line comment. Enabled by default when
|
||||||
|
// `ecmaVersion` >= 2023.
|
||||||
allowHashBang: false,
|
allowHashBang: false,
|
||||||
// When `locations` is on, `loc` properties holding objects with
|
// When `locations` is on, `loc` properties holding objects with
|
||||||
// `start` and `end` properties in `{line, column}` form (with
|
// `start` and `end` properties in `{line, column}` form (with
|
||||||
|
@ -435,6 +435,9 @@ function getOptions(opts) {
|
||||||
if (options.allowReserved == null)
|
if (options.allowReserved == null)
|
||||||
{ options.allowReserved = options.ecmaVersion < 5; }
|
{ options.allowReserved = options.ecmaVersion < 5; }
|
||||||
|
|
||||||
|
if (opts.allowHashBang == null)
|
||||||
|
{ options.allowHashBang = options.ecmaVersion >= 14; }
|
||||||
|
|
||||||
if (isArray(options.onToken)) {
|
if (isArray(options.onToken)) {
|
||||||
var tokens = options.onToken;
|
var tokens = options.onToken;
|
||||||
options.onToken = function (token) { return tokens.push(token); };
|
options.onToken = function (token) { return tokens.push(token); };
|
||||||
|
@ -648,6 +651,7 @@ var pp$9 = Parser.prototype;
|
||||||
|
|
||||||
var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
var literal = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
||||||
pp$9.strictDirective = function(start) {
|
pp$9.strictDirective = function(start) {
|
||||||
|
if (this.options.ecmaVersion < 5) { return false }
|
||||||
for (;;) {
|
for (;;) {
|
||||||
// Try to find string literal.
|
// Try to find string literal.
|
||||||
skipWhiteSpace.lastIndex = start;
|
skipWhiteSpace.lastIndex = start;
|
||||||
|
@ -750,21 +754,21 @@ pp$9.unexpected = function(pos) {
|
||||||
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
||||||
};
|
};
|
||||||
|
|
||||||
function DestructuringErrors() {
|
var DestructuringErrors = function DestructuringErrors() {
|
||||||
this.shorthandAssign =
|
this.shorthandAssign =
|
||||||
this.trailingComma =
|
this.trailingComma =
|
||||||
this.parenthesizedAssign =
|
this.parenthesizedAssign =
|
||||||
this.parenthesizedBind =
|
this.parenthesizedBind =
|
||||||
this.doubleProto =
|
this.doubleProto =
|
||||||
-1;
|
-1;
|
||||||
}
|
};
|
||||||
|
|
||||||
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
||||||
if (!refDestructuringErrors) { return }
|
if (!refDestructuringErrors) { return }
|
||||||
if (refDestructuringErrors.trailingComma > -1)
|
if (refDestructuringErrors.trailingComma > -1)
|
||||||
{ this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); }
|
{ this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); }
|
||||||
var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
|
var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;
|
||||||
if (parens > -1) { this.raiseRecoverable(parens, "Parenthesized pattern"); }
|
if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); }
|
||||||
};
|
};
|
||||||
|
|
||||||
pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
|
pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {
|
||||||
|
@ -1638,7 +1642,7 @@ pp$8.parseExport = function(node, exports) {
|
||||||
if (this.options.ecmaVersion >= 11) {
|
if (this.options.ecmaVersion >= 11) {
|
||||||
if (this.eatContextual("as")) {
|
if (this.eatContextual("as")) {
|
||||||
node.exported = this.parseModuleExportName();
|
node.exported = this.parseModuleExportName();
|
||||||
this.checkExport(exports, node.exported.name, this.lastTokStart);
|
this.checkExport(exports, node.exported, this.lastTokStart);
|
||||||
} else {
|
} else {
|
||||||
node.exported = null;
|
node.exported = null;
|
||||||
}
|
}
|
||||||
|
@ -1672,7 +1676,7 @@ pp$8.parseExport = function(node, exports) {
|
||||||
if (node.declaration.type === "VariableDeclaration")
|
if (node.declaration.type === "VariableDeclaration")
|
||||||
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
{ this.checkVariableExport(exports, node.declaration.declarations); }
|
||||||
else
|
else
|
||||||
{ this.checkExport(exports, node.declaration.id.name, node.declaration.id.start); }
|
{ this.checkExport(exports, node.declaration.id, node.declaration.id.start); }
|
||||||
node.specifiers = [];
|
node.specifiers = [];
|
||||||
node.source = null;
|
node.source = null;
|
||||||
} else { // export { x, y as z } [from '...']
|
} else { // export { x, y as z } [from '...']
|
||||||
|
@ -1704,6 +1708,8 @@ pp$8.parseExport = function(node, exports) {
|
||||||
|
|
||||||
pp$8.checkExport = function(exports, name, pos) {
|
pp$8.checkExport = function(exports, name, pos) {
|
||||||
if (!exports) { return }
|
if (!exports) { return }
|
||||||
|
if (typeof name !== "string")
|
||||||
|
{ name = name.type === "Identifier" ? name.name : name.value; }
|
||||||
if (hasOwn(exports, name))
|
if (hasOwn(exports, name))
|
||||||
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
{ this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); }
|
||||||
exports[name] = true;
|
exports[name] = true;
|
||||||
|
@ -1712,7 +1718,7 @@ pp$8.checkExport = function(exports, name, pos) {
|
||||||
pp$8.checkPatternExport = function(exports, pat) {
|
pp$8.checkPatternExport = function(exports, pat) {
|
||||||
var type = pat.type;
|
var type = pat.type;
|
||||||
if (type === "Identifier")
|
if (type === "Identifier")
|
||||||
{ this.checkExport(exports, pat.name, pat.start); }
|
{ this.checkExport(exports, pat, pat.start); }
|
||||||
else if (type === "ObjectPattern")
|
else if (type === "ObjectPattern")
|
||||||
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
{ for (var i = 0, list = pat.properties; i < list.length; i += 1)
|
||||||
{
|
{
|
||||||
|
@ -1772,7 +1778,7 @@ pp$8.parseExportSpecifiers = function(exports) {
|
||||||
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
||||||
this.checkExport(
|
this.checkExport(
|
||||||
exports,
|
exports,
|
||||||
node.exported[node.exported.type === "Identifier" ? "name" : "value"],
|
node.exported,
|
||||||
node.exported.start
|
node.exported.start
|
||||||
);
|
);
|
||||||
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
||||||
|
@ -1858,6 +1864,7 @@ pp$8.adaptDirectivePrologue = function(statements) {
|
||||||
};
|
};
|
||||||
pp$8.isDirectiveCandidate = function(statement) {
|
pp$8.isDirectiveCandidate = function(statement) {
|
||||||
return (
|
return (
|
||||||
|
this.options.ecmaVersion >= 5 &&
|
||||||
statement.type === "ExpressionStatement" &&
|
statement.type === "ExpressionStatement" &&
|
||||||
statement.expression.type === "Literal" &&
|
statement.expression.type === "Literal" &&
|
||||||
typeof statement.expression.value === "string" &&
|
typeof statement.expression.value === "string" &&
|
||||||
|
@ -2268,7 +2275,8 @@ pp$6.updateContext = function(prevType) {
|
||||||
{ this.exprAllowed = type.beforeExpr; }
|
{ this.exprAllowed = type.beforeExpr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Used to handle egde case when token context could not be inferred correctly in tokenize phase
|
// Used to handle egde cases when token context could not be inferred correctly during tokenization phase
|
||||||
|
|
||||||
pp$6.overrideContext = function(tokenCtx) {
|
pp$6.overrideContext = function(tokenCtx) {
|
||||||
if (this.curContext() !== tokenCtx) {
|
if (this.curContext() !== tokenCtx) {
|
||||||
this.context[this.context.length - 1] = tokenCtx;
|
this.context[this.context.length - 1] = tokenCtx;
|
||||||
|
@ -3084,15 +3092,6 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
||||||
}
|
}
|
||||||
return this.finishNode(prop, "RestElement")
|
return this.finishNode(prop, "RestElement")
|
||||||
}
|
}
|
||||||
// To disallow parenthesized identifier via `this.toAssignable()`.
|
|
||||||
if (this.type === types$1.parenL && refDestructuringErrors) {
|
|
||||||
if (refDestructuringErrors.parenthesizedAssign < 0) {
|
|
||||||
refDestructuringErrors.parenthesizedAssign = this.start;
|
|
||||||
}
|
|
||||||
if (refDestructuringErrors.parenthesizedBind < 0) {
|
|
||||||
refDestructuringErrors.parenthesizedBind = this.start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Parse argument.
|
// Parse argument.
|
||||||
prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);
|
prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);
|
||||||
// To disallow trailing comma via `this.toAssignable()`.
|
// To disallow trailing comma via `this.toAssignable()`.
|
||||||
|
@ -3762,12 +3761,6 @@ RegExpValidationState.prototype.eat = function eat (ch, forceU) {
|
||||||
return false
|
return false
|
||||||
};
|
};
|
||||||
|
|
||||||
function codePointToString$1(ch) {
|
|
||||||
if (ch <= 0xFFFF) { return String.fromCharCode(ch) }
|
|
||||||
ch -= 0x10000;
|
|
||||||
return String.fromCharCode((ch >> 10) + 0xD800, (ch & 0x03FF) + 0xDC00)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate the flags part of a given RegExpLiteral.
|
* Validate the flags part of a given RegExpLiteral.
|
||||||
*
|
*
|
||||||
|
@ -4132,9 +4125,9 @@ pp$1.regexp_eatGroupName = function(state) {
|
||||||
pp$1.regexp_eatRegExpIdentifierName = function(state) {
|
pp$1.regexp_eatRegExpIdentifierName = function(state) {
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
if (this.regexp_eatRegExpIdentifierStart(state)) {
|
if (this.regexp_eatRegExpIdentifierStart(state)) {
|
||||||
state.lastStringValue += codePointToString$1(state.lastIntValue);
|
state.lastStringValue += codePointToString(state.lastIntValue);
|
||||||
while (this.regexp_eatRegExpIdentifierPart(state)) {
|
while (this.regexp_eatRegExpIdentifierPart(state)) {
|
||||||
state.lastStringValue += codePointToString$1(state.lastIntValue);
|
state.lastStringValue += codePointToString(state.lastIntValue);
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -4486,7 +4479,7 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
||||||
var ch = 0;
|
var ch = 0;
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
while (isUnicodePropertyNameCharacter(ch = state.current())) {
|
while (isUnicodePropertyNameCharacter(ch = state.current())) {
|
||||||
state.lastStringValue += codePointToString$1(ch);
|
state.lastStringValue += codePointToString(ch);
|
||||||
state.advance();
|
state.advance();
|
||||||
}
|
}
|
||||||
return state.lastStringValue !== ""
|
return state.lastStringValue !== ""
|
||||||
|
@ -4501,7 +4494,7 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
||||||
var ch = 0;
|
var ch = 0;
|
||||||
state.lastStringValue = "";
|
state.lastStringValue = "";
|
||||||
while (isUnicodePropertyValueCharacter(ch = state.current())) {
|
while (isUnicodePropertyValueCharacter(ch = state.current())) {
|
||||||
state.lastStringValue += codePointToString$1(ch);
|
state.lastStringValue += codePointToString(ch);
|
||||||
state.advance();
|
state.advance();
|
||||||
}
|
}
|
||||||
return state.lastStringValue !== ""
|
return state.lastStringValue !== ""
|
||||||
|
@ -5284,13 +5277,6 @@ pp.readCodePoint = function() {
|
||||||
return code
|
return code
|
||||||
};
|
};
|
||||||
|
|
||||||
function codePointToString(code) {
|
|
||||||
// UTF-16 Decoding
|
|
||||||
if (code <= 0xFFFF) { return String.fromCharCode(code) }
|
|
||||||
code -= 0x10000;
|
|
||||||
return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)
|
|
||||||
}
|
|
||||||
|
|
||||||
pp.readString = function(quote) {
|
pp.readString = function(quote) {
|
||||||
var out = "", chunkStart = ++this.pos;
|
var out = "", chunkStart = ++this.pos;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
@ -5535,7 +5521,7 @@ pp.readWord = function() {
|
||||||
|
|
||||||
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
// Acorn is a tiny, fast JavaScript parser written in JavaScript.
|
||||||
|
|
||||||
var version = "8.7.0";
|
var version = "8.8.1";
|
||||||
|
|
||||||
Parser.acorn = {
|
Parser.acorn = {
|
||||||
Parser: Parser,
|
Parser: Parser,
|
||||||
|
|
|
@ -16,8 +16,10 @@
|
||||||
],
|
],
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
"version": "8.7.0",
|
"version": "8.8.1",
|
||||||
"engines": {"node": ">=0.4.0"},
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
},
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
{
|
{
|
||||||
"name": "Marijn Haverbeke",
|
"name": "Marijn Haverbeke",
|
||||||
|
@ -42,5 +44,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "cd ..; npm run build:main"
|
"prepare": "cd ..; npm run build:main"
|
||||||
},
|
},
|
||||||
"bin": {"acorn": "./bin/acorn"}
|
"bin": {
|
||||||
|
"acorn": "./bin/acorn"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
0
node_modules/agent-base/dist/src/promisify.js.map
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/dist/src/promisify.js.map
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/LICENSE
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/LICENSE
generated
vendored
Executable file → Normal file
3
node_modules/agent-base/node_modules/debug/README.md
generated
vendored
Executable file → Normal file
3
node_modules/agent-base/node_modules/debug/README.md
generated
vendored
Executable file → Normal file
|
@ -241,6 +241,9 @@ setInterval(function(){
|
||||||
}, 1200);
|
}, 1200);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_.
|
||||||
|
|
||||||
|
<img width="647" src="https://user-images.githubusercontent.com/7143133/152083257-29034707-c42c-4959-8add-3cee850e6fcf.png">
|
||||||
|
|
||||||
## Output streams
|
## Output streams
|
||||||
|
|
||||||
|
|
2
node_modules/agent-base/node_modules/debug/package.json
generated
vendored
Executable file → Normal file
2
node_modules/agent-base/node_modules/debug/package.json
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "debug",
|
"name": "debug",
|
||||||
"version": "4.3.3",
|
"version": "4.3.4",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/debug-js/debug.git"
|
"url": "git://github.com/debug-js/debug.git"
|
||||||
|
|
0
node_modules/agent-base/node_modules/debug/src/browser.js
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/src/browser.js
generated
vendored
Executable file → Normal file
2
node_modules/agent-base/node_modules/debug/src/common.js
generated
vendored
Executable file → Normal file
2
node_modules/agent-base/node_modules/debug/src/common.js
generated
vendored
Executable file → Normal file
|
@ -179,7 +179,7 @@ function setup(env) {
|
||||||
namespaces = split[i].replace(/\*/g, '.*?');
|
namespaces = split[i].replace(/\*/g, '.*?');
|
||||||
|
|
||||||
if (namespaces[0] === '-') {
|
if (namespaces[0] === '-') {
|
||||||
createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
|
||||||
} else {
|
} else {
|
||||||
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
createDebug.names.push(new RegExp('^' + namespaces + '$'));
|
||||||
}
|
}
|
||||||
|
|
0
node_modules/agent-base/node_modules/debug/src/index.js
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/src/index.js
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/src/node.js
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/debug/src/node.js
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/license.md
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/license.md
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/package.json
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/package.json
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/readme.md
generated
vendored
Executable file → Normal file
0
node_modules/agent-base/node_modules/ms/readme.md
generated
vendored
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue