* Returns an already locked ObjectLock if the array is frozen. * Otherwise, returns an unlocked object lock. * * @returns An object lock. */
| 343 | * @returns An object lock. |
| 344 | */ |
| 345 | ObjectLock Array::LockIfRequired() |
| 346 | { |
| 347 | if (Frozen()) { |
| 348 | return ObjectLock(this, std::defer_lock); |
| 349 | } |
| 350 | return ObjectLock(this); |
| 351 | } |
| 352 | |
| 353 | Value Array::GetFieldByName(const String& field, bool sandboxed, const DebugInfo& debugInfo) const |
| 354 | { |
no test coverage detected