Skip to content

Commit e5ea888

Browse files
committed
test(spec): mark the lower-case code fixture as source text, not an emitted error code
Claude-Session: https://claude.ai/code/session_01WGufzfyVQuRsL6SRGuKCem Co-authored-by: Claude <noreply@anthropic.com>
1 parent 78dc145 commit e5ea888

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/spec/src/data/hook-refusals.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ describe('hookRefusalCodesThrownIn — the save-time reading', () => {
133133
// an assignment on a name that is never thrown bare
134134
"const row = {}; row.code = 'ROW'; throw new Error('x');",
135135
// a lower-case value is never a refusal code
136+
// adr0112-ok: a fixture body's source text the save-time reader must NOT read as a code; nothing emits it
136137
"throw Object.assign(new Error('x'), { code: 'lower' });",
137138
// inside a comment or a string
138139
"// throw Object.assign(new Error(), { code: 'COMMENTED' });\nreturn;",

0 commit comments

Comments
 (0)