| 151 | } |
| 152 | |
| 153 | Value Namespace::GetFieldByName(const String& field, bool, const DebugInfo& debugInfo) const |
| 154 | { |
| 155 | auto lock (ReadLockUnlessFrozen()); |
| 156 | |
| 157 | auto nsVal = m_Data.find(field); |
| 158 | |
| 159 | if (nsVal != m_Data.end()) |
| 160 | return nsVal->second.Val; |
| 161 | else |
| 162 | return GetPrototypeField(const_cast<Namespace *>(this), field, false, debugInfo); /* Ignore indexer not found errors similar to the Dictionary class. */ |
| 163 | } |
| 164 | |
| 165 | void Namespace::SetFieldByName(const String& field, const Value& value, const DebugInfo& debugInfo) |
| 166 | { |