A tested semantics for getters, setters, and eval in JavaScript
A tested semantics for getters, setters, and eval in JavaScript
复制标题
JavaScript 中经过测试的 getter、setter 和 eval 语义
DOI:
10.1145/2384577.2384579
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
S. Krishnamurthi
中科院分区:
文献类型:
--
作者:
J. Politz;Matthew J. Carroll;Benjamin S. Lerner;Justin Pombrio;S. Krishnamurthi
We present S5, a semantics for the strict mode of the ECMAScript 5.1 (JavaScript) programming language. S5 shrinks the large source language into a manageable core through an implemented transformation. The resulting specification has been tested against real-world conformance suites for the language. This paper focuses on two aspects of S5: accessors (getters and setters) and eval. Since these features are complex and subtle in JavaScript, they warrant special study. Variations on both features are found in several other programming languages, so their study is likely to have broad applicability.