Example: quiz answers

ECMAScript 2018 Language Specification - Ecma …

Reference number ECMA-123:2009 Ecma international 2009 ECMA-262 8th Edition / June 2017 ECMAS cript 2017 Language Specification COPYRIGHT PROTECTED DOCUMENT Ecma international 2017 Ecma international Rue du Rhone 114 CH-1204 Geneva Tel: +41 22 849 6000 Fax: +41 22 849 6001 Web: Ecma international 2017 i COPYRIGHT NOTICE 2017 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.

Reference number ECMA-123:2009 Ecma International 2009. ECMA-262 9th Edition / June 2018 ECMAScript® 2018 Language Specification

Tags:

  International, Ecmascript

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of ECMAScript 2018 Language Specification - Ecma …

1 Reference number ECMA-123:2009 Ecma international 2009 ECMA-262 8th Edition / June 2017 ECMAS cript 2017 Language Specification COPYRIGHT PROTECTED DOCUMENT Ecma international 2017 Ecma international Rue du Rhone 114 CH-1204 Geneva Tel: +41 22 849 6000 Fax: +41 22 849 6001 Web: Ecma international 2017 i COPYRIGHT NOTICE 2017 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.

2 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 ( by copy and paste wholly or partly) the functionality therein.

3 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.

4 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 .

5 SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS AVAILABLE AT 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.

6 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.

7 Ii Ecma international 2017 Introduction1 Scope2 Conformance3 Normative References4 Web ECMAS cript The Strict Variant of Terms and De primitive ordinary exotic standard built in unde ined Unde ined null Null Boolean Boolean Boolean String String String Number Number Number In inityECMAS cript 2017 LanguageSpeci icationTable of Symbol Symbol Symbol built in built in own inherited Organization of This Speci ication5 Notational Syntactic and Lexical Context Free The Lexical and RegExp The Numeric String The Syntactic Grammar Algorithm Static Semantic Rules6 ECMAS cript Data Types and ECMAS cript Language The Unde ined The Null The Boolean The String The Symbol Well Known The Number The Object Property Object Internal Methods and Internal Invariants of the Essential Internal Well Known Intrinsic ECMAS cript Speci ication The List and Record Speci ication The Set and Relation Speci ication The Completion Record Speci ication Implicit Completion Throw an UpdateEmpty ( completionRecord, value ) The Reference Speci ication GetValue ( V )

8 PutValue ( V, W ) GetThisValue ( V ) InitializeReferencedBinding ( V, W ) The Property Descriptor Speci ication IsAccessorDescriptor ( Desc ) IsDataDescriptor ( Desc ) IsGenericDescriptor ( Desc ) FromPropertyDescriptor ( Desc ) ToPropertyDescriptor ( Obj ) CompletePropertyDescriptor ( Desc ) The Lexical Environment and Environment Record Speci ication Data CreateByteDataBlock ( size ) CreateSharedByteDataBlock( size ) CopyDataBlockBytes ( toBlock, toIndex, fromBlock, fromIndex, count )7 Abstract Type ToPrimitive ( input [ , PreferredType ] ) OrdinaryToPrimitive ( O, hint ) ToBoolean ( argument ) ToNumber ( argument ) ToNumber Applied to the String RS.

9 ToInteger ( argument ) ToInt32 ( argument ) ToUint32 ( argument ) ToInt16 ( argument ) ToUint16 ( argument ) ToInt8 ( argument ) ToUint8 ( argument ) ToUint8 Clamp ( argument ) ToString ( argument ) ToString Applied to the Number ToObject ( argument ) ToPropertyKey ( argument ) ToLength ( argument ) CanonicalNumericIndexString ( argument ) ToIndex ( value ) Testing and Comparison RequireObjectCoercible ( argument ) IsArray ( argument ) IsCallable ( argument ) IsConstructor ( argument ) IsExtensible ( O ) IsInteger ( argument ) IsPropertyKey ( argument ) IsRegExp ( argument ) SameValue ( x, y ) SameValueZero ( x, y ) SameValueNonNumber ( x, y ) Abstract Relational Abstract Equality Strict Equality Operations on Get ( O, P ) GetV ( V, P ) Set ( O, P, V, Throw ) CreateDataProperty ( O, P, V ) CreateMethodProperty ( O, P, V ) CreateDataPropertyOrThrow ( O, P, V ) De inePropertyOrThrow ( O, P, desc ) DeletePropertyOrThrow ( O, P ) GetMethod ( V, P ) HasProperty ( O, P ) HasOwnProperty ( O, P ) Call ( F, V [ , argumentsList ] ) Construct ( F [ , argumentsList [ , newTarget ]] ) SetIntegrityLevel ( O, level ) TestIntegrityLevel ( O, level )

10 CreateArrayFromList ( elements ) CreateListFromArrayLike ( obj [ , elementTypes ] ) Invoke ( V, P [ , argumentsList ] ) OrdinaryHasInstance ( C, O ) SpeciesConstructor ( O, defaultConstructor ) EnumerableOwnProperties ( O, kind ) GetFunctionRealm ( obj ) Operations on Iterator GetIterator ( obj [ , method ] ) IteratorNext ( iterator [ , value ] ) IteratorComplete ( iterResult ) IteratorValue ( iterResult ) IteratorStep ( iterator ) IteratorClose ( iterator, completion ) CreateIterResultObject ( value, done ) CreateListIterator ( list ) ListIterator next( )8 Executable Code and Execution Lexical Environment Declarative Environment HasBinding ( N ) CreateMutableBinding ( N, D ) CreateImmutableBinding ( N, S ) InitializeBinding ( N, V ) SetMutableBinding ( N, V, S ) GetBindingValue ( N, S ) DeleteBinding ( N ) HasThisBinding ( ) HasSuperBinding ( ) WithBaseObject ( ) Object Environment HasBinding ( N ) CreateMutableBinding ( N, D ) CreateImmutableBinding ( N, S ) InitializeBinding ( N, V ) SetMutableBinding ( N, V, S ) GetBindingValue ( N, S ) DeleteBinding ( N ) HasThisBinding ( ) HasSuperBinding ( ) WithBaseObject ( )


Related search queries