ECMA-262 (12th Edition) ECMAScript 2021 Language Specification - page 4

 

  Главная      Manuals     ECMA-262 (12th Edition) ECMAScript 2021 Language Specification

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     2      3      4      5     ..

 

 

 

ECMA-262 (12th Edition) ECMAScript 2021 Language Specification - page 4

 

 

21.3.2.19 Math.imul ( 

x

y

 )

21.3.2.20 Math.log ( 

x

 )

21.3.2.21 Math.log1p ( 

x

 )

21.3.2.22 Math.log10 ( 

x

 )

21.3.2.23 Math.log2 ( 

x

 )

21.3.2.24 Math.max ( ...

args

 )

21.3.2.25 Math.min ( ...

args

 )

21.3.2.26 Math.pow ( 

base

exponent

 )

21.3.2.27 Math.random ( )
21.3.2.28 Math.round ( 

x

 )

21.3.2.29 Math.sign ( 

x

 )

21.3.2.30 Math.sin ( 

x

 )

21.3.2.31 Math.sinh ( 

x

 )

21.3.2.32 Math.sqrt ( 

x

 )

21.3.2.33 Math.tan ( 

x

 )

21.3.2.34 Math.tanh ( 

x

 )

21.3.2.35 Math.trunc ( 

x

 )

21.4 Date Objects

21.4.1 Overview of Date Objects and Definitions of Abstract Operations

21.4.1.1 Time Values and Time Range
21.4.1.2 Day Number and Time within Day
21.4.1.3 Year Number
21.4.1.4 Month Number
21.4.1.5 Date Number
21.4.1.6 Week Day
21.4.1.7 LocalTZA ( 

t

isUTC

 )

21.4.1.8 LocalTime ( 

t

 )

21.4.1.9 UTC ( 

t

 )

21.4.1.10 Hours, Minutes, Second, and Milliseconds
21.4.1.11 MakeTime ( 

hour

min

sec

ms

 )

21.4.1.12 MakeDay ( 

year

month

date

 )

21.4.1.13 MakeDate ( 

day

time

 )

21.4.1.14 TimeClip ( 

time

 )

21.4.1.15 Date Time String Format

21.4.1.15.1 Expanded Years

21.4.2 The Date Constructor

21.4.2.1 Date ( ...

values

 )

21.4.3 Properties of the Date Constructor

21.4.3.1 Date.now ( )
21.4.3.2 Date.parse ( 

string

 )

21.4.3.3 Date.prototype
21.4.3.4 Date.UTC ( 

year

 [ , 

month

 [ , 

date

 [ , 

hours

 [ , 

minutes

 [ , 

seconds

 [ , 

ms

 ] ] ] ] ] ] )

21.4.4 Properties of the Date Prototype Object

21.4.4.1 Date.prototype.constructor
21.4.4.2 Date.prototype.getDate ( )
21.4.4.3 Date.prototype.getDay ( )
21.4.4.4 Date.prototype.getFullYear ( )
21.4.4.5 Date.prototype.getHours ( )

26

21.4.4.6 Date.prototype.getMilliseconds ( )
21.4.4.7 Date.prototype.getMinutes ( )
21.4.4.8 Date.prototype.getMonth ( )
21.4.4.9 Date.prototype.getSeconds ( )
21.4.4.10 Date.prototype.getTime ( )
21.4.4.11 Date.prototype.getTimezoneOffset ( )
21.4.4.12 Date.prototype.getUTCDate ( )
21.4.4.13 Date.prototype.getUTCDay ( )
21.4.4.14 Date.prototype.getUTCFullYear ( )
21.4.4.15 Date.prototype.getUTCHours ( )
21.4.4.16 Date.prototype.getUTCMilliseconds ( )
21.4.4.17 Date.prototype.getUTCMinutes ( )
21.4.4.18 Date.prototype.getUTCMonth ( )
21.4.4.19 Date.prototype.getUTCSeconds ( )
21.4.4.20 Date.prototype.setDate ( 

date

 )

21.4.4.21 Date.prototype.setFullYear ( 

year

 [ , 

month

 [ , 

date

 ] ] )

21.4.4.22 Date.prototype.setHours ( 

hour

 [ , 

min

 [ , 

sec

 [ , 

ms

 ] ] ] )

