summaryrefslogtreecommitdiff
path: root/src/support/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/json.h')
-rw-r--r--src/support/json.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/support/json.h b/src/support/json.h
index a145e1f6b..269b6c0e9 100644
--- a/src/support/json.h
+++ b/src/support/json.h
@@ -37,12 +37,12 @@
#include <unordered_set>
#include <vector>
-#include "emscripten-optimizer/istring.h"
+#include "support/istring.h"
#include "support/safe_integer.h"
namespace json {
-using IString = cashew::IString;
+using IString = wasm::IString;
// Main value type
struct Value {
@@ -112,13 +112,13 @@ struct Value {
Value& setString(const char* s) {
free();
type = String;
- str.set(s);
+ str = s;
return *this;
}
Value& setString(const IString& s) {
free();
type = String;
- str.set(s);
+ str = s;
return *this;
}
Value& setNumber(double n) {
@@ -173,7 +173,7 @@ struct Value {
const char* getCString() {
assert(isString());
- return str.str;
+ return str.str.data();
}
IString& getIString() {
assert(isString());