|
|
@@ -240,7 +240,7 @@ public:
|
|
|
auto index = key.get<int>();
|
|
|
return array_->at(index < 0 ? array_->size() + index : index);
|
|
|
} else if (object_) {
|
|
|
- if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
|
|
|
+ if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
|
|
|
auto it = object_->find(key.primitive_);
|
|
|
if (it == object_->end()) return Value();
|
|
|
return it->second;
|
|
|
@@ -249,7 +249,7 @@ public:
|
|
|
}
|
|
|
void set(const Value& key, const Value& value) {
|
|
|
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
|
|
|
- if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
|
|
|
+ if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
|
|
|
(*object_)[key.primitive_] = value;
|
|
|
}
|
|
|
Value call(const std::shared_ptr<Context> & context, ArgumentsValue & args) const {
|