21.4.4.23 Date.prototype.setMilliseconds ( 

ms

 )

21.4.4.24 Date.prototype.setMinutes ( 

min

 [ , 

sec

 [ , 

ms

 ] ] )

21.4.4.25 Date.prototype.setMonth ( 

month

 [ , 

date

 ] )

21.4.4.26 Date.prototype.setSeconds ( 

sec

 [ , 

ms

 ] )

21.4.4.27 Date.prototype.setTime ( 

time

 )

21.4.4.28 Date.prototype.setUTCDate ( 

date

 )

21.4.4.29 Date.prototype.setUTCFullYear ( 

year

 [ , 

month

 [ , 

date

 ] ] )

21.4.4.30 Date.prototype.setUTCHours ( 

hour

 [ , 

min

 [ , 

sec

 [ , 

ms

 ] ] ] )

21.4.4.31 Date.prototype.setUTCMilliseconds ( 

ms

 )

21.4.4.32 Date.prototype.setUTCMinutes ( 

min

 [ , 

sec

 [ , 

ms

 ] ] )

21.4.4.33 Date.prototype.setUTCMonth ( 

month

 [ , 

date

 ] )

21.4.4.34 Date.prototype.setUTCSeconds ( 

sec

 [ , 

ms

 ] )

21.4.4.35 Date.prototype.toDateString ( )
21.4.4.36 Date.prototype.toISOString ( )
21.4.4.37 Date.prototype.toJSON ( 

key

 )

21.4.4.38 Date.prototype.toLocaleDateString ( [ 

reserved1

 [ , 

reserved2

 ] ] )

21.4.4.39 Date.prototype.toLocaleString ( [ 

reserved1

 [ , 

reserved2

 ] ] )

21.4.4.40 Date.prototype.toLocaleTimeString ( [ 

reserved1

 [ , 

reserved2

 ] ] )

21.4.4.41 Date.prototype.toString ( )

21.4.4.41.1 TimeString ( 

tv

 )

21.4.4.41.2 DateString ( 

tv

 )

21.4.4.41.3 TimeZoneString ( 

tv

 )

21.4.4.41.4 ToDateString ( 

tv

 )

21.4.4.42 Date.prototype.toTimeString ( )
21.4.4.43 Date.prototype.toUTCString ( )
21.4.4.44 Date.prototype.valueOf ( )
21.4.4.45 Date.prototype [ @@toPrimitive ] ( 

hint

 )

21.4.5 Properties of Date Instances

22 Text Processing

22.1 String Objects

22.1.1 The String Constructor

27

22.1.1.1 String ( 

value

 )

22.1.2 Properties of the String Constructor

22.1.2.1 String.fromCharCode ( ...

codeUnits

 )

22.1.2.2 String.fromCodePoint ( ...

codePoints

 )

22.1.2.3 String.prototype
22.1.2.4 String.raw ( 

template

, ...

substitutions

 )

22.1.3 Properties of the String Prototype Object

22.1.3.1 String.prototype.charAt ( 

pos

 )

22.1.3.2 String.prototype.charCodeAt ( 

pos

 )

22.1.3.3 String.prototype.codePointAt ( 

pos

 )

22.1.3.4 String.prototype.concat ( ...

args

 )

22.1.3.5 String.prototype.constructor
22.1.3.6 String.prototype.endsWith ( 

searchString

 [ , 

endPosition

 ] )

22.1.3.7 String.prototype.includes ( 

searchString

 [ , 

position

 ] )

22.1.3.8 String.prototype.indexOf ( 

searchString

 [ , 

position

 ] )

22.1.3.9 String.prototype.lastIndexOf ( 

searchString

 [ , 

position

 ] )

22.1.3.10 String.prototype.localeCompare ( 

that

 [ , 

reserved1

 [ , 

reserved2

 ] ] )

22.1.3.11 String.prototype.match ( 

regexp

 )

22.1.3.12 String.prototype.matchAll ( 

regexp

 )

22.1.3.13 String.prototype.normalize ( [ 

form

 ] )

22.1.3.14 String.prototype.padEnd ( 

maxLength

 [ , 

fillString

 ] )

22.1.3.15 String.prototype.padStart ( 

maxLength

 [ , 

fillString

 ] )

22.1.3.15.1 StringPad ( 

O

maxLength

fillString

placement

 )

