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 ed97672 commit 2945af6Copy full SHA for 2945af6
src/builtins.ts
@@ -2936,9 +2936,10 @@ export function compileCall(
2936
return module.createUnreachable();
2937
}
2938
let flow = compiler.currentFlow;
2939
+ let alreadyUnchecked = flow.is(FlowFlags.UNCHECKED_CONTEXT);
2940
flow.set(FlowFlags.UNCHECKED_CONTEXT);
2941
ret = compiler.compileExpressionRetainType(operands[0], contextualType, WrapMode.NONE);
- flow.unset(FlowFlags.UNCHECKED_CONTEXT);
2942
+ if (!alreadyUnchecked) flow.unset(FlowFlags.UNCHECKED_CONTEXT);
2943
return ret;
2944
2945
case BuiltinSymbols.call_indirect: { // call_indirect<T?>(target: Function | u32, ...args: *[]) -> T
0 commit comments