File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ class Value : public std::enable_shared_from_this<Value> {
240
240
auto index = key.get <int >();
241
241
return array_->at (index < 0 ? array_->size () + index : index);
242
242
} else if (object_) {
243
- if (!key.is_hashable ()) throw std::runtime_error (" Unashable type: " + dump ());
243
+ if (!key.is_hashable ()) throw std::runtime_error (" Unhashable type: " + dump ());
244
244
auto it = object_->find (key.primitive_ );
245
245
if (it == object_->end ()) return Value ();
246
246
return it->second ;
@@ -249,7 +249,7 @@ class Value : public std::enable_shared_from_this<Value> {
249
249
}
250
250
void set (const Value& key, const Value& value) {
251
251
if (!object_) throw std::runtime_error (" Value is not an object: " + dump ());
252
- if (!key.is_hashable ()) throw std::runtime_error (" Unashable type: " + dump ());
252
+ if (!key.is_hashable ()) throw std::runtime_error (" Unhashable type: " + dump ());
253
253
(*object_)[key.primitive_ ] = value;
254
254
}
255
255
Value call (const std::shared_ptr<Context> & context, ArgumentsValue & args) const {
You can’t perform that action at this time.
0 commit comments