2 3/24/03 8:43 PM ECMAScript Edition 4 Draft
10.2.4 toString................................................................53
10.2.5 toQualifiedName.................................................55
10.2.6 toPrimitive ..........................................................55
10.2.7 toClass.................................................................55
10.2.8 Attributes.............................................................56
10.3 Access Utilities ..........................................................56
10.4 Environmental Utilities..............................................57
10.5 Property Lookup ........................................................58
10.6 Reading ......................................................................60
10.7 Writing .......................................................................63
10.8 Deleting ......................................................................67
10.9 Enumerating...............................................................69
10.10 Creating Instances....................................................69
10.11 Adding Local Definitions........................................70
10.12 Adding Instance Definitions....................................71
10.13 Instantiation..............................................................73
11 Evaluation..........................................................................75
11.1 Phases of Evaluation..................................................75
11.2 Constant Expressions.................................................75
12 Expressions........................................................................75
12.1 Identifiers ...................................................................76
12.2 Qualified Identifiers...................................................76
12.3 Primary Expressions ..................................................78
12.4 Function Expressions.................................................80
12.5 Object Literals............................................................81
12.6 Array Literals .............................................................83
12.7 Super Expressions......................................................84
12.8 Postfix Expressions....................................................85
12.9 Member Operators .....................................................90
12.10 Unary Operators.......................................................92
12.11 Multiplicative Operators..........................................94
12.12 Additive Operators...................................................96
12.13 Bitwise Shift Operators ...........................................97
12.14 Relational Operators ................................................99
12.15 Equality Operators.................................................101
12.16 Binary Bitwise Operators ......................................103
12.17 Binary Logical Operators ......................................105
12.18 Conditional Operator .............................................106
12.19 Assignment Operators ...........................................107
12.20 Comma Expressions ..............................................110
12.21 Type Expressions...................................................110
13 Statements .......................................................................111
13.1 Empty Statement......................................................114
13.2 Expression Statement...............................................114
13.3 Super Statement .......................................................115
13.4 Block Statement.......................................................115
13.5 Labeled Statements..................................................116
13.6 If Statement..............................................................117
13.7 Switch Statement .....................................................118
13.8 Do-While Statement ................................................121
13.9 While Statement.......................................................122
13.10 For Statements .......................................................123
13.11 With Statement ......................................................128
13.12 Continue and Break Statements ............................128
13.13 Return Statement....................................................129
13.14 Throw Statement....................................................130
13.15 Try Statement.........................................................130
14 Directives.........................................................................133
14.1 Attributes................................................................. 136
14.2 Use Directive........................................................... 138
14.3 Import Directive...................................................... 139
14.4 Pragma..................................................................... 139
15 Definitions ...................................................................... 141
15.1 Export Definition .................................................... 141
15.2 Variable Definition ................................................. 141
15.3 Simple Variable Definition..................................... 146
15.4 Function Definition................................................. 147
15.5 Class Definition....................................................... 157
15.6 Namespace Definition............................................. 159
15.7 Package Definition.................................................. 159
16 Programs......................................................................... 160
17 Predefined Identifiers..................................................... 161
18 Built-in Classes............................................................... 161
18.1 Object ...................................................................... 165
18.2 Never ....................................................................... 165
18.3 Void ......................................................................... 165
18.4 Null .......................................................................... 165
18.5 Boolean.................................................................... 165
18.6 Integer...................................................................... 165
18.7 Number.................................................................... 165
18.7.1 ToNumber Grammar ....................................... 165
18.8 Character ................................................................. 165
18.9 String ....................................................................... 165
18.10 Function................................................................. 165
18.11 Array...................................................................... 165
18.12 Type....................................................................... 165
18.13 Math....................................................................... 165
18.14 Date........................................................................ 165
18.15 RegExp .................................................................. 165
18.15.1 Regular Expression Grammar ....................... 165
18.16 Error....................................................................... 165
18.17 Attribute ................................................................ 165
19 Built-in Functions........................................................... 165
20 Built-in Attributes .......................................................... 165
21 Built-in Namespaces ...................................................... 166
22 Errors .............................................................................. 166
23 Optional Packages.......................................................... 166
23.1 Machine Types........................................................ 166
23.2 Internationalisation ................................................. 166
A Index ................................................................................ 166
A.1 Nonterminals ............................................................ 166
A.2 Tags........................................................................... 167
A.3 Semantic Domains ................................................... 167
A.4 Globals...................................................................... 168