We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955ffe6 commit 9fdc337Copy full SHA for 9fdc337
core/vm.cpp
@@ -1711,6 +1711,14 @@ class Interpreter {
1711
case json::value_t::discarded: {
1712
abort();
1713
}
1714
+
1715
+ default: {
1716
+ // Newer mlohmann json.hpp (from v3.8.0 https://github.com/nlohmann/json/pull/1662)
1717
+ // add a `value_t::binary` type, used when dealing with some JSON-adjacent binary
1718
+ // formats (BSON, CBOR, etc). Since it doesn't exist prior to v3.8.0 we can't match
1719
+ // on it explicitly, but we can just treat any unknown type as an error.
1720
+ abort();
1721
+ }
1722
1723
1724
0 commit comments