22.1.3.16 String.prototype.repeat ( 

count

 )

22.1.3.17 String.prototype.replace ( 

searchValue

replaceValue

 )

22.1.3.17.1 GetSubstitution ( 

matched

str

position

captures

namedCaptures

replacement

 )

22.1.3.18 String.prototype.replaceAll ( 

searchValue

replaceValue

 )

22.1.3.19 String.prototype.search ( 

regexp

 )

22.1.3.20 String.prototype.slice ( 

start

end

 )

22.1.3.21 String.prototype.split ( 

separator

limit

 )

22.1.3.21.1 SplitMatch ( 

S

q

R

 )

22.1.3.22 String.prototype.startsWith ( 

searchString

 [ , 

position

 ] )

22.1.3.23 String.prototype.substring ( 

start

end

 )

22.1.3.24 String.prototype.toLocaleLowerCase ( [ 

reserved1

 [ , 

reserved2

 ] ] )

22.1.3.25 String.prototype.toLocaleUpperCase ( [ 

reserved1

 [ , 

reserved2

 ] ] )

22.1.3.26 String.prototype.toLowerCase ( )
22.1.3.27 String.prototype.toString ( )
22.1.3.28 String.prototype.toUpperCase ( )
22.1.3.29 String.prototype.trim ( )

22.1.3.29.1 TrimString ( 

string

where

 )

22.1.3.30 String.prototype.trimEnd ( )
22.1.3.31 String.prototype.trimStart ( )
22.1.3.32 String.prototype.valueOf ( )
22.1.3.33 String.prototype [ @@iterator ] ( )

22.1.4 Properties of String Instances

22.1.4.1 length

22.1.5 String Iterator Objects

22.1.5.1 The %StringIteratorPrototype% Object

28

22.1.5.1.1 %StringIteratorPrototype%.next ( )
22.1.5.1.2 %StringIteratorPrototype% [ @@toStringTag ]

22.2 RegExp (Regular Expression) Objects

22.2.1 Patterns

22.2.1.1 SS: Early Errors
22.2.1.2 SS: CapturingGroupNumber
22.2.1.3 SS: IsCharacterClass
22.2.1.4 SS: CharacterValue
22.2.1.5 SS: SourceText
22.2.1.6 SS: CapturingGroupName

22.2.2 Pattern Semantics

22.2.2.1 Notation
22.2.2.2 Pattern
22.2.2.3 Disjunction
22.2.2.4 Alternative
22.2.2.5 Term

22.2.2.5.1 RepeatMatcher ( 

m

min

max

greedy

x

c

parenIndex

parenCount

 )

22.2.2.6 Assertion

22.2.2.6.1 IsWordChar ( 

e

 )

22.2.2.7 Quantifier
22.2.2.8 Atom

22.2.2.8.1 CharacterSetMatcher ( 

A

invert

direction

 )

22.2.2.8.2 Canonicalize ( 

ch

 )

22.2.2.8.3 UnicodeMatchProperty ( 

p

 )

22.2.2.8.4 UnicodeMatchPropertyValue ( 

p

v

 )

22.2.2.9 AtomEscape

22.2.2.9.1 BackreferenceMatcher ( 

n

direction

 )

22.2.2.10 CharacterEscape
22.2.2.11 DecimalEscape
22.2.2.12 CharacterClassEscape
22.2.2.13 CharacterClass
22.2.2.14 ClassRanges
22.2.2.15 NonemptyClassRanges

22.2.2.15.1 CharacterRange ( 

A

B

 )

22.2.2.16 NonemptyClassRangesNoDash
22.2.2.17 ClassAtom
22.2.2.18 ClassAtomNoDash
22.2.2.19 ClassEscape

22.2.3 The RegExp Constructor

22.2.3.1 RegExp ( 

pattern

flags

 )

22.2.3.2 Abstract Operations for the RegExp Constructor

22.2.3.2.1 RegExpAlloc ( 

newTarget

 )

22.2.3.2.2 RegExpInitialize ( 

obj

pattern

flags

 )

22.2.3.2.3 SS: ParsePattern ( 

patternText

u

 )

22.2.3.2.4 RegExpCreate ( 

P

F

 )

22.2.3.2.5 EscapeRegExpPattern ( 

P

F

 )

