@gerhobbelt/test262

中文文档
4.0.0-7发布于 2019/07/19BSD零依赖近 30 天下载 4.9万

(Fork/Clone: NPM scoped package for use with esprima/recast) Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals.

原始使用文档
文档目录6 节
  1. Test262: ECMAScript Test Suite ( ECMA TR/104 )
  2. Goals & State of Test262
  3. ECMAScript feature proposals
  4. Contributing to Test262
  5. Running Test262
  6. Test262 Runners & Harnesses

Test262: ECMAScript Test Suite (ECMA TR/104)

Test262 is the implementation conformance test suite for the latest drafts (or most recent published edition) of the following Ecma specifications:

Test262 itself is described in ECMA TR/104 and is included in ECMA-414 (pdf).

Goals & State of Test262

The goal of Test262 is to provide test material that covers every observable behavior specified in the ECMA-414 Standards Suite. Development of Test262 is an on-going process. As of October 2017, Test262 consisted of over 29272 individual test files covering the majority of the pseudo-code algorithms and grammar productions defined in the ECMA-414 Standards Suite. Each of these files contains one or more distinct test cases. This marks the most comprehensive ECMAScript test suite to date. While test coverage is broad, TC39 does not consider coverage to be complete and as with any software project there exists the possibility of omissions and errors. This project welcomes any contributions to Test262 that help make test coverage of existing features more comprehensive.

ECMAScript feature proposals

As defined in the TC39 Process, Stage 4 Entrance Criteria requires tests for new feature proposals to advance. Tests may be written by proposal champions, implementers, or any interested community member.

A proposal champion is someone that worked on the feature proposal and specification directly.

An implementer is someone that works on implementing the proposal into a JavaScript engine, parser, runtime or embedding.

A community member is you, and we welcome you to contribute! If you're having trouble getting started, or even just want to ask a question, feel free to open an issue.

Contributing to Test262

Guidance for contributing to Test262 can be found in CONTRIBUTING.md.

Authors of contributions from non-Ecma member organizations must sign the Test262 CLA

Running Test262

Guidance for running Test262 and explanations of how a test file is interpreted by a test runner is in INTERPRETING

Test262 Runners & Harnesses

Volunteer-maintained projects that may be used to execute Test262 in various ECMAScript hosts:

版本与发布记录

@gerhobbelt/test262 共发布 7 个版本,首次发布于 2018/02/14;过去 12 个月发布了 0 个版本。

版本发布日期距今
4.0.0-7latest2019/07/197 年前
4.0.0-62019/07/197 年前
4.0.0-52019/07/197 年前
3.0.0-42018/05/108 年前
3.0.0-32018/05/108 年前
3.0.0-22018/05/108 年前

关于 @gerhobbelt/test262 的常见问题

@gerhobbelt/test262 是什么?

(Fork/Clone: NPM scoped package for use with esprima/recast) Test262 tests conformance to the continually maintained draft future ECMAScript standard found at http://tc39.github.io/ecma262/ , together with any Stage 3 or later TC39 proposals.

如何安装 @gerhobbelt/test262?

在项目目录运行 npm install @gerhobbelt/test262,或使用 pnpm add / yarn add / bun add。

@gerhobbelt/test262 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/gerhobbelt__test262 是否存在。

@gerhobbelt/test262 可以商用吗?

@gerhobbelt/test262 使用 BSD 许可。声明的许可为 BSD,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@gerhobbelt/test262 的下载量有多少?

根据 npm 官方下载统计,@gerhobbelt/test262 在 2026/10/16 – 2026/11/14 这 30 天内被下载 49,082 次,日均约 1,636 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@gerhobbelt/test262 还在维护吗?

最新版本 4.0.0-7 发布于 2019/07/19(7 年前);至今共发布 7 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/02/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。