没有合适的资源?快使用搜索试试~ 我知道了~
首页Ecma-262 edition 6(ECMAScript® 2015 Language Specification)
Ecma-262 edition 6(ECMAScript® 2015 Language Specification)
4星 · 超过85%的资源 需积分: 9 83 下载量 90 浏览量
更新于2023-03-16
评论
收藏 5.69MB PDF 举报
ECMAScript® 2015 Language Specification(Javascript语言规范 2015);英文;pdf格式
资源详情
资源评论
资源推荐
Reference number
ECMA-123:2009
©
Ecma International 2009
ECMA-262
6
th
Edition / June 2015
ECMAScript
®
2015
Language Specification
© Ecma International 2015
i
COPYRIGHT NOTICE
© 2015 Ecma International
This document may be copied, published and distributed to others, and certain derivative works of it
may be prepared, copied, published, and distributed, in whole or in part, provided that the above
copyright notice and this Copyright License and Disclaimer are included on al l such copies and
derivative works. The only derivative works that are permissible under this Copyright License and
Disclaimer are:
(i) works which incorporate all or portion of this document for the purpose of providing commentary or
explanation (such as an annotated version of the document),
(ii) works which incorporate all or portion of this document for the purpose of incorporating features
that provide accessibility,
(iii) translations of this document into languages other than English and into differ ent formats and
(iv) works by making use of this specification in standard conformant products by implementing (e.g.
by copy and paste wholly or partly) the functionality therein.
However, the content of this document itself may not be modified in any way, including by removing the
copyright notice or references to Ecma International, except as required to translate it into languages
other than English or into a different format.
The official version of an Ecma International document is the English language version on the Ecma
International website. In the event of discrepancies between a translated version and the official
version, the official version shall govern.
The limited permissions granted above are perpetual and will not be revoked by Ecma Internat ional or
its successors or assigns.
This document and the information contained herein is provided on an "AS IS" basis and ECMA
INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE
ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE."
Software License
All Software contained in this document ("Software)" is protected by copyright and is being made available under the "BSD
License", included below. This Software may be subject to third party rights (rights from parties other than Ecma
International), including patent rights, and no licenses under such third party rights are granted under this license even if
the third party concerned is a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT
MATTERS AVAILABLE AT http://www.ecma-international.org/memento/codeofconduct.htm FOR INFORMATION
REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO IMPLEMENT ECMA INTERNATIONAL
STANDARDS*.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the authors nor Ecma International may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ii
© Ecma International 2015
© Ecma International 2015
iii
Contents Page
1 Scope .............................................................................................................................................1
2 Conformance .................................................................................................................................1
3 Normative references ....................................................................................................................1
4 Overview ........................................................................................................................................1
4.1 Web Scripting ................................................................................................................................2
4.2 ECMAScript Overview ...................................................................................................................2
Objects...........................................................................................................................................3 4.2.1
The Strict Variant of ECMAScript .................................................................................................4 4.2.2
4.3 Terms and definitions ...................................................................................................................5
4.4 Organization of This Specification ...............................................................................................8
5 Notational Conventions ................................................................................................................8
5.1 Syntactic and Lexical Grammars ..................................................................................................8
Context-Free Grammars................................................................................................................8 5.1.1
The Lexical and RegExp Grammars .............................................................................................9 5.1.2
The Numeric String Grammar .......................................................................................................9 5.1.3
The Syntactic Grammar ................................................................................................................9 5.1.4
Grammar Notation ....................................................................................................................... 10 5.1.5
5.2 Algorithm Conventions ............................................................................................................... 14
5.3 Static Semantic Rules ................................................................................................................. 16
6 ECMAScript Data Types and Values .......................................................................................... 16
6.1 ECMAScript Language Types ..................................................................................................... 16
The Undefined Type .................................................................................................................... 16 6.1.1
The Null Type............................................................................................................................... 17 6.1.2
The Boolean Type ....................................................................................................................... 17 6.1.3
The String Type ........................................................................................................................... 17 6.1.4
The Symbol Type......................................................................................................................... 17 6.1.5
The Number Type ........................................................................................................................ 18 6.1.6
The Object Type .......................................................................................................................... 19 6.1.7
6.2 ECMAScript Specification Types ................................................................................................ 29
The List and Record Specification Type .................................................................................... 29 6.2.1
The Completion Record Specification Type .............................................................................. 30 6.2.2
The Reference Specification Type .............................................................................................. 31 6.2.3
The Property Descriptor Specification Type .............................................................................. 33 6.2.4
The Lexical Environment and Environment Record Specification Types ................................ 35 6.2.5
Data Blocks ................................................................................................................................. 35 6.2.6
7 Abstract Operations .................................................................................................................... 36
7.1 Type Conversion ......................................................................................................................... 36
ToPrimitive ( input [, PreferredType] ) ........................................................................................ 36 7.1.1
ToBoolean ( argument ) .............................................................................................................. 37 7.1.2
ToNumber ( argument ) ............................................................................................................... 38 7.1.3
ToInteger ( argument ) ................................................................................................................ 40 7.1.4
ToInt32 ( argument ) .................................................................................................................... 40 7.1.5
ToUint32 ( argument ) ................................................................................................................. 41 7.1.6
ToInt16 ( argument ) .................................................................................................................... 41 7.1.7
ToUint16 ( argument ) ................................................................................................................. 41 7.1.8
ToInt8 ( argument ) ...................................................................................................................... 41 7.1.9
ToUint8 ( argument ) ................................................................................................................... 42 7.1.10
ToUint8Clamp ( argument ) ......................................................................................................... 42 7.1.11
ToString ( argument ) .................................................................................................................. 42 7.1.12
剩余565页未读,继续阅读
tuke2010
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- stc12c5a60s2 例程
- Android通过全局变量传递数据
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2