22.2.4 Properties of the RegExp Constructor

22.2.4.1 RegExp.prototype

29

22.2.4.2 get RegExp [ @@species ]

22.2.5 Properties of the RegExp Prototype Object

22.2.5.1 RegExp.prototype.constructor
22.2.5.2 RegExp.prototype.exec ( 

string

 )

22.2.5.2.1 RegExpExec ( 

R

S

 )

22.2.5.2.2 RegExpBuiltinExec ( 

R

S

 )

22.2.5.2.3 AdvanceStringIndex ( 

S

index

unicode

 )

22.2.5.3 get RegExp.prototype.dotAll
22.2.5.4 get RegExp.prototype.flags
22.2.5.5 get RegExp.prototype.global
22.2.5.6 get RegExp.prototype.ignoreCase
22.2.5.7 RegExp.prototype [ @@match ] ( 

string

 )

22.2.5.8 RegExp.prototype [ @@matchAll ] ( 

string

 )

22.2.5.9 get RegExp.prototype.multiline
22.2.5.10 RegExp.prototype [ @@replace ] ( 

string

replaceValue

 )

22.2.5.11 RegExp.prototype [ @@search ] ( 

string

 )

22.2.5.12 get RegExp.prototype.source
22.2.5.13 RegExp.prototype [ @@split ] ( 

string

limit

 )

22.2.5.14 get RegExp.prototype.sticky
22.2.5.15 RegExp.prototype.test ( 

S

 )

22.2.5.16 RegExp.prototype.toString ( )
22.2.5.17 get RegExp.prototype.unicode

22.2.6 Properties of RegExp Instances

22.2.6.1 lastIndex

22.2.7 RegExp String Iterator Objects

22.2.7.1 CreateRegExpStringIterator ( 

R

S

global

fullUnicode

 )

22.2.7.2 The %RegExpStringIteratorPrototype% Object

22.2.7.2.1 %RegExpStringIteratorPrototype%.next ( )
22.2.7.2.2 %RegExpStringIteratorPrototype% [ @@toStringTag ]

23 Indexed Collections

23.1 Array Objects

23.1.1 The Array Constructor

23.1.1.1 Array ( ...

values

 )

23.1.2 Properties of the Array Constructor

23.1.2.1 Array.from ( 

items

 [ , 

mapfn

 [ , 

thisArg

 ] ] )

23.1.2.2 Array.isArray ( 

arg

 )

23.1.2.3 Array.of ( ...

items

 )

23.1.2.4 Array.prototype
23.1.2.5 get Array [ @@species ]

23.1.3 Properties of the Array Prototype Object

23.1.3.1 Array.prototype.concat ( ...

items

 )

23.1.3.1.1 IsConcatSpreadable ( 

O

 )

23.1.3.2 Array.prototype.constructor
23.1.3.3 Array.prototype.copyWithin ( 

target

start

 [ , 

end

 ] )

23.1.3.4 Array.prototype.entries ( )
23.1.3.5 Array.prototype.every ( 

callbackfn

 [ , 

thisArg

 ] )

23.1.3.6 Array.prototype.fill ( 

value

 [ , 

start

 [ , 

end

 ] ] )

23.1.3.7 Array.prototype.filter ( 

callbackfn

 [ , 

thisArg

 ] )

30

23.1.3.8 Array.prototype.find ( 

predicate

 [ , 

thisArg

 ] )

23.1.3.9 Array.prototype.findIndex ( 

predicate

 [ , 

thisArg

 ] )

23.1.3.10 Array.prototype.flat ( [ 

depth

 ] )

23.1.3.10.1 FlattenIntoArray ( 

target

source

sourceLen

start

depth

 [ , 

mapperFunction

thisArg

 ] )

23.1.3.11 Array.prototype.flatMap ( 

mapperFunction

 [ , 

thisArg

 ] )

23.1.3.12 Array.prototype.forEach ( 

callbackfn

 [ , 

thisArg

 ] )

23.1.3.13 Array.prototype.includes ( 

searchElement

 [ , 

fromIndex

 ] )

23.1.3.14 Array.prototype.indexOf ( 

searchElement

 [ , 

fromIndex

 ] )

23.1.3.15 Array.prototype.join ( 

separator

 )

