Skip to content

Commit 113d9d8

Browse files
committed
evaluate params when calling
1 parent aa2d509 commit 113d9d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/wasm-to-typescript-types/instructions/control-flow.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Func, LocalsById, Param, ProgramState } from "../types"
22
import type { State } from '../state'
33
import type { Instruction } from "./instructions"
4-
import type { Wasm, WasmValue, Satisfies } from 'ts-type-math'
4+
import type { Wasm, WasmValue, Satisfies, evaluate } from 'ts-type-math'
55

66
export type IBlock = {
77
kind: "Block"
@@ -269,7 +269,7 @@ type Refresh<T extends Refreshment> =
269269
}
270270
}>
271271
: never // should never happen because the stack should always have at least as many items as there are params
272-
: T
272+
: evaluate<T>
273273

274274
export type Call<
275275
instruction extends ICall,

0 commit comments

Comments
 (0)