| Server IP : 172.67.162.67 / Your IP : 216.73.217.154 Web Server : Apache System : Linux vps42439 6.8.0-136-generic #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 3 16:29:11 UTC x86_64 User : dh_7hi3h9 ( 6349477) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/nodejs/acorn-numeric-separator/ |
Upload File : |
"use strict"
const path = require("path")
const run = require("test262-parser-runner")
const acorn = require("acorn")
const Parser = acorn.Parser.extend(require("."))
const unsupportedFeatures = [
"class-fields-private",
"class-fields-public",
"class-methods-private",
"class-static-fields-private",
"class-static-fields-public",
"class-static-methods-private",
]
run(
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 11}),
{
testsDirectory: path.dirname(require.resolve("test262/package.json")),
skip: test => (!test.attrs.features || !test.attrs.features.includes("numeric-separator-literal") || unsupportedFeatures.some(f => test.attrs.features.includes(f))),
}
)