| 3571 | } |
| 3572 | |
| 3573 | Value Value::get(ArrayIndex index, const Value& defaultValue) const { |
| 3574 | const Value* value = &((*this)[index]); |
| 3575 | return value == &nullSingleton() ? defaultValue : *value; |
| 3576 | } |
| 3577 | |
| 3578 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3579 |