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 528fc7d commit be87ecdCopy full SHA for be87ecd
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(UnaryOp.EqzI64, module.ref_is(RefIsOp.RefIsNull, expr))
9949
: module.unary(UnaryOp.EqzI32, module.ref_is(RefIsOp.RefIsNull, expr));
0 commit comments