| 89 | } |
| 90 | |
| 91 | bool Object::GetOwnField(const String& field, Value *result) const |
| 92 | { |
| 93 | Type::Ptr type = GetReflectionType(); |
| 94 | |
| 95 | if (!type) |
| 96 | return false; |
| 97 | |
| 98 | int tid = type->GetFieldId(field); |
| 99 | |
| 100 | if (tid == -1) |
| 101 | return false; |
| 102 | |
| 103 | *result = GetField(tid); |
| 104 | return true; |
| 105 | } |
| 106 | |
| 107 | Value Object::GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const |
| 108 | { |