quad/.claude/audit/handtrace-round10-reference-impl/spikes/e1_errlevel.luau
qwreey d2d67c7aeb
qa: 10라운드 광범위 탐사 완료 — 발견 H-150~H-157 (🔴 0 / 🟡 5 / 🟢 3), §4 배치 문항 7건 회신 대기
- 신선한 탐사자(fable) 단일 컨텍스트, 지시서 -round10-brief.md §2 레인 A·C 완료, B 부분, D ALL PASS
- audit/handtrace-round10-reference-impl/: round7 참조 구현을 현재 계약으로 갱신·재실행
  (부수: round7/ref9 _recompute 첫 인자 오류 발견·정정)
- base/·인덱스 레이어는 미변경 — 결정은 사용자 배치 회신 뒤 -round10-followup.md로

Co-authored-by: qwreey <me@qwreey.moe>
Claude-Session: https://claude.ai/code/session_01546hjsYNLSMZdHdPyTZaGb
2026-08-28 01:03:05 +09:00

14 lines
586 B
Text

--!nocheck
-- quad 확정 의사코드는 전부 level 인자 없는 error(msg) — level 1이 기본
local Slot = {}
function Slot.Add(self, index) -- quad 내부(라이브러리) 코드
error("Slot:Add — index가 범위 밖(1..3): " .. tostring(index))
end
function Slot.AddL2(self, index)
error("Slot:Add — index가 범위 밖(1..3): " .. tostring(index), 2)
end
local ok1, e1 = pcall(function() Slot.Add(nil, 9) end) -- 사용자 코드 줄
local ok2, e2 = pcall(function() Slot.AddL2(nil, 9) end)
print("level 기본(1):", e1)
print("level 2 :", e2)