first commit
This commit is contained in:
21
node_modules/acorn-bigint/run_test262.js
generated
vendored
Normal file
21
node_modules/acorn-bigint/run_test262.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict"
|
||||
|
||||
const path = require("path")
|
||||
const run = require("test262-parser-runner")
|
||||
const acorn = require("acorn")
|
||||
const bigInt = require(".")
|
||||
const Parser = acorn.Parser.extend(bigInt)
|
||||
|
||||
const unsupportedFeatures = [
|
||||
"async-iteration",
|
||||
"class-fields-private",
|
||||
"class-fields-public"
|
||||
]
|
||||
|
||||
run(
|
||||
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 9}),
|
||||
{
|
||||
testsDirectory: path.dirname(require.resolve("test262/package.json")),
|
||||
skip: test => (!test.attrs.features || !test.attrs.features.includes("BigInt") || unsupportedFeatures.some(f => test.attrs.features.includes(f))),
|
||||
}
|
||||
)
|
Reference in New Issue
Block a user