summaryrefslogtreecommitdiff
path: root/deps/v8/src/builtins/convert.tq
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/convert.tq')
-rw-r--r--deps/v8/src/builtins/convert.tq5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/builtins/convert.tq b/deps/v8/src/builtins/convert.tq
index 6ac9901028..6f6cbb1f68 100644
--- a/deps/v8/src/builtins/convert.tq
+++ b/deps/v8/src/builtins/convert.tq
@@ -115,6 +115,11 @@ FromConstexpr<IterationKind, constexpr IterationKind>(
return %RawDownCast<IterationKind>(Unsigned(%FromConstexpr<int32>(c)));
}
+FromConstexpr<string::TrimMode, string::constexpr TrimMode>(
+ c: string::constexpr TrimMode): string::TrimMode {
+ return %RawDownCast<string::TrimMode>(Unsigned(%FromConstexpr<int32>(c)));
+}
+
macro Convert<To: type, From: type>(i: From): To {
return i;
}