文件操作 - run_test262.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/acorn-bigint/run_test262.js
编辑文件内容
"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))), } )
修改文件时间
将文件时间修改为当前时间的前一年
删除文件