Skip to content

Commit

Permalink
Test262 update (#9288)
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Jan 7, 2019
1 parent b211b81 commit a55382e
Show file tree
Hide file tree
Showing 3 changed files with 1,381 additions and 1,197 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -1,6 +1,6 @@
MAKEFLAGS = -j1
FLOW_COMMIT = e192e1a4793dd8e43415fbfe8046d832cb513c8b
TEST262_COMMIT = 238c88d4a084d9928372954e2fec54af2c951281
FLOW_COMMIT = 2ac56861e3ceff9ca406ae586fbafb3480c6c0b7
TEST262_COMMIT = f77b930e6720f8005d5302acaedd434e13bf2fe2

# Fix color output until TravisCI fixes https://github.com/travis-ci/travis-ci/issues/7967
export FORCE_COLOR = true
Expand Down
137 changes: 70 additions & 67 deletions scripts/tests/test262/run_babel_parser_test262_utils.js
Expand Up @@ -13,96 +13,98 @@ const pfs = {
const parse = require("../../../packages/babel-parser").parse;

const ignoredFeatures = [
"Array.prototype.flat",
"Array.prototype.flatMap",
"Array.prototype.values",
"ArrayBuffer",
"async-functions",
"async-iteration",
"arrow-function",
"Atomics",
"caller",
"class",
"computed-property-names",
"const",
"cross-realm",
"DataView",
"DataView.prototype.getFloat32",
"DataView.prototype.getFloat64",
"DataView.prototype.getInt8",
"DataView.prototype.getInt16",
"DataView.prototype.getInt32",
"DataView.prototype.getUint16",
"DataView.prototype.getUint32",
"DataView.prototype.setUint8",
"default-parameters",
"destructuring-assignment",
"destructuring-binding",
"Float32Array",
"Float64Array",
"for-of",
"generators",
"let",
"template",
"Reflect.construct",
"Symbol",
"TypedArray",
"cross-realm",
"Reflect",
"DataView",
"ArrayBuffer",
"Symbol.toStringTag",
"Atomics",
"SharedArrayBuffer",
"Int8Array",
"Symbol.toPrimitive",
"caller",
"Symbol.iterator",
"u180e",
"Proxy",
"Symbol.match",
"regexp-dotall",
"Symbol.matchAll",
"Set",
"WeakSet",
"globalThis",
"Int8Array",
"Int32Array",
"Intl.ListFormat",
"Intl.Locale",
"tail-call-optimization",
"default-parameters",
"Intl.NumberFormat-unified",
"Intl.RelativeTimeFormat",
"Intl.Segmenter",
"IsHTMLDDA",
"json-superset",
"let",
"Map",
"new.target",
"super",
"Symbol.unscopables",
"Symbol.species",
"Symbol.asyncIterator",
"Float32Array",
"Float64Array",
"Uint16Array",
"Uint8Array",
"Uint8ClampedArray",
"computed-property-names",
"well-formed-json-stringify",
"object-spread",
"object-rest",
"optional-catch-binding",
"Object.fromEntries",
"Object.is",
"Reflect.setPrototypeOf",
"object-rest",
"object-spread",
"optional-catch-binding",
"Promise.prototype.finally",
"Proxy",
"Reflect",
"Reflect.construct",
"Reflect.set",
"String.fromCodePoint",
"Reflect.setPrototypeOf",
"regexp-dotall",
"regexp-lookbehind",
"regexp-named-groups",
"regexp-unicode-property-escapes",
"Symbol.hasInstance",
"Symbol.isConcatSpreadable",
"Symbol.replace",
"Symbol.search",
"Symbol.split",
"Array.prototype.values",
"Intl.ListFormat",
"Intl.RelativeTimeFormat",
"Intl.Segmenter",
"destructuring-binding",
"json-superset",
"Map",
"IsHTMLDDA",
"Array.prototype.flat",
"Array.prototype.flatMap",
"DataView.prototype.setUint8",
"DataView.prototype.getFloat32",
"DataView.prototype.getFloat64",
"DataView.prototype.getInt16",
"DataView.prototype.getInt32",
"DataView.prototype.getInt8",
"DataView.prototype.getUint16",
"DataView.prototype.getUint32",
"WeakMap",
"Promise.prototype.finally",
"SharedArrayBuffer",
"Set",
"String.fromCodePoint",
"String.prototype.endsWith",
"String.prototype.includes",
"String.prototype.matchAll",
"string-trimming",
"String.prototype.trimEnd",
"String.prototype.trimStart",
"string-trimming",
"super",
"Symbol",
"Symbol.asyncIterator",
"Symbol.hasInstance",
"Symbol.isConcatSpreadable",
"Symbol.iterator",
"Symbol.match",
"Symbol.matchAll",
"Symbol.prototype.description",
"Symbol.replace",
"Symbol.search",
"Symbol.split",
"Symbol.species",
"Symbol.toPrimitive",
"Symbol.toStringTag",
"Symbol.unscopables",
"tail-call-optimization",
"template",
"TypedArray",
"u180e",
"Uint8Array",
"Uint8ClampedArray",
"Uint16Array",
"WeakMap",
"WeakSet",
"well-formed-json-stringify",
];

const featuresToPlugins = {
Expand Down Expand Up @@ -228,6 +230,7 @@ exports.updateWhitelist = function(filename, summary) {
return line !== null;
})
.concat(toAdd)
.sort()
.join("\n");

return pfs.writeFile(filename, newContents, "utf-8");
Expand Down

0 comments on commit a55382e

Please sign in to comment.