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> {
240240 auto index = key.get <int >();
241241 return array_->at (index < 0 ? array_->size () + index : index);
242242 } 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 ());
244244 auto it = object_->find (key.primitive_ );
245245 if (it == object_->end ()) return Value ();
246246 return it->second ;
@@ -249,7 +249,7 @@ class Value : public std::enable_shared_from_this<Value> {
249249 }
250250 void set (const Value& key, const Value& value) {
251251 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 ());
253253 (*object_)[key.primitive_ ] = value;
254254 }
255255 Value call (const std::shared_ptr<Context> & context, ArgumentsValue & args) const {
You can’t perform that action at this time.
0 commit comments