Skip to content

Commit 3462581

Browse files
committed
Build deno [autogenerated commit]
1 parent 9049d20 commit 3462581

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.deno/transforms/eq-filter.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,20 @@ export class EqFilter extends FilterBase {
2828
}
2929

3030
hasItem(item: Row, t: _Transaction) {
31+
const isEq = this.op === 'eq';
3132
const val = this.onValue.get(item, t);
33+
34+
if (this.matchNull && nullIsh(val)) {
35+
return isEq;
36+
}
3237
if (nullIsh(val)) {
3338
return false;
3439
}
3540
const eq = this.onValue.type.equals(val, this.equalsCst);
3641
if (nullIsh(eq)) {
3742
return false;
3843
}
39-
return this.op === 'eq' ? !!eq : !eq;
44+
return isEq ? !!eq : !eq;
4045
}
4146

4247
constructor(private onValue: IValue

0 commit comments

Comments
 (0)