Skip to content

Commit fd7c758

Browse files
NullVoxPopuliclaude
andcommitted
Fix CI: prettier formatting, TypeScript type error, unused import
- Format debug.ts with prettier - Fix TS2345: use `!= null` check instead of `&&` for PropertyKey - Remove unused backtrackingMessageFor import - Ensure modifier tests use get/set/get pattern (re-get after set) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent a6a74d4 commit fd7c758

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/@glimmer/validator/lib/debug.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (DEBUG) {
3939
// Any remaining entries at end-of-frame trigger the backtracking assertion.
4040
let PENDING_SAME_FRAME_ASSERTIONS: Map<
4141
Tag,
42-
{ obj?: unknown; keyName?: string | symbol; transaction: Transaction }
42+
{ obj?: unknown; keyName?: PropertyKey; transaction: Transaction }
4343
> | null = null;
4444

4545
const TRANSACTION_STACK: Transaction[] = [];
@@ -99,7 +99,10 @@ if (DEBUG) {
9999
if (pending.transaction === closingTransaction) {
100100
// This tag was dirtied after being consumed but never re-consumed
101101
// before the frame ended — this is likely a bug, not lazy init.
102-
let message = TRANSACTION_ENV.debugMessage(pending.obj, pending.keyName && String(pending.keyName));
102+
let message = TRANSACTION_ENV.debugMessage(
103+
pending.obj,
104+
pending.keyName != null ? String(pending.keyName) : undefined
105+
);
103106
PENDING_SAME_FRAME_ASSERTIONS = null;
104107
assert(false, message);
105108
}

0 commit comments

Comments
 (0)