# ECMAScript

**ECMAScript** 是一种由 ECMA-262 标准定义的通用编程语言，该标准由 Ecma 国际发布，最为人所知的是作为嵌入网页浏览器的语言；[JavaScript](https://www.edgepedia.org/zh/javascript) 是其最著名的实现。<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[2](https://webcodingcenter.com/ecmascript/introduction--a-brief-history-from-mocha-to-ecmascript-2026.html)</sup> 该规范由 Ecma 的第 39 技术委员会（TC39）制定，自 2015 年起按年度节奏修订，第 17 版 ECMAScript 2026 于 2026 年 6 月 30 日获批。<sup>[3](https://ecma-international.org/publications-and-standards/standards/ecma-262/)</sup><sup> • </sup><sup>[4](https://ecma-international.org/news/ecma-international-approves-new-standards-14/)</sup>

| 要点 | 详情 |
|---|---|
| 标准 | ECMA-262，即 ECMAScript 语言规范，由 Ecma 第 39 技术委员会（TC39）维护<sup>[3](https://ecma-international.org/publications-and-standards/standards/ecma-262/)</sup> |
| 第一版 | 工作于 1996 年 11 月启动；第 1 版于 1997 年 6 月获 Ecma 大会批准，距工作启动仅七个月<sup>[5](https://ecma-international.org/news/ecma-262-the-ecmascript-javascript-the-most-popular-web-scripting-standard-is-celebrating-its-20th-birthday/)</sup> |
| 起源 | 由网景（Netscape）的布兰登·艾奇（Brendan Eich）发明，首次随 Navigator 2.0 发布；微软在 Internet Explorer 3.0（1996 年 8 月）中以 JScript 之名实现了同一语言<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[6](https://www.oreilly.com/library/view/speaking-javascript/9781449365028/ch05.html)</sup> |
| 名称 | 之所以选择“ECMAScript”，是因为更受青睐的候选名称存在商标问题；JavaScript 和 JScript 成为该标准的方言<sup>[5](https://ecma-international.org/news/ecma-262-the-ecmascript-javascript-the-most-popular-web-scripting-standard-is-celebrating-its-20th-birthday/)</sup><sup> • </sup><sup>[7](https://deno.com/blog/history-of-javascript?cmid=913fba9b-eca9-4103-8615-0f67bee24b8c)</sup> |
| 缺失的版本 | “ECMA-262 第 4 版”曾被预留但从未使用；不存在这样的 Ecma 出版物<sup>[3](https://ecma-international.org/publications-and-standards/standards/ecma-262/)</sup> |
| 发布节奏 | 自 ECMAScript 2015（第 6 版）起，每年 6 月发布一版，遵循 TC39 的开放开发流程<sup>[8](https://dev.ecma-international.org/wp-content/uploads/ECMA-262_13th_edition_june_2022.pdf)</sup> |
| 当前版本 | 第 17 版，ECMAScript 2026，2026 年 6 月 30 日获批<sup>[4](https://ecma-international.org/news/ecma-international-approves-new-standards-14/)</sup> |
| 一致性测试 | 官方测试套件 Test262，截至 2025 年 5 月拥有超过 50,000 个独立测试文件<sup>[9](https://github.com/tc39/test262)</sup> |

## 起源与命名

该语言由网景的布兰登·艾奇创造，首次出现在该公司的 [Navigator](https://www.edgepedia.org/zh/navigator) 2.0 浏览器中；微软于 1996 年 8 月在 [Internet Explorer](https://www.edgepedia.org/zh/internet-explorer) 3.0 中以 JScript 之名实现了同一语言。<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[6](https://www.oreilly.com/library/view/speaking-javascript/9781449365028/ch05.html)</sup> 1996 年 11 月，网景将该语言提交给 Ecma 国际进行标准化，TC39 随之成立，成员包括来自网景、微软、太阳微系统（Sun Microsystems）及其他公司的代表。<sup>[2](https://webcodingcenter.com/ecmascript/introduction--a-brief-history-from-mocha-to-ecmascript-2026.html)</sup><sup> • </sup><sup>[7](https://deno.com/blog/history-of-javascript?cmid=913fba9b-eca9-4103-8615-0f67bee24b8c)</sup>

第一版完成得很快：工作于 1996 年 11 月启动，Ecma 大会于 1997 年 6 月批准了该标准，部分编辑事项和最终名称的决定留待 1997 年 9 月。<sup>[5](https://ecma-international.org/news/ecma-262-the-ecmascript-javascript-the-most-popular-web-scripting-standard-is-celebrating-its-20th-birthday/)</sup> 在尼斯举行的 TC39 第五次会议上，决定推荐“ECMAScript”这一名称；该名称并非首选，因为其他更受青睐的候选名称存在商标问题，这也是为何 ECMAScript 和 JavaScript 两个名称至今仍并用于实际上同一个标准。<sup>[10](https://www.ecma-international.org/wp-content/uploads/97-040.pdf)</sup><sup> • </sup><sup>[5](https://ecma-international.org/news/ecma-262-the-ecmascript-javascript-the-most-popular-web-scripting-standard-is-celebrating-its-20th-birthday/)</sup>

## 早期版本

第一版按快速通道程序提交给 [ISO/IEC JTC 1](https://www.edgepedia.org/zh/iso-iec-jtc-1)，于 1998 年 4 月获批为国际标准 ISO/IEC 16262。第二版由 1998 年 6 月的 Ecma 大会通过，使 ECMA-262 与 ISO/IEC 16262 完全保持一致；相较第一版的变化属于编辑性质。<sup>[1](https://tc39.es/ecma262/2024/)</sup>

第三版于 1999 年 12 月通过，并于 2002 年 6 月作为 ISO/IEC 16262:2002 发布，新增了正则表达式、更好的字符串处理、新的控制语句、try/catch 异常处理、更严格的错误定义以及数值输出格式化；当时网景的一份记述还将嵌套函数与闭包、数组和对象字面量，以及 switch 和 do-while 语句列入其新增特性。<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[11](https://www-archive.mozilla.org/js/language/evolvingJS.pdf)</sup> 第三版之后，ECMAScript 通过[万维网](https://www.edgepedia.org/zh/world-wide-web)获得了大规模采用，成为几乎所有网页浏览器都支持的编程语言。<sup>[1](https://tc39.es/ecma262/2024/)</sup>

**被放弃的第四版。** 第四版的制定投入了大量工作，但从未完成或发布；其中部分工作后来被纳入第六版。Ecma 确认标准编号“ECMA-262 第 4 版”曾被预留但未使用，因此不存在这样的出版物。<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[3](https://ecma-international.org/publications-and-standards/standards/ecma-262/)</sup>

第五版于 2009 年 12 月通过，将浏览器广泛但非正式实现的实践转化为正式规范，并引入了访问器属性、以反射方式创建和检查对象的能力、对属性特性的程序化控制、用于操作数组的额外函数、JSON 数据格式的处理，以及提供更强错误检查和改进程序安全性的严格模式等特性。第 5.1 版于 2011 年 6 月通过，纳入了少量更正，与 ISO/IEC 16262:2011 为同一文本。<sup>[1](https://tc39.es/ecma262/2024/)</sup>

## 年度版本与 TC39 流程

ECMAScript 2016 是 TC39 新的年度发布节奏和开放开发流程下发布的第一个版本；此后每年 6 月都会发布一个新版本，从第 6 版（2015 年 6 月）到第 16 版（2025 年 6 月）。<sup>[8](https://dev.ecma-international.org/wp-content/uploads/ECMA-262_13th_edition_june_2022.pdf)</sup><sup> • </sup><sup>[3](https://ecma-international.org/publications-and-standards/standards/ecma-262/)</sup> 语言变更通过 TC39 提案流程引入，提案在其中逐阶段推进（第 0 阶段至第 4 阶段）并公开跟踪；达到第 4 阶段的提案已在多个实现中落地，并将进入规范的下一个实际修订版。<sup>[12](https://github.com/tc39/proposals)</sup><sup> • </sup><sup>[1](https://tc39.es/ecma262/2024/)</sup> 规范本身在 GitHub 上开发，当前草案位于 tc39.es/ecma262，缺陷提交至 tc39/ecma262 仓库。<sup>[13](https://github.com/tc39/ecma262/blob/main/README.md)</sup>

近期的版本体现了这一节奏的覆盖范围。ECMAScript 2017 引入了异步函数、共享内存和原子操作，以及较小的语言和库增强。<sup>[8](https://dev.ecma-international.org/wp-content/uploads/ECMA-262_13th_edition_june_2022.pdf)</sup> 第 17 版 ECMAScript 2026 于 2026 年 6 月 30 日在日内瓦由第 131 届 Ecma 大会批准，同时获批的还有 ECMA-402（ECMAScript 国际化 API）第 13 版及相关标准。<sup>[4](https://ecma-international.org/news/ecma-international-approves-new-standards-14/)</sup>

## 实现与一致性测试

一致性通过 Test262 检验，这是官方的 ECMAScript 一致性测试套件（在 ECMA TR/104 中描述），覆盖 ECMA-262、ECMA-402 和 ECMA-404（JSON）。截至 2025 年 5 月，它由超过 50,000 个独立测试文件组成，覆盖 ECMA-414 标准套件中大部分伪代码算法和文法产生式，而提案进入第 4 阶段需要为新特性提供测试。<sup>[9](https://github.com/tc39/test262)</sup> Test262 于 2010 年夏开始大力推进，得到了谷歌（其针对第 3 版的 Sputnik 套件）和微软（其针对第 5.1 版的 Internet Explorer 测试中心套件）的贡献，并且刻意保持实现无关，以便任何引擎、解析器或运行时都能使用。<sup>[14](https://www.ecma-international.org/wp-content/uploads/ECMA_TR-104_2nd_edition_december_2016.pdf)</sup><sup> • </sup><sup>[15](https://github.com/tc39/test262/wiki/Test262-Technical-Rationale-Report%2C-October-2017)</sup>

除浏览器外，该语言还用于服务器和嵌入式应用；Node.js 通过 .mjs 文件扩展名、package.json 的“type”字段或 --input-type 标志将 JavaScript 代码视为 ECMAScript 模块，并在其原有的 CommonJS 格式之外全面支持 ES 模块。<sup>[1](https://tc39.es/ecma262/2024/)</sup><sup> • </sup><sup>[16](https://nodejs.org/download/release/v16.13.0/docs/api/esm.html)</sup>

## 标准的覆盖范围

ECMA-262 定义语言本身的语法和语义；相关的 Ecma 规范覆盖相邻领域。ECMA-402 定义 ECMAScript 国际化 API，ECMA-404 定义 JSON 数据交换格式，ECMA-419 定义 ECMAScript 嵌入式系统 API 规范，均在 TC39 的职责范围内维护。<sup>[4](https://ecma-international.org/news/ecma-international-approves-new-standards-14/)</sup><sup> • </sup><sup>[9](https://github.com/tc39/test262)</sup> 规范文档以自然语言伪代码算法和文法产生式写成，Test262 套件正是据此进行测试。<sup>[9](https://github.com/tc39/test262)</sup>

## References

1. [ECMAScript® 2024 Language Specification, Introduction (tc39.es)](https://tc39.es/ecma262/2024/)
2. [A Brief History: from Mocha to ECMAScript 2026, Web Coding Center](https://webcodingcenter.com/ecmascript/introduction--a-brief-history-from-mocha-to-ecmascript-2026.html)
3. [ECMA-262, Ecma International](https://ecma-international.org/publications-and-standards/standards/ecma-262/)
4. [Ecma International approves new standards, 1 July 2026](https://ecma-international.org/news/ecma-international-approves-new-standards-14/)
5. [ECMA-262: The ECMAScript (JavaScript) – the most popular web scripting standard – is celebrating its 20th birthday, Ecma International, 2017](https://ecma-international.org/news/ecma-262-the-ecmascript-javascript-the-most-popular-web-scripting-standard-is-celebrating-its-20th-birthday/)
6. [Standardization: ECMAScript, Speaking JavaScript (O'Reilly)](https://www.oreilly.com/library/view/speaking-javascript/9781449365028/ch05.html)
7. [A brief history of JavaScript, Deno](https://deno.com/blog/history-of-javascript?cmid=913fba9b-eca9-4103-8615-0f67bee24b8c)
8. [ECMA-262, 13th edition, June 2022 (PDF)](https://dev.ecma-international.org/wp-content/uploads/ECMA-262_13th_edition_june_2022.pdf)
9. [Test262: ECMAScript Test Suite (ECMA TR/104), tc39/test262](https://github.com/tc39/test262)
10. [ECMA/TC39/97/40, Chairman's report, fifth TC39 meeting, Nice (PDF)](https://www.ecma-international.org/wp-content/uploads/97-040.pdf)
11. [Evolving JavaScript (Waldemar Horwat / mozilla.org archive, PDF)](https://www-archive.mozilla.org/js/language/evolvingJS.pdf)
12. [tc39/proposals: Tracking ECMAScript Proposals, GitHub](https://github.com/tc39/proposals)
13. [tc39/ecma262 README, GitHub](https://github.com/tc39/ecma262/blob/main/README.md)
14. [ECMA TR/104, ECMAScript® Test Suite, 2nd edition, December 2016 (PDF)](https://www.ecma-international.org/wp-content/uploads/ECMA_TR-104_2nd_edition_december_2016.pdf)
15. [Test262 Technical Rationale Report, October 2017, tc39/test262 wiki](https://github.com/tc39/test262/wiki/Test262-Technical-Rationale-Report%2C-October-2017)
16. [Modules: ECMAScript modules, Node.js v16.13.0 documentation](https://nodejs.org/download/release/v16.13.0/docs/api/esm.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Programming languages › Individual programming languages › C-family and imperative languages

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ecmascript

English original: https://www.edgepedia.org/ecmascript
