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 424ecf0 commit 5cf3492Copy full SHA for 5cf3492
src/compiler.ts
@@ -9943,6 +9943,7 @@ export class Compiler extends DiagnosticEmitter {
9943
case TypeKind.I31REF: {
9944
// Needs to be true when the ref is _not_ null.
9945
// Therefore: 1 - <ref.is_null>
9946
+ // Therefore: !(<ref.is_null>)
9947
return type.size == 64
9948
? module.unary(BinaryOp.EqzI64, module.ref_is(RefIsOp.RefIsNull, expr))
9949
: module.unary(BinaryOp.EqzI32, module.ref_is(RefIsOp.RefIsNull, expr));
0 commit comments