23.1.3.16 Array.prototype.keys ( )
23.1.3.17 Array.prototype.lastIndexOf ( 

searchElement

 [ , 

fromIndex

 ] )

23.1.3.18 Array.prototype.map ( 

callbackfn

 [ , 

thisArg

 ] )

23.1.3.19 Array.prototype.pop ( )
23.1.3.20 Array.prototype.push ( ...

items

 )

23.1.3.21 Array.prototype.reduce ( 

callbackfn

 [ , 

initialValue

 ] )

23.1.3.22 Array.prototype.reduceRight ( 

callbackfn

 [ , 

initialValue

 ] )

23.1.3.23 Array.prototype.reverse ( )
23.1.3.24 Array.prototype.shift ( )
23.1.3.25 Array.prototype.slice ( 

start

end

 )

23.1.3.26 Array.prototype.some ( 

callbackfn

 [ , 

thisArg

 ] )

23.1.3.27 Array.prototype.sort ( 

comparefn

 )

23.1.3.27.1 SortCompare ( 

x

y

 )

23.1.3.28 Array.prototype.splice ( 

start

deleteCount

, ...

items

 )

23.1.3.29 Array.prototype.toLocaleString ( [ 

reserved1

 [ , 

reserved2

 ] ] )

23.1.3.30 Array.prototype.toString ( )
23.1.3.31 Array.prototype.unshift ( ...

items

 )

23.1.3.32 Array.prototype.values ( )
23.1.3.33 Array.prototype [ @@iterator ] ( )
23.1.3.34 Array.prototype [ @@unscopables ]

23.1.4 Properties of Array Instances

23.1.4.1 length

23.1.5 Array Iterator Objects

23.1.5.1 CreateArrayIterator ( 

array

kind

 )

23.1.5.2 The %ArrayIteratorPrototype% Object

23.1.5.2.1 %ArrayIteratorPrototype%.next ( )
23.1.5.2.2 %ArrayIteratorPrototype% [ @@toStringTag ]

23.2 TypedArray Objects

23.2.1 The %TypedArray% Intrinsic Object

23.2.1.1 %TypedArray% ( )

23.2.2 Properties of the %TypedArray% Intrinsic Object

23.2.2.1 %TypedArray%.from ( 

source

 [ , 

mapfn

 [ , 

thisArg

 ] ] )

23.2.2.2 %TypedArray%.of ( ...

items

 )

23.2.2.3 %TypedArray%.prototype
23.2.2.4 get %TypedArray% [ @@species ]

23.2.3 Properties of the %TypedArray% Prototype Object

23.2.3.1 get %TypedArray%.prototype.buffer
23.2.3.2 get %TypedArray%.prototype.byteLength
23.2.3.3 get %TypedArray%.prototype.byteOffset

31

23.2.3.4 %TypedArray%.prototype.constructor
23.2.3.5 %TypedArray%.prototype.copyWithin ( 

target

start

 [ , 

end

 ] )

23.2.3.6 %TypedArray%.prototype.entries ( )
23.2.3.7 %TypedArray%.prototype.every ( 

callbackfn

 [ , 

thisArg

 ] )

23.2.3.8 %TypedArray%.prototype.fill ( 

value

 [ , 

start

 [ , 

end

 ] ] )

23.2.3.9 %TypedArray%.prototype.filter ( 

callbackfn

 [ , 

thisArg

 ] )

23.2.3.10 %TypedArray%.prototype.find ( 

predicate

 [ , 

thisArg

 ] )

23.2.3.11 %TypedArray%.prototype.findIndex ( 

predicate

 [ , 

thisArg

 ] )

23.2.3.12 %TypedArray%.prototype.forEach ( 

callbackfn

 [ , 

thisArg

 ] )

23.2.3.13 %TypedArray%.prototype.includes ( 

searchElement

 [ , 

fromIndex

 ] )

23.2.3.14 %TypedArray%.prototype.indexOf ( 

searchElement

 [ , 

fromIndex

 ] )

23.2.3.15 %TypedArray%.prototype.join ( 

separator

 )

23.2.3.16 %TypedArray%.prototype.keys ( )
23.2.3.17 %TypedArray%.prototype.lastIndexOf ( 

searchElement

 [ , 

fromIndex

 ] )

23.2.3.18 get %TypedArray%.prototype.length
23.2.3.19 %TypedArray%.prototype.map ( 

callbackfn

 [ , 

thisArg

 ] )

