| 1073 | } |
| 1074 | |
| 1075 | Value Value::get(ArrayIndex index, const Value& defaultValue) const { |
| 1076 | const Value* value = &((*this)[index]); |
| 1077 | return value == &nullSingleton() ? defaultValue : *value; |
| 1078 | } |
| 1079 | |
| 1080 | bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } |
| 1081 |