We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21b4811 commit c87cf07Copy full SHA for c87cf07
IntegrationTests/JavaScriptKitExec/Sources/JavaScriptKitExec/main.swift
@@ -6,6 +6,7 @@ Literal_Conversion: do {
6
.boolean(true),
7
.boolean(false),
8
.string("foobar"),
9
+ .string("👨👩👧👧 Family Emoji"),
10
.number(0),
11
.number(.max),
12
.number(.min),
Runtime/src/index.ts
@@ -206,10 +206,11 @@ export class SwiftRuntime {
206
}
207
208
case "string": {
209
+ const bytes = textEncoder.encode(value);
210
return {
211
kind: JavaScriptValueKind.String,
212
payload1: this.heap.allocHeap(value),
- payload2: value.length,
213
+ payload2: bytes.length,
214
215
216
case "undefined": {
0 commit comments