Sha256: cbb27f17d31c0539a106ead95485f9f36feebc54b4528cad082b71c4e084b014

Contents?: true

Size: 645 Bytes

Versions: 55

Compression:

Stored size: 645 Bytes

Contents

const fs = require("fs")
const path = require("path")
const run = require("test262-parser-runner")
const parse = require("..").parse

const unsupportedFeatures = [
  "BigInt",
  "class-fields",
  "class-fields-private",
  "class-fields-public",
  "numeric-separator-literal"
];

run(
  (content, {sourceType}) => parse(content, {sourceType, ecmaVersion: 10}),
  {
    testsDirectory: path.dirname(require.resolve("test262/package.json")),
    skip: test => (test.attrs.features && unsupportedFeatures.some(f => test.attrs.features.includes(f))),
    whitelist: fs.readFileSync("./bin/test262.whitelist", "utf8").split("\n").filter(v => v)
  }
)

Version data entries

55 entries across 53 versions & 5 rubygems

Version Path
govuk_publishing_components-16.23.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.22.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.21.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.20.1 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.20.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.19.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.18.0 node_modules/acorn/bin/run_test262.js
govuk_publishing_components-16.17.0 node_modules/acorn/bin/run_test262.js
optimacms-0.4.3 spec/dummy/node_modules/acorn/bin/run_test262.js
optimacms-0.4.2 spec/dummy/node_modules/acorn/bin/run_test262.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/acorn/bin/run_test262.js
locomotivecms-3.4.0 app/javascript/node_modules/jsdom/node_modules/acorn/bin/run_test262.js
locomotivecms-3.4.0 app/javascript/node_modules/h2x-parse/node_modules/acorn/bin/run_test262.js
locomotivecms-3.4.0 app/javascript/node_modules/acorn/bin/run_test262.js
jass-0.9.3 vendor/node_modules/acorn/bin/run_test262.js