Changeset 70
- Timestamp:
- 07/04/07 08:37:24 (1 year ago)
- Files:
-
- branches/1.9/documentation/methods.html (modified) (3 diffs)
- branches/1.9/source/methods.d (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.9/documentation/methods.html
r69 r70 20 20 <dl><dt><big>static Value <u>Global_init</u>(); 21 21 </big></dt> 22 <dd>Global 22 <dd><b>Standards:</b><br> 23 non-standard, but acceptable in a conformant implementation of ECMA 262 24 <br><br> 25 <b>Arguments:</b><br> 26 none 27 <br><br> 28 <b>Returns:</b><br> 29 manipulates the static Global object before evaluating code, as necessary by the implementation. 30 <br><br> 31 <b>Synopsis:</b><br> 32 Can be used to call any initialization code that needs to be executed before the source code is evaluated. 33 By default, Walnut provides most of the initial program structure in the structure.d file which doesn't require initialization code. 34 See Also: Global_eval 35 <br><br> 36 37 </dd> 38 <dt><big>static Value <u>Global_eval</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 39 </big></dt> 40 <dd><font color=red>BUGS:</font><br> 41 incomplete! 42 <br><br> 43 <b>Standards:</b><br> 44 ECMA 15.1.2.1 45 <br><br> 46 <b>Arguments:</b><br> 47 [0] = string to be evaluated 48 <br><br> 49 <b>Throws:</b><br> 50 EvalError 51 <br><br> 52 <b>Returns:</b><br> 53 Value result of evaluated expression. 54 <br><br> 55 <b>Synopsis:</b><br> 56 <u>Global_eval</u> is called to evaluate a buffer of source code. The method is used even to evaluate file contents; the main script. 57 <br><br> 58 59 </dd> 60 <dt><big>static Value <u>Global_parseInt</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 61 </big></dt> 62 <dd><font color=red>BUGS:</font><br> 63 Does not yet allow a non-decimal radix, or E notation. 64 <br><br> 65 <b>Standards:</b><br> 66 ECMA 15.1.2.2 67 <br><br> 68 <b>Arguments:</b><br> 69 [0] = string to be parsed 70 <br><br> 71 <b>Returns:</b><br> 72 integer Value or NaN if the value is not a valid integer. 73 <br><br> 74 <b>Synopsis:</b><br> 75 <u>Global_parseInt</u> is called to cast a string into an integer. 76 <br><br> 77 78 </dd> 79 <dt><big>static Value <u>Global_parseFloat</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 80 </big></dt> 81 <dd><font color=red>BUGS:</font><br> 82 Does not yet allow a non-decimal radix, or E notation. 83 <br><br> 84 <b>Standards:</b><br> 85 ECMA 15.1.2.3 86 <br><br> 87 <b>Arguments:</b><br> 88 [0] = string to be parsed 89 <br><br> 90 <b>Returns:</b><br> 91 double Value or NaN if the value is not a valid integer. 92 <br><br> 93 <b>Synopsis:</b><br> 94 <u>Global_parseFloat</u> is called to cast a string into a double. 95 <br><br> 96 97 </dd> 98 <dt><big>static Value <u>Global_escape</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 99 </big></dt> 100 <dd><font color=red>BUGS:</font><br> 101 Incomplete! 102 <br><br> 103 <b>Standards:</b><br> 104 non-standard. 105 <br><br> 106 <b>Arguments:</b><br> 107 [0] = string to be escaped 108 <br><br> 109 <b>Returns:</b><br> 110 string with any characters needing an escape sequence converted to their escaped equivalent. 111 <br><br> 112 <b>Synopsis:</b><br> 113 <br><br> 114 115 </dd> 116 <dt><big>static Value <u>Global_unescape</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 117 </big></dt> 118 <dd><font color=red>BUGS:</font><br> 119 Incomplete! 120 <br><br> 121 <b>Standards:</b><br> 122 non-standard. 123 <br><br> 124 <b>Arguments:</b><br> 125 [0] = string to be escaped 126 <br><br> 127 <b>Returns:</b><br> 128 string with any escaped characters converted to the unescaped equivalent. 129 <br><br> 130 <b>Synopsis:</b><br> 131 <br><br> 132 133 </dd> 134 <dt><big>static Value <u>Global_isNaN</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 135 </big></dt> 136 <dd><b>Standards:</b><br> 137 ECMA 15.1.2.4 138 <br><br> 139 <b>Arguments:</b><br> 140 [0] = Value to be tested 141 <br><br> 142 <b>Returns:</b><br> 143 boolean for whether or not the Value is a valid number that is not NaN. 144 <br><br> 145 <b>Synopsis:</b><br> 146 <br><br> 147 148 </dd> 149 <dt><big>static Value <u>Global_isFinite</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 150 </big></dt> 151 <dd><b>Standards:</b><br> 152 ECMA 15.1.2.5 153 <br><br> 154 <b>Arguments:</b><br> 155 [0] = Value to be tested 156 <br><br> 157 <b>Returns:</b><br> 158 boolean for whether or not the Value is a finite number. 159 <br><br> 160 <b>Synopsis:</b><br> 161 <br><br> 162 163 </dd> 164 <dt><big>static Value <u>Global_decodeURI</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 165 </big></dt> 166 <dd><b>Standards:</b><br> 167 ECMA 15.1.3.1 168 <br><br> 169 <b>Arguments:</b><br> 170 [0] = URI string to be decoded 171 <br><br> 172 <b>Returns:</b><br> 173 <br><br> 174 <b>Synopsis:</b><br> 175 <br><br> 176 177 </dd> 178 <dt><big>static Value <u>Global_decodeURIComponent</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 179 </big></dt> 180 <dd><b>Standards:</b><br> 181 ECMA 15.1.3.2 182 <br><br> 183 <b>Arguments:</b><br> 184 [0] = URI component string to be decoded 185 <br><br> 186 <b>Returns:</b><br> 187 <br><br> 188 <b>Synopsis:</b><br> 189 <br><br> 190 191 </dd> 192 <dt><big>static Value <u>Global_encodeURI</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 193 </big></dt> 194 <dd><b>Standards:</b><br> 195 ECMA 15.1.3.3 196 <br><br> 197 <b>Arguments:</b><br> 198 [0] = URI string to be encoded. 199 <br><br> 200 <b>Returns:</b><br> 201 <br><br> 202 <b>Synopsis:</b><br> 203 <br><br> 204 205 </dd> 206 <dt><big>static Value <u>Global_encodeURIComponent</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 207 </big></dt> 208 <dd><b>Standards:</b><br> 209 ECMA 15.1.3.4 210 <br><br> 211 <b>Arguments:</b><br> 212 [0] = URI component string to be encoded 213 <br><br> 214 <b>Returns:</b><br> 215 <br><br> 216 <b>Synopsis:</b><br> 23 217 <br><br> 24 218 … … 26 220 <dt><big>static Value <u>Global_Object</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 27 221 </big></dt> 28 <dd>Object 222 <dd><b>Standards:</b><br> 223 ECMA 15.2.1 224 <br><br> 225 <b>Arguments:</b><br> 226 any Value 227 <br><br> 228 <b>Returns:</b><br> 229 The Object form of any Value, or a new Object when called without <i>arguments</i>. 230 <br><br> 231 <b>Synopsis:</b><br> 232 <br><br> 233 234 </dd> 235 <dt><big>static Value <u>Object_prototype_constructor</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 236 </big></dt> 237 <dd><b>Standards:</b><br> 238 ECMA 15.2.2 239 <br><br> 240 <b>Arguments:</b><br> 241 any Value 242 <br><br> 243 <b>Returns:</b><br> 244 The Object form of any Value, or a new Object when called without <i>arguments</i>. 245 <br><br> 246 <b>Synopsis:</b><br> 247 Is perfectly equivalent to "new Object()" 248 <br><br> 249 250 </dd> 251 <dt><big>static Value <u>Object_prototype_toString</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 252 </big></dt> 253 <dd>Standards ECMA 15.2.4.2, 15.2.4.3 254 <br><br> 255 <b>Arguments:</b><br> 256 any Value 257 <br><br> 258 <b>Returns:</b><br> 259 The string form of that Value 260 <br><br> 261 <b>Synopsis:</b><br> 262 According to 15.2.4.3, calls to Object_prototype_toLocaleString() are to be directed to 263 <u>Object_prototype_toString</u>(), and the duplication kept for completeness so that toLocaleString() can be called 264 on all types. 265 <br><br> 266 267 </dd> 268 <dt><big>static Value <u>Object_prototype_toSource</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 269 </big></dt> 270 <dd>Standards non-standard 271 <br><br> 272 <b>Arguments:</b><br> 273 none 274 <br><br> 275 <b>Returns:</b><br> 276 Source code which, when eval'd will result in the creation of the equivalent Object 277 <br><br> 278 <b>Synopsis:</b><br> 279 <br><br> 280 281 </dd> 282 <dt><big>static Value <u>Object_prototype_valueOf</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 283 </big></dt> 284 <dd>Standards ECMA 15.2.4.4 285 <br><br> 286 <b>Arguments:</b><br> 287 none 288 <br><br> 289 <b>Returns:</b><br> 290 The primitive value of the Object. For non-primitive Objects, this will return the argument itself. 291 <br><br> 292 <b>Synopsis:</b><br> 293 <br><br> 294 295 </dd> 296 <dt><big>static Value <u>Object_prototype_hasOwnProperty</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 297 </big></dt> 298 <dd>Standards ECMA 15.2.4.5 299 <br><br> 300 <b>Arguments:</b><br> 301 [0] = String containing the property name to be found 302 <br><br> 303 <b>Returns:</b><br> 304 boolean of whether this contains the property. 305 <br><br> 306 <b>Synopsis:</b><br> 307 <br><br> 308 309 </dd> 310 <dt><big>static Value <u>Object_prototype_isPrototypeOf</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 311 </big></dt> 312 <dd>Standards ECMA 15.2.4.6 313 <br><br> 314 <b>Arguments:</b><br> 315 [0] = any Object 316 <br><br> 317 <b>Returns:</b><br> 318 boolean of whether [0] is in this Object's prototype chain. 319 <br><br> 320 <b>Synopsis:</b><br> 321 <br><br> 322 323 </dd> 324 <dt><big>static Value <u>Object_prototype_propertyIsEnumerable</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 325 </big></dt> 326 <dd>Standards ECMA 15.2.4.7 327 <br><br> 328 <b>Arguments:</b><br> 329 [0] = String containing the property name to be examined 330 <br><br> 331 <b>Returns:</b><br> 332 boolean of whether [0] is enumerable on this Object 333 <br><br> 334 <b>Synopsis:</b><br> 29 335 <br><br> 30 336 … … 32 338 <dt><big>static Value <u>Global_Function</u>(inout Value <i>self</i>, inout Value <i>cc</i>, Value [] <i>arguments</i>...); 33 339 </big></dt> 34 <dd>ECMA 15.2.4.3: Object_prototype_toLocaleString() = Object_prototype_toString() 35 <br><br> 36 Function 340 <dd>Function 37 341 <br><br> 38 342 branches/1.9/source/methods.d
r67 r70 20 20 21 21 22 /// Global 22 /** 23 Standards: non-standard, but acceptable in a conformant implementation of ECMA 262 24 Arguments: none 25 Returns: manipulates the static Global object before evaluating code, as necessary by the implementation. 26 Synopsis: Can be used to call any initialization code that needs to be executed before the source code is evaluated. 27 By default, Walnut provides most of the initial program structure in the structure.d file which doesn't require initialization code. 28 See Also: Global_eval 29 */ 23 30 static Value Global_init(){ 24 /**25 The Global_init() can be used to call any initialization26 code that needs to be executed before the source code is27 evaluated.28 29 By default, Walnut provides most of the initial program30 structure in the structure.d file which doesn't require31 initialization code.32 */33 31 return Global; 34 32 } 33 34 /** 35 Bugs: incomplete! 36 Standards: ECMA 15.1.2.1 37 Arguments: [0] = string to be evaluated 38 Throws: EvalError 39 Returns: Value result of evaluated expression. 40 Synopsis: Global_eval is called to evaluate a buffer of source code. The method is used even to evaluate file contents; the main script. 41 */ 35 42 static Value Global_eval(inout Value self, inout Value cc, Value[] arguments ...) { 36 /** ECMA 15.1.2.1 37 Global_eval is called to evaluate a buffer of source code. 38 The method is used even to evaluate file contents; the main script. 39 40 See Also: Global_init 41 */ 42 return UNDEFINED; 43 } 43 44 return UNDEFINED; 45 } 46 47 /** 48 Bugs: Does not yet allow a non-decimal radix, or E notation. 49 Standards: ECMA 15.1.2.2 50 Arguments: [0] = string to be parsed 51 Returns: integer Value or NaN if the value is not a valid integer. 52 Synopsis: Global_parseInt is called to cast a string into an integer. 53 */ 44 54 static Value Global_parseInt(inout Value self, inout Value cc, Value[] arguments ...) { 45 /// ECMA 15.1.2.246 // BUG: this currently assumes a decimal value47 55 if(arguments.length) { 48 56 return cast(Value) arguments[0].toInteger(); … … 50 58 return NAN; 51 59 } 60 61 /** 62 Bugs: Does not yet allow a non-decimal radix, or E notation. 63 Standards: ECMA 15.1.2.3 64 Arguments: [0] = string to be parsed 65 Returns: double Value or NaN if the value is not a valid integer. 66 Synopsis: Global_parseFloat is called to cast a string into a double. 67 */ 52 68 static Value Global_parseFloat(inout Value self, inout Value cc, Value[] arguments ...) { 53 /// ECMA 15.1.2.354 // BUG: this currently assumes a decimal value55 69 if(arguments.length) { 56 70 return cast(Value) arguments[0].toDouble(); … … 58 72 return NAN; 59 73 } 74 75 /** 76 Bugs: Incomplete! 77 Standards: non-standard. 78 Arguments: [0] = string to be escaped 79 Returns: string with any characters needing an escape sequence converted to their escaped equivalent. 80 Synopsis: 81 */ 60 82 static Value Global_escape(inout Value self, inout Value cc, Value[] arguments ...) { 61 /// not defined in ECMA, but allowed in conformant implementations. 62 return UNDEFINED; 63 } 83 return UNDEFINED; 84 } 85 86 /** 87 Bugs: Incomplete! 88 Standards: non-standard. 89 Arguments: [0] = string to be escaped 90 Returns: string with any escaped characters converted to the unescaped equivalent. 91 Synopsis: 92 */ 64 93 static Value Global_unescape(inout Value self, inout Value cc, Value[] arguments ...) { 65 /// not defined in ECMA, but allowed in conformant implementations. 66 return UNDEFINED; 67 } 94 return UNDEFINED; 95 } 96 97 /** 98 Standards: ECMA 15.1.2.4 99 Arguments: [0] = Value to be tested 100 Returns: boolean for whether or not the Value is a valid number that is not NaN. 101 Synopsis: 102 */ 68 103 static Value Global_isNaN(inout Value self, inout Value cc, Value[] arguments ...) { 69 /// ECMA 15.1.2.4 70 return cast(Value) (arguments.length && arguments[0].toDouble != double.nan? true : false); 71 } 104 return cast(Value) (arguments.length && arguments[0].toDouble() != double.nan? true : false); 105 } 106 107 /** 108 Standards: ECMA 15.1.2.5 109 Arguments: [0] = Value to be tested 110 Returns: boolean for whether or not the Value is a finite number. 111 Synopsis: 112 */ 72 113 static Value Global_isFinite(inout Value self, inout Value cc, Value[] arguments ...) { 73 /// ECMA 15.1.2.574 114 return cast(Value) (arguments.length && isfinite(arguments[0].toDouble)? true : false ); 75 115 } 116 117 /** 118 Standards: ECMA 15.1.3.1 119 Arguments: [0] = URI string to be decoded 120 Returns: 121 Synopsis: 122 */ 76 123 static Value Global_decodeURI(inout Value self, inout Value cc, Value[] arguments ...) { 77 /// ECMA 15.1.3.178 124 scope(failure) return UNDEFINED; 79 125 return cast(Value) decode(arguments[0].toString()); 80 126 } 127 128 /** 129 Standards: ECMA 15.1.3.2 130 Arguments: [0] = URI component string to be decoded 131 Returns: 132 Synopsis: 133 */ 81 134 static Value Global_decodeURIComponent(inout Value self, inout Value cc, Value[] arguments ...) { 82 /// ECMA 15.1.3.283 135 scope(failure) return UNDEFINED; 84 136 return cast(Value) decodeComponent(arguments[0].toString()); 85 137 } 138 139 /** 140 Standards: ECMA 15.1.3.3 141 Arguments: [0] = URI string to be encoded. 142 Returns: 143 Synopsis: 144 */ 86 145 static Value Global_encodeURI(inout Value self, inout Value cc, Value[] arguments ...) { 87 /// ECMA 15.1.3.388 146 scope(failure) return UNDEFINED; 89 147 return cast(Value) encode(arguments[0].toString()); 90 148 } 149 150 /** 151 Standards: ECMA 15.1.3.4 152 Arguments: [0] = URI component string to be encoded 153 Returns: 154 Synopsis: 155 */ 91 156 static Value Global_encodeURIComponent(inout Value self, inout Value cc, Value[] arguments ...) { 92 /// ECMA 15.1.3.493 157 scope(failure) return UNDEFINED; 94 158 return cast(Value) encodeComponent(arguments[0].toString()); 95 159 } 96 160 97 98 99 /// Object 161 /** 162 Standards: ECMA 15.2.1 163 Arguments: any Value 164 Returns: The Object form of any Value, or a new Object when called without arguments. 165 Synopsis: 166 */ 100 167 static Value Global_Object(inout Value self, inout Value cc, Value[] arguments ...) { 101 /// ECMA 15.2.1.1102 168 Value v; 103 169 return v; 104 170 } 171 172 /** 173 Standards: ECMA 15.2.2 174 Arguments: any Value 175 Returns: The Object form of any Value, or a new Object when called without arguments. 176 Synopsis: Is perfectly equivalent to "new Object()" 177 */ 105 178 static Value Object_prototype_constructor(inout Value self, inout Value cc, Value[] arguments ...) { 106 /// ECMA 15.2.2107 179 Value v; 108 180 return v; 109 181 } 182 183 /** 184 Standards ECMA 15.2.4.2, 15.2.4.3 185 Arguments: any Value 186 Returns: The string form of that Value 187 Synopsis: According to 15.2.4.3, calls to Object_prototype_toLocaleString() are to be directed to 188 Object_prototype_toString(), and the duplication kept for completeness so that toLocaleString() can be called 189 on all types. 190 */ 110 191 static Value Object_prototype_toString(inout Value self, inout Value cc, Value[] arguments ...) { 111 /// ECMA 15.2.4.2112 192 return cast(Value) self.toString(); 113 193 } 194 195 /** 196 Standards non-standard 197 Arguments: none 198 Returns: Source code which, when eval'd will result in the creation of the equivalent Object 199 Synopsis: 200 */ 114 201 static Value Object_prototype_toSource(inout Value self, inout Value cc, Value[] arguments ...) { 115 /// not specified in ECMA 3rd Edition, but allowed in conformant implementations116 202 char[] buffer = "{"; 117 203 bool any = false; … … 127 213 return cast(Value) buffer; 128 214 } 215 216 /** 217 Standards ECMA 15.2.4.4 218 Arguments: none 219 Returns: The primitive value of the Object. For non-primitive Objects, this will return the argument itself. 220 Synopsis: 221 */ 129 222 static Value Object_prototype_valueOf(inout Value self, inout Value cc, Value[] arguments ...) { 130 /// ECMA 15.2.4.4 131 return self; 132 } 223 return self; 224 } 225 226 /** 227 Standards ECMA 15.2.4.5 228 Arguments: [0] = String containing the property name to be found 229 Returns: boolean of whether this contains the property. 230 Synopsis: 231 */ 133 232 static Value Object_prototype_hasOwnProperty(inout Value self, inout Value cc, Value[] arguments ...) { 134 /// ECMA 15.2.4.5135 233 if(!arguments.length) 136 234 return FALSE; 137 235 return cast(Value) (arguments[0].toString() in self); 138 236 } 237 238 /** 239 Standards ECMA 15.2.4.6 240 Arguments: [0] = any Object 241 Returns: boolean of whether [0] is in this Object's prototype chain. 242 Synopsis: 243 */ 139 244 static Value Object_prototype_isPrototypeOf(inout Value self, inout Value cc, Value[] arguments ...) { 140 /// ECMA 15.2.4.6141 245 if(self.type == TYPE.OBJECT && arguments.length) { 142 246 Value current = arguments[0]; … … 149 253 return FALSE; 150 254 } 255 256 /** 257 Standards ECMA 15.2.4.7 258 Arguments: [0] = String containing the property name to be examined 259 Returns: boolean of whether [0] is enumerable on this Object 260 Synopsis: 261 */ 151 262 static Value Object_prototype_propertyIsEnumerable(inout Value self, inout Value cc, Value[] arguments ...) { 152 /// ECMA 15.2.4.7153 263 if(!arguments.length) 154 264 return FALSE; 155 265 return cast(Value) (self[arguments[0].toString()].access & ACCESS.ENUMERATE); 156 266 } 157 /// ECMA 15.2.4.3: Object_prototype_toLocaleString() = Object_prototype_toString()158 267 159 268 … … 164 273 return Function_prototype_constructor(self,cc,arguments); 165 274 } 275 166 276 static Value Function_prototype_constructor(inout Value self, inout Value cc, Value[] arguments ...) { 167 277 /// ECMA 15.3.2.1 168 278 return UNDEFINED; 169 279 } 280 170 281 static Value Function_prototype_apply(inout Value self, inout Value cc, Value[] arguments ...) { 171 282 /// ECMA 15.3.4.3 172 283 return UNDEFINED; 173 284 } 285 174 286 static Value Function_prototype_call(inout Value self, inout Value cc, Value[] arguments ...) { 175 287 /// ECMA 15.3.4.4 … … 184 296 return Array_prototype_constructor(self,cc,arguments); 185 297 } 298 186 299 static Value Array_prototype_constructor(inout Value self, inout Value cc, Value[] arguments ...) { 187 300 /// ECMA 15.4.2 188 301 return UNDEFINED; 189 302 } 303 190 304 static Value Array_prototype_toLocaleString(inout Value self, inout Value cc, Value[] arguments ...) { 191 305 /// ECMA 15.4.4.3 192 306 return UNDEFINED; 193 307 } 308 194 309 static Value Array_prototype_toSource(inout Value self, inout Value cc, Value[] arguments ...) { 195 310 /// not specified in ECMA 262 3rd Edition, but valid in a conformant implementation 196 311 return UNDEFINED; 197 312 } 313 198 314 static Value Array_prototype_concat(inout Value self, inout Value cc, Value[] arguments ...) { 199 315 /// ECMA 15.4.4.4 200 316 return UNDEFINED; 201 317 } 318 202 319 static Value Array_prototype_join(inout Value self, inout Value cc, Value[] arguments ...) { 203 320 /// ECMA 15.4.4.3 204 321 return UNDEFINED; 205 322 } 323 206 324 static Value Array_prototype_pop(inout Value self, inout Value cc, Value[] arguments ...) { 207 325 /// ECMA 15.4.4.6 208 326 return UNDEFINED; 209 327 } 328 210 329 static Value Array_prototype_push(inout Value self, inout Value cc, Value[] arguments ...) { 211 330 /// ECMA 15.4.4.7 212 331 return UNDEFINED; 213 332 } 333 214 334 static Value Array_prototype_reverse(inout Value self, inout Value cc, Value[] arguments ...) { 215 335 /// ECMA 15.4.4.8 216 336 return UNDEFINED; 217 337 } 338 218 339 static Value Array_prototype_shift(inout Value self, inout Value cc, Value[] arguments ...) { 219 340 /// ECMA 15.4.4.9 220 341 return UNDEFINED; 221 342 } 343 222 344 static Value Array_prototype_slice(inout Value self, inout Value cc, Value[] arguments ...) { 223 345 /// ECMA 15.4.4.10 224 346 return UNDEFINED; 225 347 } 348 226 349 static Value Array_prototype_sort(inout Value self, inout Value cc, Value[] arguments ...) { 227 350 /// ECMA 15.4.4.11 228 351 return UNDEFINED; 229 352 } 353 230 354 static Value Array_prototype_splice(inout Value self, inout Value cc, Value[] arguments ...) { 231 355 /// ECMA 15.4.4.12 232 356 return UNDEFINED; 233 357 } 358 234 359 static Value Array_prototype_unshift(inout Value self, inout Value cc, Value[] arguments ...) { 235 360 /// ECMA 15.4.4.13 236 361 return UNDEFINED; 237 362 } 238 239 240 363 241 364 /// String … … 244 367 return UNDEFINED; 245 368 } 369 246 370 static Value String_prototype_constructor(inout Value self, inout Value cc, Value[] arguments ...) { 247 371 /// ECMA 15.5.2.1 248 372 return UNDEFINED; 249 373 } 374 250 375 static Value String_fromCharCode(inout Value self, inout Value cc, Value[] arguments ...) { 251 376 /// ECMA 15.5.3.2 252 377 return UNDEFINED; 253 378 } 379 254 380 static Value String_prototype_charAt(inout Value self, inout Value cc, Value[] arguments ...) { 255 381 /// ECMA 15.5.4.4 256 382 return UNDEFINED; 257 383 } 384 258 385 static Value String_prototype_charCodeAt(inout Value self, inout Value cc, Value[] arguments ...) { 259 386 /// ECMA 15.5.4.5 260 387 return UNDEFINED; 261 388 } 389 262 390 static Value String_prototype_concat(inout Value self, inout Value cc, Value[] arguments ...) { 263 391 /// ECMA 15.5.4.6 264 392 return UNDEFINED; 265 393 } 394 266 395 static Value String_prototype_indexOf(inout Value self, inout Value cc, Value[] arguments ...) { 267 396 /// ECMA 15.5.4.7 268 397 return UNDEFINED; 269 398 } 399 270 400 static Value String_prototype_lastIndexOf(inout Value self, inout Value cc, Value[] arguments ...) { 271 401 /// ECMA 15.5.4.8 272 402 return UNDEFINED; 273 403 } 404 274 405 static Value String_prototype_localeCompare(inout Value self, inout Value cc, Value[] arguments ...) { 275 406 /// ECMA 15.5.4.9 276 407 return UNDEFINED; 277 408 } 409 278 410 static Value String_prototype_match(inout Value self, inout Value cc, Value[] arguments ...) { 279 411 /// ECMA 15.5.4.10 280 412 return UNDEFINED; 281 413 } 414 282 415 static Value String_prototype_replace(inout Value self, inout Value cc, Value[] arguments ...) { 283 416 /// ECMA 15.5.4.11 284 417 return UNDEFINED; 285 418 } 419 286 420 static Value String_prototype_search(inout Value self, inout Value cc, Value[] arguments ...) { 287 421 /// ECMA 15.5.4.12 288 422 return UNDEFINED; 289 423 } 424 290 425 static Value String_prototype_slice(inout Value self, inout Value cc, Value[] arguments ...) { 291 426 /// ECMA 15.5.4.13 292 427 return UNDEFINED; 293 428 } 429 294 430 static Value String_prototype_split(inout Value self, inout Value cc, Value[] arguments ...) { 295 431 /// ECMA 15.5.4.14 296 432 return UNDEFINED; 297 433 } 434 298 435 static Value String_prototype_substr(inout Value self, inout Value cc, Value[] arguments ...) { 299 436 /// ECMA 300 437 return UNDEFINED; 301 438 } 439 302 440 static Value String_prototype_substring(inout Value self, inout Value cc, Value[] arguments ...) { 303 441 /// ECMA 15.5.4.15 304 442 return UNDEFINED; 305 443 } 444 306 445 static Value String_prototype_toLowerCase(inout Value self, inout Value cc, Value[] arguments ...) { 307 446 /// ECMA 15.5.4.16 308 447 return UNDEFINED; 309 448 } 449 310 450 static Value String_prototype_toLocaleLowerCase(inout Value self, inout Value cc, Value[] arguments ...) { 311 451 /// ECMA 15.5.4.17 312 452 return UNDEFINED; 313 453 } 454 314 455 static Value String_prototype_toUpperCase(inout Value self, inout Value cc, Value[] arguments ...) { 315 456 /// ECMA 15.5.4.18 316 457 return UNDEFINED; 317 458 } 459 318 460 static Value String_prototype_toLocaleUpperCase(inout Value self, inout Value cc, Value[] arguments ...) { 319 461 /// ECMA 15.5.4.19 … … 328 470 return (arguments.length && arguments[0].b)? TRUE : FALSE; 329 471 } 472 330 473 static Value Boolean_prototype_constructor(inout Value self, inout Value cc, Value[] arguments ...){ 331 474 /// ECMA 15.6.2