23.2.3.20 %TypedArray%.prototype.reduce ( 

callbackfn

 [ , 

initialValue

 ] )

23.2.3.21 %TypedArray%.prototype.reduceRight ( 

callbackfn

 [ , 

initialValue

 ] )

23.2.3.22 %TypedArray%.prototype.reverse ( )
23.2.3.23 %TypedArray%.prototype.set ( 

source

 [ , 

offset

 ] )

23.2.3.23.1 SetTypedArrayFromTypedArray ( 

target

targetOffset

source

 )

23.2.3.23.2 SetTypedArrayFromArrayLike ( 

target

targetOffset

source

 )

23.2.3.24 %TypedArray%.prototype.slice ( 

start

end

 )

23.2.3.25 %TypedArray%.prototype.some ( 

callbackfn

 [ , 

thisArg

 ] )

23.2.3.26 %TypedArray%.prototype.sort ( 

comparefn

 )

23.2.3.27 %TypedArray%.prototype.subarray ( 

begin

end

 )

23.2.3.28 %TypedArray%.prototype.toLocaleString ( [ 

reserved1

 [ , 

reserved2

 ] ] )

23.2.3.29 %TypedArray%.prototype.toString ( )
23.2.3.30 %TypedArray%.prototype.values ( )
23.2.3.31 %TypedArray%.prototype [ @@iterator ] ( )
23.2.3.32 get %TypedArray%.prototype [ @@toStringTag ]

23.2.4 Abstract Operations for TypedArray Objects

23.2.4.1 TypedArraySpeciesCreate ( 

exemplar

argumentList

 )

23.2.4.2 TypedArrayCreate ( 

constructor

argumentList

 )

23.2.4.3 ValidateTypedArray ( 

O

 )

23.2.5 The 

TypedArray

 Constructors

23.2.5.1 

TypedArray

 ( ...

args

 )

23.2.5.1.1 AllocateTypedArray ( 

constructorName

newTarget

defaultProto

 [ , 

length

 ] )

23.2.5.1.2 InitializeTypedArrayFromTypedArray ( 

O

srcArray

 )

23.2.5.1.3 InitializeTypedArrayFromArrayBuffer ( 

O

buffer

byteOffset

length

 )

23.2.5.1.4 InitializeTypedArrayFromList ( 

O

values

 )

23.2.5.1.5 InitializeTypedArrayFromArrayLike ( 

O

arrayLike

 )

23.2.5.1.6 AllocateTypedArrayBuffer ( 

O

length

 )

23.2.6 Properties of the 

TypedArray

 Constructors

23.2.6.1 

TypedArray

.BYTES_PER_ELEMENT

23.2.6.2 

TypedArray

.prototype

23.2.7 Properties of the 

TypedArray

 Prototype Objects

23.2.7.1 

TypedArray

.prototype.BYTES_PER_ELEMENT

32

23.2.7.2 

TypedArray

.prototype.constructor

23.2.8 Properties of 

TypedArray

 Instances

24 Keyed Collections

24.1 Map Objects

24.1.1 The Map Constructor

24.1.1.1 Map ( [ 

iterable

 ] )

24.1.1.2 AddEntriesFromIterable ( 

target

iterable

adder

 )

24.1.2 Properties of the Map Constructor

24.1.2.1 Map.prototype
24.1.2.2 get Map [ @@species ]

24.1.3 Properties of the Map Prototype Object

24.1.3.1 Map.prototype.clear ( )
24.1.3.2 Map.prototype.constructor
24.1.3.3 Map.prototype.delete ( 

key

 )

24.1.3.4 Map.prototype.entries ( )
24.1.3.5 Map.prototype.forEach ( 

callbackfn

 [ , 

thisArg

 ] )

24.1.3.6 Map.prototype.get ( 

key

 )

24.1.3.7 Map.prototype.has ( 

key

 )

24.1.3.8 Map.prototype.keys ( )
24.1.3.9 Map.prototype.set ( 

key

value

 )

24.1.3.10 get Map.prototype.size
24.1.3.11 Map.prototype.values ( )
24.1.3.12 Map.prototype [ @@iterator ] ( )
24.1.3.13 Map.prototype [ @@toStringTag ]

