| 1354 | } |
| 1355 | |
| 1356 | Property *Object::DefineProperty(name_t aName) |
| 1357 | { |
| 1358 | index_t insert_pos; |
| 1359 | auto field = FindField(aName, insert_pos); |
| 1360 | if (!field && !(field = Insert(aName, insert_pos))) |
| 1361 | return nullptr; |
| 1362 | if (field->symbol != SYM_DYNAMIC) |
| 1363 | { |
| 1364 | field->Free(); |
| 1365 | field->symbol = SYM_DYNAMIC; |
| 1366 | field->prop = new Property(); |
| 1367 | } |
| 1368 | return field->prop; |
| 1369 | } |
| 1370 | |
| 1371 | ResultType GetObjMaxParams(IObject *aObj, int &aMaxParams, ResultToken &aResultToken) |
| 1372 | { |
no test coverage detected