| 2489 | } |
| 2490 | |
| 2491 | Value Value::get(ArrayIndex index, const Value &defaultValue) const { |
| 2492 | const Value *value = &((*this)[index]); |
| 2493 | return value == &null ? defaultValue : *value; |
| 2494 | } |
| 2495 | |
| 2496 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 2497 |