1.Scope 範圍 2.Conformance 一致性
- 詳細內容
- 分類:ECMA-262 第五版
- 發佈:2013-03-20, 週三 22:20
- 點擊數:1633
ECMAScript Language Specification
1 Scope
This Standard defines the ECMAScript scripting language.
ECMAScript 語言規範
1. 範圍
此份標準定義了ECMAScript描述語言。
2 Conformance
A conforming implementation of ECMAScript must provide and support all the types, values, objects, properties, functions, and program syntax and semantics described in this specification.
A conforming implementation of this Standard shall interpret characters in conformance with the Unicode Standard, Version 3.0 or later and ISO/IEC 10646-1 with either UCS-2 or UTF-16 as the adopted encoding form, implementation level 3. If the adopted ISO/IEC 10646-1 subset is not otherwise specified, it is presumed to be the BMP subset, collection 300. If the adopted encoding form is not otherwise specified, it presumed to be the UTF-16 encoding form.
A conforming implementation of ECMAScript is permitted to provide additional types, values, objects, properties, and functions beyond those described in this specification. In particular, a conforming implementation of ECMAScript is permitted to provide properties not described in this specification, and values for those properties, for objects that are described in this specification.
A conforming implementation of ECMAScript is permitted to support program and regular expression syntax not described in this specification. In particular, a conforming implementation of ECMAScript is permitted to support program syntax that makes use of the "future reserved words" listed in 7.6.1.2 of this specification.
2.一致性
一個符合ECMAScript的介面,必須提供並支援在此規範書中所描述的所有類型、值、物件、屬性、函式,和程式語法與語意。
一個符合此份標準的介面,必須要能解釋符合下面的字符集:Unicode標準第三版或其後的版本,以及採用UCS-2或是UTF-16編碼表的通用字符集(ISO/IEC 10646-1)的第三級實現級別。假如沒有額外指定採用的通用字符集(ISO/IEC 10646-1)的子集,將被認定是BMP子集,collection 300。如果採用的編碼表沒有額外指明,將被認定為是UTF-16編碼表。
一個符合ECMAScript的介面,是被允許提供此份規範所描述之外,額外的類型、值、物件、屬性與函式。特別一提,一個符合ECMAScript的介面是被允許為此規範所描述的物件提供不在此規範提到的、額外的屬性和賦予該屬性的值。
一個符合ECMAScript的介面是被允許支援不在此規範中提到的程式及正規表達式語法。特別一提,一個符合ECMAScript的介面是被允許支援利用"未來保留字"的程式語法,這些未來保留字定義在此規範的列表7.6.1.2中。
按個讚!~支持本站!~
FB推薦載入中