chore: update test262 (#10943)

* chore: update test262

* chore: ignore untoggleable features
This commit is contained in:
Huáng Jùnliàng 2019-12-29 21:35:19 -05:00 committed by GitHub
parent b91720c1cc
commit 314513374d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FLOW_COMMIT = 09669846b7a7ca5a6c23c12d56bb3bebdafd67e9
TEST262_COMMIT = 8688c4ab79059c3097098605e69f1ee5eda6c409
TEST262_COMMIT = 157b18d16b5d52501c4d75ac422d3a80bfad1c17
TYPESCRIPT_COMMIT = 038d95144d8b93c2799d1732181c89c3d84362d5
FORCE_PUBLISH = "@babel/runtime,@babel/runtime-corejs2,@babel/runtime-corejs3,@babel/standalone,@babel/preset-env-standalone"
@ -189,7 +189,7 @@ test-typescript-update-whitelist:
bootstrap-test262:
rm -rf build/test262
mkdir -p build
git clone --branch=master --single-branch --shallow-since=2019-09-01 https://github.com/tc39/test262.git build/test262
git clone --branch=master --single-branch --shallow-since=2019-12-01 https://github.com/tc39/test262.git build/test262
cd build/test262 && git checkout $(TEST262_COMMIT)
test-test262:

View File

@ -3,6 +3,7 @@ const TestStream = require("test262-stream");
const TestRunner = require("../utils/parser-test-runner");
const ignoredFeatures = [
"AggregateError",
"Array.prototype.flat",
"Array.prototype.flatMap",
"Array.prototype.values",
@ -31,6 +32,7 @@ const ignoredFeatures = [
"FinalizationGroup",
"Float32Array",
"Float64Array",
"for-in-order",
"for-of",
"generators",
"globalThis",
@ -42,6 +44,7 @@ const ignoredFeatures = [
"Intl.DateTimeFormat-dayPeriod",
"Intl.DateTimeFormat-fractionalSecondDigits",
"Intl.DateTimeFormat-formatRange",
"Intl.DisplayNames",
"Intl.ListFormat",
"Intl.Locale",
"Intl.NumberFormat-unified",
@ -76,6 +79,7 @@ const ignoredFeatures = [
"String.prototype.endsWith",
"String.prototype.includes",
"String.prototype.matchAll",
"String.prototype.replaceAll",
"String.prototype.trimEnd",
"String.prototype.trimStart",
"string-trimming",
@ -118,6 +122,7 @@ const featuresToPlugins = {
"class-static-fields-public": "classProperties",
"class-static-fields-private": "classPrivateProperties",
"class-static-methods-private": "classPrivateMethods",
"coalesce-expression": "nullishCoalescingOperator",
"dynamic-import": "dynamicImport",
"export-star-as-namespace-from-module": "exportNamespaceFrom",
"import.meta": "importMeta",