Skip to content

Commit

Permalink
chore: update test262 (#10943)
Browse files Browse the repository at this point in the history
* chore: update test262

* chore: ignore untoggleable features
  • Loading branch information
JLHwung committed Dec 30, 2019
1 parent b91720c commit 3145133
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -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"
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions scripts/parser-tests/test262/index.js
Expand Up @@ -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",
Expand Down Expand Up @@ -31,6 +32,7 @@ const ignoredFeatures = [
"FinalizationGroup",
"Float32Array",
"Float64Array",
"for-in-order",
"for-of",
"generators",
"globalThis",
Expand All @@ -42,6 +44,7 @@ const ignoredFeatures = [
"Intl.DateTimeFormat-dayPeriod",
"Intl.DateTimeFormat-fractionalSecondDigits",
"Intl.DateTimeFormat-formatRange",
"Intl.DisplayNames",
"Intl.ListFormat",
"Intl.Locale",
"Intl.NumberFormat-unified",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 3145133

Please sign in to comment.