Sha256: 590ccdf8083144dab727082e26fdb33992d2a5769a9a3da81ea6c42bb8250655

Contents?: true

Size: 672 Bytes

Versions: 3

Compression:

Stored size: 672 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",
  "optional-catch-binding"
];

run(
  (content, {sourceType}) => parse(content, {sourceType, ecmaVersion: 9}),
  {
    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

3 entries across 3 versions & 3 rubygems

Version Path
condenser-0.0.4 lib/condenser/processors/node_modules/acorn/bin/run_test262.js
dragonfly_puppeteer-0.1.0 node_modules/acorn/bin/run_test262.js
jass-0.9.1 vendor/node_modules/acorn/bin/run_test262.js