| 3147 | } |
| 3148 | |
| 3149 | Value Value::get(ArrayIndex index, const Value& defaultValue) const { |
| 3150 | const Value* value = &((*this)[index]); |
| 3151 | return value == &nullRef ? defaultValue : *value; |
| 3152 | } |
| 3153 | |
| 3154 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 3155 |