Skip to content

Commit 5cf3492

Browse files
surmaMaxGraey
andauthored
Update src/compiler.ts
Co-authored-by: Max Graey <[email protected]>
1 parent 424ecf0 commit 5cf3492

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9943,6 +9943,7 @@ export class Compiler extends DiagnosticEmitter {
99439943
case TypeKind.I31REF: {
99449944
// Needs to be true when the ref is _not_ null.
99459945
// Therefore: 1 - <ref.is_null>
9946+
// Therefore: !(<ref.is_null>)
99469947
return type.size == 64
99479948
? module.unary(BinaryOp.EqzI64, module.ref_is(RefIsOp.RefIsNull, expr))
99489949
: module.unary(BinaryOp.EqzI32, module.ref_is(RefIsOp.RefIsNull, expr));

0 commit comments

Comments
 (0)