Skip to content

Commit ffd8972

Browse files
committed
test(runtime): the disable-door suite's tenant extension rule guards its nullable operand
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyToDkPxCjvNiWsv6e
1 parent 9b977c2 commit ffd8972

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/runtime/src/domains/packages-disable-module-extension-fields.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,10 @@ describe('[#30379] the disable door refuses while an enabled package\'s validati
589589
extend: ACCOUNT,
590590
validations: [{
591591
name: RULE_TENANT, type: 'script', severity: 'error', message: 'Credit is capped',
592-
condition: `record.${CREDIT} > 5000000`,
592+
// Null-guarded: the publish door judges an extension's rule by
593+
// the object's own rule pass, whose null-guard gate refuses an
594+
// unguarded nullable operand (#33154).
595+
condition: `record.${CREDIT} != null && record.${CREDIT} > 5000000`,
593596
}],
594597
},
595598
});

0 commit comments

Comments
 (0)