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 27e7b24 commit 34c6d86Copy full SHA for 34c6d86
Runtime/src/index.ts
@@ -180,7 +180,8 @@ export class SwiftRuntime {
180
dataView.getUint32(payload2_ptr, true)
181
);
182
}
183
- case JavaScriptValueKind.Object: {
+ case JavaScriptValueKind.Object:
184
+ case JavaScriptValueKind.Function: {
185
return this.heap.referenceHeap(dataView.getUint32(payload1_ptr, true))
186
187
case JavaScriptValueKind.Null: {
@@ -189,9 +190,6 @@ export class SwiftRuntime {
189
190
case JavaScriptValueKind.Undefined: {
191
return undefined
192
- case JavaScriptValueKind.Function: {
193
- return this.heap.referenceHeap(dataView.getUint32(payload1_ptr, true))
194
- }
195
default:
196
throw new Error(`Type kind "${kind}" is not supported`)
197
0 commit comments