summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index d5b52b315..779efe991 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -586,6 +586,8 @@ enum StringNewOp {
StringNewWTF8Array,
StringNewReplaceArray,
StringNewWTF16Array,
+ // Other
+ StringNewFromCodePoint,
};
enum StringMeasureOp {
@@ -1684,7 +1686,7 @@ public:
StringNewOp op;
// In linear memory variations this is the pointer in linear memory. In the
- // GC variations this is an Array.
+ // GC variations this is an Array. In from_codepoint this is the code point.
Expression* ptr;
// Used only in linear memory variations.
@@ -1694,6 +1696,10 @@ public:
Expression* start = nullptr;
Expression* end = nullptr;
+ // The "try" variants will return null if an encoding error happens, rather
+ // than trap.
+ bool try_ = false;
+
void finalize();
};