mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
chore: Some minor cleanup (#18148)
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
"all": true,
|
||||
"reporter": ["lcov", "text"],
|
||||
"include": [
|
||||
"packages/*/lib/**/*.{js,cjs,mjs,ts}",
|
||||
"codemods/*/lib/**/*.{js,cjs,mjs,ts}",
|
||||
"eslint/*/lib/**/*.{js,cjs,mjs,ts}"
|
||||
"packages/*/lib/**/*.{js,cjs,mjs,ts,cts,mts}",
|
||||
"codemods/*/lib/**/*.{js,cjs,mjs,ts,cts,mts}",
|
||||
"eslint/*/lib/**/*.{js,cjs,mjs,ts,cts,mts}"
|
||||
],
|
||||
"exclude": [
|
||||
"packages/babel-standalone/**",
|
||||
|
||||
-39
@@ -1,39 +0,0 @@
|
||||
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
|
||||
tasks:
|
||||
- init: make bootstrap
|
||||
command: make watch
|
||||
- openMode: split-right
|
||||
command: |-
|
||||
clear && echo '
|
||||
Welcome to Gitpod!
|
||||
|
||||
If you haven'\''t forked Babel yet and you want to prepare a PR, you can use
|
||||
the Ctrl+P (or βP) shortcut, type `>Fork` and press ENTER: Gitpod\ will
|
||||
create the fork for you.
|
||||
|
||||
<-- The other terminal is building Babel. It should automatically rebuild
|
||||
when you change a file, so you don'\''t need to worry about it.
|
||||
If it'\''s still building, please wait until it'\''s finished!
|
||||
|
||||
If you want to run the tests, you can run `yarn jest` in this terminal,
|
||||
or filter by package name (for example, `yarn jest babel-parser`).
|
||||
'
|
||||
|
||||
#' # <-- This is just because the gitpod theme has broken syntax highlighting
|
||||
|
||||
github:
|
||||
# https://www.gitpod.io/docs/prebuilds/#configure-prebuilds
|
||||
prebuilds:
|
||||
master: true # enable for the default branch (even if it's not named "master")
|
||||
branches: true
|
||||
pullRequests: true
|
||||
pullRequestsFromForks: true
|
||||
addCheck: true
|
||||
addComment: false
|
||||
addBadge: true
|
||||
addLabel: false
|
||||
|
||||
vscode:
|
||||
extensions:
|
||||
- [email protected]:9Wg0Glx/TwD8ElFBg+FKcQ==
|
||||
- [email protected]:qca7d0cHbKkrkb5rvNlpcg==
|
||||
+1
-1
@@ -55,7 +55,7 @@ releaseTool:
|
||||
- test/**
|
||||
- "**/test/**"
|
||||
- codemods/**
|
||||
- "@(!(native-modules|built-ins|plugins|package|corejs2-built-ins|corejs3-shipped-proposals|plugins-bugfixes)).json"
|
||||
- "@(!(native-modules|built-ins|plugins|package|corejs3-shipped-proposals|plugins-bugfixes)).json"
|
||||
implicitDependencies:
|
||||
"@babel/runtime":
|
||||
- "@babel/helpers"
|
||||
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
// https://github.com/airbnb/babel-plugin-dynamic-import-node/blob/master/src/utils.js
|
||||
declare module "babel-plugin-dynamic-import-node/utils" {
|
||||
import type { PluginAPI, PluginPass } from "@babel/core";
|
||||
import type { NodePath } from "@babel/traverse";
|
||||
import type * as t from "@babel/types";
|
||||
function getImportSource(
|
||||
t: typeof import("@babel/types"),
|
||||
callNode: t.CallExpression
|
||||
): t.Expression;
|
||||
|
||||
function createDynamicImportTransform({
|
||||
template,
|
||||
types: t,
|
||||
}: PluginAPI): (context: PluginPass, path: NodePath) => void;
|
||||
|
||||
export { getImportSource, createDynamicImportTransform };
|
||||
}
|
||||
@@ -106,8 +106,6 @@
|
||||
"@types/babel__core": "link:./nope",
|
||||
"@types/babel__traverse": "link:./nope",
|
||||
"@types/eslint-scope": "link:./nope",
|
||||
"@babel/parser/@babel/types": "workspace:*",
|
||||
"@babel/plugin-syntax-unicode-sets-regex/@babel/helper-create-regexp-features-plugin": "workspace:*",
|
||||
"interpret@npm:^2.2.0": "patch:interpret@npm%3A3.1.1#~/.yarn/patches/interpret-npm-3.1.1-715bac2bd7.patch",
|
||||
"interpret@npm:^1.0.0": "patch:interpret@npm%3A3.1.1#~/.yarn/patches/interpret-npm-3.1.1-715bac2bd7.patch",
|
||||
"interpret@npm:^3.1.1": "patch:interpret@npm%3A3.1.1#~/.yarn/patches/interpret-npm-3.1.1-715bac2bd7.patch"
|
||||
|
||||
Vendored
+1
-2
@@ -3,6 +3,5 @@
|
||||
"env": {
|
||||
"BABEL_ENV": "test",
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/index.js"
|
||||
},
|
||||
"os": ["darwin", "linux"]
|
||||
}
|
||||
}
|
||||
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"sourceType": "script",
|
||||
"overrides": [
|
||||
{
|
||||
"test": "src/foo.js",
|
||||
"sourceType": "module"
|
||||
},
|
||||
{
|
||||
"test": "src/bar.js",
|
||||
"sourceType": "script"
|
||||
}
|
||||
]
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"args": ["./src", "--out-file", "./test.js"],
|
||||
"os": ["win32"],
|
||||
"env": {
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/foo.js"
|
||||
}
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
"use strict";
|
||||
"use strict";
|
||||
Vendored
-32
@@ -1,32 +0,0 @@
|
||||
Babel configs on "<CWD>/src/foo.js" (ascending priority):
|
||||
config <CWD>/babel.config.json
|
||||
{
|
||||
"sourceType": "script"
|
||||
}
|
||||
|
||||
config <CWD>/babel.config.json .overrides[0]
|
||||
{
|
||||
"test": "src/foo.js",
|
||||
"sourceType": "module"
|
||||
}
|
||||
|
||||
config <CWD>/.babelrc
|
||||
{}
|
||||
|
||||
programmatic options from @babel/cli
|
||||
{
|
||||
"presets": [
|
||||
"<ROOTDIR>//packages//babel-preset-react//lib//index.js"
|
||||
],
|
||||
"plugins": [
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-arrow-functions//lib//index.js",
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-strict-mode//lib//index.js",
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-modules-commonjs//lib//index.js"
|
||||
],
|
||||
"sourceFileName": "src/foo.js",
|
||||
"caller": {
|
||||
"name": "@babel/cli"
|
||||
},
|
||||
"filename": "src//foo.js"
|
||||
}
|
||||
-----End Babel configs-----
|
||||
Vendored
-1
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"args": ["./src", "--out-file", "./test.js"],
|
||||
"os": ["darwin", "linux"],
|
||||
"env": {
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/foo.js"
|
||||
}
|
||||
|
||||
+1
-2
@@ -3,6 +3,5 @@
|
||||
"env": {
|
||||
"BABEL_ENV": "test",
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/index.js"
|
||||
},
|
||||
"os": ["darwin", "linux"]
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
-13
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"sourceType": "script",
|
||||
"overrides": [
|
||||
{
|
||||
"test": "src/foo.js",
|
||||
"sourceType": "module"
|
||||
},
|
||||
{
|
||||
"test": "src/bar.js",
|
||||
"sourceType": "script"
|
||||
}
|
||||
]
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"args": ["./src", "-d", "lib"],
|
||||
"env": {
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/foo.js"
|
||||
},
|
||||
"os": ["win32"]
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";
|
||||
-33
@@ -1,33 +0,0 @@
|
||||
Babel configs on "<CWD>/src/foo.js" (ascending priority):
|
||||
config <CWD>/babel.config.json
|
||||
{
|
||||
"sourceType": "script"
|
||||
}
|
||||
|
||||
config <CWD>/babel.config.json .overrides[0]
|
||||
{
|
||||
"test": "src/foo.js",
|
||||
"sourceType": "module"
|
||||
}
|
||||
|
||||
config <CWD>/.babelrc
|
||||
{}
|
||||
|
||||
programmatic options from @babel/cli
|
||||
{
|
||||
"presets": [
|
||||
"<ROOTDIR>//packages//babel-preset-react//lib//index.js"
|
||||
],
|
||||
"plugins": [
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-arrow-functions//lib//index.js",
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-strict-mode//lib//index.js",
|
||||
"<ROOTDIR>//packages//babel-plugin-transform-modules-commonjs//lib//index.js"
|
||||
],
|
||||
"sourceFileName": "../src/foo.js",
|
||||
"caller": {
|
||||
"name": "@babel/cli"
|
||||
},
|
||||
"filename": "src//foo.js"
|
||||
}
|
||||
-----End Babel configs-----
|
||||
Successfully compiled 2 files with Babel (123ms).
|
||||
@@ -3,6 +3,5 @@
|
||||
"env": {
|
||||
"BABEL_ENV": "test",
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src/index.js"
|
||||
},
|
||||
"os": ["darwin", "linux"]
|
||||
}
|
||||
}
|
||||
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"sourceType": "script",
|
||||
"overrides": [
|
||||
{
|
||||
"test": "src/foo.js",
|
||||
"sourceType": "module"
|
||||
},
|
||||
{
|
||||
"test": "src/bar.js",
|
||||
"sourceType": "script"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
-8
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"args": ["./src", "-d", "lib"],
|
||||
"env": {
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src"
|
||||
},
|
||||
"os": ["win32"],
|
||||
"stderrContains": true
|
||||
}
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
Error: <CWD>\src: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.
|
||||
-1
@@ -3,6 +3,5 @@
|
||||
"env": {
|
||||
"BABEL_SHOW_CONFIG_FOR": "./src"
|
||||
},
|
||||
"os": ["darwin", "linux"],
|
||||
"stderrContains": true
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"args": ["--filename", "test.js"],
|
||||
"stderrContains": true,
|
||||
"os": ["win32"]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
SyntaxError: <CWD>\test.js: Missing semicolon. (2:10)
|
||||
@@ -1,3 +0,0 @@
|
||||
arr.map(function () {
|
||||
return $]!;
|
||||
});
|
||||
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"args": ["--filename", "test.js"],
|
||||
"stderrContains": true,
|
||||
"os": ["linux", "darwin"]
|
||||
"stderrContains": true
|
||||
}
|
||||
|
||||
@@ -1,366 +0,0 @@
|
||||
const typedArrayMethods = [
|
||||
"typed arrays / %TypedArray%.from",
|
||||
"typed arrays / %TypedArray%.of",
|
||||
"typed arrays / %TypedArray%.prototype.subarray",
|
||||
"typed arrays / %TypedArray%.prototype.join",
|
||||
"typed arrays / %TypedArray%.prototype.indexOf",
|
||||
"typed arrays / %TypedArray%.prototype.lastIndexOf",
|
||||
"typed arrays / %TypedArray%.prototype.slice",
|
||||
"typed arrays / %TypedArray%.prototype.every",
|
||||
"typed arrays / %TypedArray%.prototype.filter",
|
||||
"typed arrays / %TypedArray%.prototype.forEach",
|
||||
"typed arrays / %TypedArray%.prototype.map",
|
||||
"typed arrays / %TypedArray%.prototype.reduce",
|
||||
"typed arrays / %TypedArray%.prototype.reduceRight",
|
||||
"typed arrays / %TypedArray%.prototype.reverse",
|
||||
"typed arrays / %TypedArray%.prototype.some",
|
||||
"typed arrays / %TypedArray%.prototype.sort",
|
||||
"typed arrays / %TypedArray%.prototype.copyWithin",
|
||||
"typed arrays / %TypedArray%.prototype.find",
|
||||
"typed arrays / %TypedArray%.prototype.findIndex",
|
||||
"typed arrays / %TypedArray%.prototype.fill",
|
||||
"typed arrays / %TypedArray%.prototype.keys",
|
||||
"typed arrays / %TypedArray%.prototype.values",
|
||||
"typed arrays / %TypedArray%.prototype.entries",
|
||||
"typed arrays / %TypedArray%.prototype[Symbol.iterator]",
|
||||
"typed arrays / %TypedArray%[Symbol.species]",
|
||||
];
|
||||
|
||||
export default {
|
||||
"es6.array.copy-within":
|
||||
"Array.prototype methods / Array.prototype.copyWithin",
|
||||
"es6.array.every": "Array methods / Array.prototype.every",
|
||||
"es6.array.fill": "Array.prototype methods / Array.prototype.fill",
|
||||
"es6.array.filter": {
|
||||
features: [
|
||||
"Array methods / Array.prototype.filter",
|
||||
"well-known symbols / Symbol.species, Array.prototype.filter",
|
||||
],
|
||||
},
|
||||
"es6.array.find": "Array.prototype methods / Array.prototype.find",
|
||||
"es6.array.find-index": "Array.prototype methods / Array.prototype.findIndex",
|
||||
"es7.array.flat-map":
|
||||
"Array.prototype.{flat, flatMap} / Array.prototype.flatMap",
|
||||
"es6.array.for-each": "Array methods / Array.prototype.forEach",
|
||||
"es6.array.from": "Array static methods / Array.from",
|
||||
"es7.array.includes": "Array.prototype.includes",
|
||||
"es6.array.index-of": "Array methods / Array.prototype.indexOf",
|
||||
"es6.array.is-array": "Array methods / Array.isArray",
|
||||
// "es.array.join": "", required tests for that
|
||||
"es6.array.iterator": {
|
||||
features: [
|
||||
"Array.prototype methods / Array.prototype.keys",
|
||||
"Array.prototype methods / Array.prototype.values",
|
||||
"Array.prototype methods / Array.prototype.entries",
|
||||
],
|
||||
},
|
||||
"es6.array.last-index-of": "Array methods / Array.prototype.lastIndexOf",
|
||||
"es6.array.map": {
|
||||
features: [
|
||||
"Array methods / Array.prototype.map",
|
||||
"well-known symbols / Symbol.species, Array.prototype.map",
|
||||
],
|
||||
},
|
||||
"es6.array.of": "Array static methods / Array.of",
|
||||
"es6.array.reduce": "Array methods / Array.prototype.reduce",
|
||||
"es6.array.reduce-right": "Array methods / Array.prototype.reduceRight",
|
||||
"es6.array.slice":
|
||||
"well-known symbols / Symbol.species, Array.prototype.slice",
|
||||
"es6.array.some": "Array methods / Array.prototype.some",
|
||||
"es6.array.sort": "Array methods / Array.prototype.sort",
|
||||
"es6.array.species": "Array static methods / Array[Symbol.species]",
|
||||
|
||||
"es6.date.now": "Date methods / Date.now",
|
||||
"es6.date.to-iso-string": "Date methods / Date.prototype.toISOString",
|
||||
"es6.date.to-json": "Date methods / Date.prototype.toJSON",
|
||||
"es6.date.to-primitive": "Date.prototype[Symbol.toPrimitive]",
|
||||
"es6.date.to-string": "miscellaneous / Invalid Date",
|
||||
|
||||
"es6.function.bind": "Function.prototype.bind",
|
||||
"es6.function.has-instance": "well-known symbols / Symbol.hasInstance",
|
||||
"es6.function.name": {
|
||||
features: [
|
||||
'function "name" property / function statements',
|
||||
'function "name" property / function expressions',
|
||||
],
|
||||
},
|
||||
|
||||
// This is explicit to prevent Map-related proposals (like
|
||||
// Map.prototype.upsert) from being included
|
||||
"es6.map": {
|
||||
features: [
|
||||
"Map / basic functionality",
|
||||
"Map / constructor arguments",
|
||||
"Map / constructor requires new",
|
||||
"Map / constructor accepts null",
|
||||
"Map / constructor invokes set",
|
||||
"Map / iterator closing",
|
||||
"Map / Map.prototype.add returns this",
|
||||
"Map / -0 key converts to +0",
|
||||
"Map / Map.prototype.size",
|
||||
"Map / Map.prototype.delete",
|
||||
"Map / Map.prototype.clear",
|
||||
"Map / Map.prototype.forEach",
|
||||
"Map / Map.prototype.keys",
|
||||
"Map / Map.prototype.values",
|
||||
"Map / Map.prototype.entries",
|
||||
"Map / Map.prototype[Symbol.iterator]",
|
||||
"Map / Map.prototype isn't an instance",
|
||||
"Map / Map iterator prototype chain",
|
||||
"Map / Map[Symbol.species]",
|
||||
],
|
||||
},
|
||||
|
||||
"es6.math.acosh": "Math methods / Math.acosh",
|
||||
"es6.math.asinh": "Math methods / Math.asinh",
|
||||
"es6.math.atanh": "Math methods / Math.atanh",
|
||||
"es6.math.cbrt": "Math methods / Math.cbrt",
|
||||
"es6.math.clz32": "Math methods / Math.clz32",
|
||||
"es6.math.cosh": "Math methods / Math.cosh",
|
||||
"es6.math.expm1": "Math methods / Math.expm1",
|
||||
"es6.math.fround": "Math methods / Math.fround",
|
||||
"es6.math.hypot": "Math methods / Math.hypot",
|
||||
"es6.math.imul": "Math methods / Math.imul",
|
||||
"es6.math.log1p": "Math methods / Math.log1p",
|
||||
"es6.math.log10": "Math methods / Math.log10",
|
||||
"es6.math.log2": "Math methods / Math.log2",
|
||||
"es6.math.sign": "Math methods / Math.sign",
|
||||
"es6.math.sinh": "Math methods / Math.sinh",
|
||||
"es6.math.tanh": "Math methods / Math.tanh",
|
||||
"es6.math.trunc": "Math methods / Math.trunc",
|
||||
|
||||
"es6.number.constructor": {
|
||||
features: [
|
||||
"octal and binary literals / octal supported by Number()",
|
||||
"octal and binary literals / binary supported by Number()",
|
||||
],
|
||||
},
|
||||
"es6.number.epsilon": "Number properties / Number.EPSILON",
|
||||
"es6.number.is-finite": "Number properties / Number.isFinite",
|
||||
"es6.number.is-integer": "Number properties / Number.isInteger",
|
||||
"es6.number.is-nan": "Number properties / Number.isNaN",
|
||||
"es6.number.is-safe-integer": "Number properties / Number.isSafeInteger",
|
||||
"es6.number.max-safe-integer": "Number properties / Number.MAX_SAFE_INTEGER",
|
||||
"es6.number.min-safe-integer": "Number properties / Number.MIN_SAFE_INTEGER",
|
||||
"es6.number.parse-float": "Number properties / Number.parseFloat",
|
||||
"es6.number.parse-int": "Number properties / Number.parseInt",
|
||||
|
||||
"es6.object.assign": {
|
||||
features: ["Object static methods / Object.assign", "Symbol"],
|
||||
},
|
||||
"es6.object.create": "Object static methods / Object.create",
|
||||
"es7.object.define-getter": {
|
||||
features: [
|
||||
"Object.prototype getter/setter methods / __defineGetter__",
|
||||
"Object.prototype getter/setter methods / __defineGetter__, symbols",
|
||||
"Object.prototype getter/setter methods / __defineGetter__, ToObject(this)",
|
||||
],
|
||||
},
|
||||
"es7.object.define-setter": {
|
||||
features: [
|
||||
"Object.prototype getter/setter methods / __defineSetter__",
|
||||
"Object.prototype getter/setter methods / __defineSetter__, symbols",
|
||||
"Object.prototype getter/setter methods / __defineSetter__, ToObject(this)",
|
||||
],
|
||||
},
|
||||
"es6.object.define-property": "Object static methods / Object.defineProperty",
|
||||
"es6.object.define-properties":
|
||||
"Object static methods / Object.defineProperties",
|
||||
"es7.object.entries": "Object static methods / Object.entries",
|
||||
"es6.object.freeze":
|
||||
"Object static methods accept primitives / Object.freeze",
|
||||
"es6.object.get-own-property-descriptor":
|
||||
"Object static methods accept primitives / Object.getOwnPropertyDescriptor",
|
||||
"es7.object.get-own-property-descriptors":
|
||||
"Object static methods / Object.getOwnPropertyDescriptors",
|
||||
"es6.object.get-own-property-names":
|
||||
"Object static methods accept primitives / Object.getOwnPropertyNames",
|
||||
"es6.object.get-prototype-of":
|
||||
"Object static methods accept primitives / Object.getPrototypeOf",
|
||||
"es7.object.lookup-getter": {
|
||||
features: [
|
||||
"Object.prototype getter/setter methods / __lookupGetter__",
|
||||
"Object.prototype getter/setter methods / __lookupGetter__, prototype chain",
|
||||
"Object.prototype getter/setter methods / __lookupGetter__, symbols",
|
||||
"Object.prototype getter/setter methods / __lookupGetter__, ToObject(this)",
|
||||
"Object.prototype getter/setter methods / __lookupGetter__, data properties can shadow accessors",
|
||||
],
|
||||
},
|
||||
"es7.object.lookup-setter": {
|
||||
features: [
|
||||
"Object.prototype getter/setter methods / __lookupSetter__",
|
||||
"Object.prototype getter/setter methods / __lookupSetter__, prototype chain",
|
||||
"Object.prototype getter/setter methods / __lookupSetter__, symbols",
|
||||
"Object.prototype getter/setter methods / __lookupSetter__, ToObject(this)",
|
||||
"Object.prototype getter/setter methods / __lookupSetter__, data properties can shadow accessors",
|
||||
],
|
||||
},
|
||||
"es6.object.prevent-extensions":
|
||||
"Object static methods accept primitives / Object.preventExtensions",
|
||||
"es6.object.to-string": "well-known symbols / Symbol.toStringTag",
|
||||
"es6.object.is": "Object static methods / Object.is",
|
||||
"es6.object.is-frozen":
|
||||
"Object static methods accept primitives / Object.isFrozen",
|
||||
"es6.object.is-sealed":
|
||||
"Object static methods accept primitives / Object.isSealed",
|
||||
"es6.object.is-extensible":
|
||||
"Object static methods accept primitives / Object.isExtensible",
|
||||
"es6.object.keys": "Object static methods accept primitives / Object.keys",
|
||||
"es6.object.seal": "Object static methods accept primitives / Object.seal",
|
||||
"es6.object.set-prototype-of":
|
||||
"Object static methods / Object.setPrototypeOf",
|
||||
"es7.object.values": "Object static methods / Object.values",
|
||||
|
||||
"es6.promise": {
|
||||
features: [
|
||||
// required unhandled rejection tracking tests
|
||||
"Promise",
|
||||
"well-known symbols / Symbol.species, Promise.prototype.then",
|
||||
],
|
||||
},
|
||||
"es7.promise.finally": "Promise.prototype.finally",
|
||||
|
||||
"es6.reflect.apply": "Reflect / Reflect.apply",
|
||||
"es6.reflect.construct": "Reflect / Reflect.construct",
|
||||
"es6.reflect.define-property": "Reflect / Reflect.defineProperty",
|
||||
"es6.reflect.delete-property": "Reflect / Reflect.deleteProperty",
|
||||
"es6.reflect.get": "Reflect / Reflect.get",
|
||||
"es6.reflect.get-own-property-descriptor":
|
||||
"Reflect / Reflect.getOwnPropertyDescriptor",
|
||||
"es6.reflect.get-prototype-of": "Reflect / Reflect.getPrototypeOf",
|
||||
"es6.reflect.has": "Reflect / Reflect.has",
|
||||
"es6.reflect.is-extensible": "Reflect / Reflect.isExtensible",
|
||||
"es6.reflect.own-keys": "Reflect / Reflect.ownKeys",
|
||||
"es6.reflect.prevent-extensions": "Reflect / Reflect.preventExtensions",
|
||||
"es6.reflect.set": "Reflect / Reflect.set",
|
||||
"es6.reflect.set-prototype-of": "Reflect / Reflect.setPrototypeOf",
|
||||
|
||||
"es6.regexp.constructor": {
|
||||
features: [
|
||||
"miscellaneous / RegExp constructor can alter flags",
|
||||
"well-known symbols / Symbol.match, RegExp constructor",
|
||||
],
|
||||
},
|
||||
"es6.regexp.flags": "RegExp.prototype properties / RegExp.prototype.flags",
|
||||
"es6.regexp.match":
|
||||
"RegExp.prototype properties / RegExp.prototype[Symbol.match]",
|
||||
"es6.regexp.replace":
|
||||
"RegExp.prototype properties / RegExp.prototype[Symbol.replace]",
|
||||
"es6.regexp.split":
|
||||
"RegExp.prototype properties / RegExp.prototype[Symbol.split]",
|
||||
"es6.regexp.search":
|
||||
"RegExp.prototype properties / RegExp.prototype[Symbol.search]",
|
||||
"es6.regexp.to-string":
|
||||
'miscellaneous / RegExp.prototype.toString generic and uses "flags" property',
|
||||
|
||||
// This is explicit due to prevent the stage-1 Set proposals under the
|
||||
// category "Set methods" from being included.
|
||||
"es6.set": {
|
||||
features: [
|
||||
"Set / basic functionality",
|
||||
"Set / constructor arguments",
|
||||
"Set / constructor requires new",
|
||||
"Set / constructor accepts null",
|
||||
"Set / constructor invokes add",
|
||||
"Set / iterator closing",
|
||||
"Set / Set.prototype.add returns this",
|
||||
"Set / -0 key converts to +0",
|
||||
"Set / Set.prototype.size",
|
||||
"Set / Set.prototype.delete",
|
||||
"Set / Set.prototype.clear",
|
||||
"Set / Set.prototype.forEach",
|
||||
"Set / Set.prototype.keys",
|
||||
"Set / Set.prototype.values",
|
||||
"Set / Set.prototype.entries",
|
||||
"Set / Set.prototype[Symbol.iterator]",
|
||||
"Set / Set.prototype isn't an instance",
|
||||
"Set / Set iterator prototype chain",
|
||||
"Set / Set[Symbol.species]",
|
||||
],
|
||||
},
|
||||
|
||||
"es6.symbol": {
|
||||
features: [
|
||||
"Symbol",
|
||||
"Object static methods / Object.getOwnPropertySymbols",
|
||||
"well-known symbols / Symbol.hasInstance",
|
||||
"well-known symbols / Symbol.isConcatSpreadable",
|
||||
"well-known symbols / Symbol.iterator",
|
||||
"well-known symbols / Symbol.match",
|
||||
"well-known symbols / Symbol.replace",
|
||||
"well-known symbols / Symbol.search",
|
||||
"well-known symbols / Symbol.species",
|
||||
"well-known symbols / Symbol.split",
|
||||
"well-known symbols / Symbol.toPrimitive",
|
||||
"well-known symbols / Symbol.toStringTag",
|
||||
"well-known symbols / Symbol.unscopables",
|
||||
],
|
||||
},
|
||||
"es7.symbol.async-iterator": "Asynchronous Iterators",
|
||||
|
||||
"es6.string.anchor": "String.prototype HTML methods",
|
||||
"es6.string.big": "String.prototype HTML methods",
|
||||
"es6.string.blink": "String.prototype HTML methods",
|
||||
"es6.string.bold": "String.prototype HTML methods",
|
||||
"es6.string.code-point-at":
|
||||
"String.prototype methods / String.prototype.codePointAt",
|
||||
"es6.string.ends-with":
|
||||
"String.prototype methods / String.prototype.endsWith",
|
||||
"es6.string.fixed": "String.prototype HTML methods",
|
||||
"es6.string.fontcolor": "String.prototype HTML methods",
|
||||
"es6.string.fontsize": "String.prototype HTML methods",
|
||||
"es6.string.from-code-point": "String static methods / String.fromCodePoint",
|
||||
"es6.string.includes": "String.prototype methods / String.prototype.includes",
|
||||
"es6.string.italics": "String.prototype HTML methods",
|
||||
"es6.string.iterator":
|
||||
"String.prototype methods / String.prototype[Symbol.iterator]",
|
||||
"es6.string.link": "String.prototype HTML methods",
|
||||
// "String.prototype methods / String.prototype.normalize" not implemented
|
||||
"es7.string.pad-start": "String padding / String.prototype.padStart",
|
||||
"es7.string.pad-end": "String padding / String.prototype.padEnd",
|
||||
"es6.string.raw": "String static methods / String.raw",
|
||||
"es6.string.repeat": "String.prototype methods / String.prototype.repeat",
|
||||
"es6.string.small": "String.prototype HTML methods",
|
||||
"es6.string.starts-with":
|
||||
"String.prototype methods / String.prototype.startsWith",
|
||||
"es6.string.strike": "String.prototype HTML methods",
|
||||
"es6.string.sub": "String.prototype HTML methods",
|
||||
"es6.string.sup": "String.prototype HTML methods",
|
||||
"es6.string.trim": "String properties and methods / String.prototype.trim",
|
||||
"es7.string.trim-left": "string trimming / String.prototype.trimStart",
|
||||
"es7.string.trim-right": "string trimming / String.prototype.trimEnd",
|
||||
|
||||
"es6.typed.array-buffer": "typed arrays / ArrayBuffer[Symbol.species]",
|
||||
"es6.typed.data-view": "typed arrays / DataView",
|
||||
"es6.typed.int8-array": {
|
||||
features: ["typed arrays / Int8Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.uint8-array": {
|
||||
features: ["typed arrays / Uint8Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.uint8-clamped-array": {
|
||||
features: ["typed arrays / Uint8ClampedArray"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.int16-array": {
|
||||
features: ["typed arrays / Int16Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.uint16-array": {
|
||||
features: ["typed arrays / Uint16Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.int32-array": {
|
||||
features: ["typed arrays / Int32Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.uint32-array": {
|
||||
features: ["typed arrays / Uint32Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.float32-array": {
|
||||
features: ["typed arrays / Float32Array"].concat(typedArrayMethods),
|
||||
},
|
||||
"es6.typed.float64-array": {
|
||||
features: ["typed arrays / Float64Array"].concat(typedArrayMethods),
|
||||
},
|
||||
|
||||
"es6.weak-map": "WeakMap",
|
||||
|
||||
"es6.weak-set": "WeakSet",
|
||||
};
|
||||
@@ -637,6 +637,8 @@ const assertTest = function (
|
||||
) {
|
||||
const expectStderr = opts.stderr.trim();
|
||||
stderr = stderr.trim();
|
||||
stderr = stderr.replace(/\\\\/g, "/");
|
||||
stderr = stderr.replace(/\\/g, "/");
|
||||
|
||||
try {
|
||||
if (opts.stderr) {
|
||||
@@ -656,6 +658,7 @@ const assertTest = function (
|
||||
|
||||
const expectStdout = opts.stdout.trim();
|
||||
stdout = stdout.trim();
|
||||
stdout = stdout.replace(/\\\\/g, "/");
|
||||
stdout = stdout.replace(/\\/g, "/");
|
||||
|
||||
try {
|
||||
|
||||
Vendored
-4
@@ -1,4 +0,0 @@
|
||||
class Class {
|
||||
method
|
||||
<T>() {}
|
||||
}
|
||||
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": ["typescript", "estree"]
|
||||
}
|
||||
Vendored
-86
@@ -1,86 +0,0 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
|
||||
"sourceType": "script",
|
||||
"interpreter": null,
|
||||
"body": [
|
||||
{
|
||||
"type": "ClassDeclaration",
|
||||
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":4,"column":1}},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start":6,"end":11,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":11},"identifierName":"Class"},
|
||||
"name": "Class",
|
||||
"decorators": [],
|
||||
"optional": false
|
||||
},
|
||||
"superClass": null,
|
||||
"body": {
|
||||
"type": "ClassBody",
|
||||
"start":12,"end":33,"loc":{"start":{"line":1,"column":12},"end":{"line":4,"column":1}},
|
||||
"body": [
|
||||
{
|
||||
"type": "MethodDefinition",
|
||||
"start":16,"end":31,"loc":{"start":{"line":2,"column":2},"end":{"line":3,"column":8}},
|
||||
"static": false,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start":16,"end":22,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":8},"identifierName":"method"},
|
||||
"name": "method",
|
||||
"decorators": [],
|
||||
"optional": false
|
||||
},
|
||||
"computed": false,
|
||||
"kind": "method",
|
||||
"value": {
|
||||
"type": "FunctionExpression",
|
||||
"start":23,"end":31,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":8}},
|
||||
"id": null,
|
||||
"generator": false,
|
||||
"async": false,
|
||||
"expression": false,
|
||||
"params": [],
|
||||
"body": {
|
||||
"type": "BlockStatement",
|
||||
"start":29,"end":31,"loc":{"start":{"line":3,"column":6},"end":{"line":3,"column":8}},
|
||||
"body": []
|
||||
},
|
||||
"declare": false,
|
||||
"typeParameters": {
|
||||
"type": "TSTypeParameterDeclaration",
|
||||
"start":23,"end":26,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":3}},
|
||||
"params": [
|
||||
{
|
||||
"type": "TSTypeParameter",
|
||||
"start":24,"end":25,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":2}},
|
||||
"name": {
|
||||
"type": "Identifier",
|
||||
"start":24,"end":25,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":2},"identifierName":"T"},
|
||||
"name": "T",
|
||||
"decorators": [],
|
||||
"optional": false
|
||||
},
|
||||
"const": false,
|
||||
"in": false,
|
||||
"out": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"decorators": [],
|
||||
"override": false,
|
||||
"optional": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"abstract": false,
|
||||
"declare": false,
|
||||
"decorators": [],
|
||||
"implements": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
interface Foo {
|
||||
set bar(...v);
|
||||
}
|
||||
-56
@@ -1,56 +0,0 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
|
||||
"errors": [
|
||||
"SyntaxError: A 'set' accessor cannot have rest parameter. (3:1)"
|
||||
],
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
|
||||
"sourceType": "module",
|
||||
"interpreter": null,
|
||||
"body": [
|
||||
{
|
||||
"type": "TSInterfaceDeclaration",
|
||||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":34}},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"Foo"},
|
||||
"name": "Foo"
|
||||
},
|
||||
"body": {
|
||||
"type": "TSInterfaceBody",
|
||||
"start":14,"end":34,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":3,"column":1,"index":34}},
|
||||
"body": [
|
||||
{
|
||||
"type": "TSMethodSignature",
|
||||
"start":18,"end":32,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":16,"index":32}},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start":22,"end":25,"loc":{"start":{"line":2,"column":6,"index":22},"end":{"line":2,"column":9,"index":25},"identifierName":"bar"},
|
||||
"name": "bar"
|
||||
},
|
||||
"computed": false,
|
||||
"kind": "set",
|
||||
"params": [
|
||||
{
|
||||
"type": "RestElement",
|
||||
"start":26,"end":30,"loc":{"start":{"line":2,"column":10,"index":26},"end":{"line":2,"column":14,"index":30}},
|
||||
"argument": {
|
||||
"type": "Identifier",
|
||||
"start":29,"end":30,"loc":{"start":{"line":2,"column":13,"index":29},"end":{"line":2,"column":14,"index":30},"identifierName":"v"},
|
||||
"name": "v"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": [],
|
||||
"extra": {
|
||||
"topLevelAwait": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user