24.1.4 Properties of Map Instances
24.1.5 Map Iterator Objects

24.1.5.1 CreateMapIterator ( 

map

kind

 )

24.1.5.2 The %MapIteratorPrototype% Object

24.1.5.2.1 %MapIteratorPrototype%.next ( )
24.1.5.2.2 %MapIteratorPrototype% [ @@toStringTag ]

24.2 Set Objects

24.2.1 The Set Constructor

24.2.1.1 Set ( [ 

iterable

 ] )

24.2.2 Properties of the Set Constructor

24.2.2.1 Set.prototype
24.2.2.2 get Set [ @@species ]

24.2.3 Properties of the Set Prototype Object

24.2.3.1 Set.prototype.add ( 

value

 )

24.2.3.2 Set.prototype.clear ( )
24.2.3.3 Set.prototype.constructor
24.2.3.4 Set.prototype.delete ( 

value

 )

24.2.3.5 Set.prototype.entries ( )
24.2.3.6 Set.prototype.forEach ( 

callbackfn

 [ , 

thisArg

 ] )

24.2.3.7 Set.prototype.has ( 

value

 )

24.2.3.8 Set.prototype.keys ( )
24.2.3.9 get Set.prototype.size
24.2.3.10 Set.prototype.values ( )
24.2.3.11 Set.prototype [ @@iterator ] ( )

33

2.  Return 

FunctionBody

 

Contains

 

SuperCall

.

MethodDefinition

 

:

 

get

 

PropertyName

 

(

 

)

 

{

 

FunctionBody

 

}

1.  Return 

FunctionBody

 

Contains

 

SuperCall

.

MethodDefinition

 

:

 

set

 

PropertyName

 

(

 

PropertySetParameterList

 

)

 

{

 

FunctionBody

 

}

1.  If 

PropertySetParameterList

 

Contains

 

SuperCall

 is 

true

, return 

true

.

2.  Return 

FunctionBody

 

Contains

 

SuperCall

.

GeneratorMethod

 

:

 

*

 

PropertyName

 

(

 

UniqueFormalParameters

 

)

 

{

 

GeneratorBody

 

}

1.  If 

UniqueFormalParameters

 

Contains

 

SuperCall

 is 

true

, return 

true

.

2.  Return 

GeneratorBody

 

Contains

 

SuperCall

.

AsyncGeneratorMethod

 

:

 

async

 

*

 

PropertyName

 

(

 

UniqueFormalParameters

 

)

 

{

 

AsyncGeneratorBody

 

}

1.  If 

UniqueFormalParameters

 

Contains

 

SuperCall

 is 

true

, return 

true

.

2.  Return 

AsyncGeneratorBody

 

Contains

 

SuperCall

.

AsyncMethod

 

:

 

async

 

PropertyName

 

(

 

UniqueFormalParameters

 

)

 

{

 

AsyncFunctionBody

 

}

1.  If 

UniqueFormalParameters

 

Contains

 

SuperCall

 is 

true

, return 

true

.

2.  Return 

AsyncFunctionBody

 

Contains

 

SuperCall

.

MethodDefinition

 

:

 

PropertyName

 

(

 

UniqueFormalParameters

 

)

 

{

 

FunctionBody

 

}

1.  Return 

false

.

MethodDefinition

 

:

GeneratorMethod
AsyncMethod
AsyncGeneratorMethod

get

 

PropertyName

 

(

 

)

 

{

 

FunctionBody

 

}

set

 

PropertyName

 

(

 

PropertySetParameterList

 

)

 

{

 

FunctionBody

 

}

1.  Return 

true

.

With parameter 

object

 and optional parameter 

functionPrototype

.

MethodDefinition

 

:

 

PropertyName

 

(

 

UniqueFormalParameters

 

)

 

{

 

FunctionBody

 

}

1.  Let 

propKey

 be the result of evaluating 

PropertyName

.

2. 

ReturnIfAbrupt

(

propKey

).

3.  Let 

scope

 be the 

running execution context

's LexicalEnvironment.

4.  If 

functionPrototype

 is present, then

a.  Let 

prototype

 be 

functionPrototype

.

15.4.3  Static Semantics: SpecialMethod

15.4.4  Runtime Semantics: DefineMethod

401

 

 

 

 

 

 

 

Content      ..     2      3      4      5     ..