Source comments still say STRICT_REQUIRE raises "under strict" only; since #2502 it raises in every EIGS_STRICT state
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 88/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- c
调研方向
阅读 src/builtins.c:1652、src/builtins.c:1729、src/builtins.c:1798 和 src/ext_gfx.c:1289 中的四条注释,以及 src/eigenscript.h:1562-1568 中的 STRICT_REQUIRE 定义和 #2502 中的行为。更新注释,说明在所有 EIGS_STRICT 状态下都会引发 type_mismatch,然后运行 grep -nE 'raises? under strict' src/*.c src/*.h,并确认没有关于 STRICT_REQUIRE 或 ARG_GUARD 的注释描述仅在 strict 模式下发生的行为。
由索引模型根据 Issue 内容生成。
描述
Found while verifying #2409 during a stale-issue sweep against main at 98d15c5.
Since #2502 (fixed by #2510, 92b000fc), wrong-typed arguments raise type_mismatch in every EIGS_STRICT state. STRICT_REQUIRE (src/eigenscript.h:1562-1568) now calls rt_error(EK_TYPE, ...) unconditionally. Four comments above its uses still describe the old split behaviour:
src/builtins.c:1652: "so STRICT_REQUIRE: raise under strict, byte-identical otherwise."src/builtins.c:1729: "Coercion shape: raise under strict, unchanged otherwise."src/builtins.c:1798: "Coercion shape: raise under strict, unchanged otherwise."src/ext_gfx.c:1289: "so this raises under strict and does nothing otherwise."
(Line numbers at 98d15c5.) src/builtins.c:1139 also says "raise under strict decode", but it describes json_decode's own strict-decode flag, not this guard. It is out of scope here.
The macro's name says "strict" too, although it no longer depends on strictness. Renaming it is optional and can be decided in the PR.
Done when
- The four comments above describe the guard as raising
type_mismatchin everyEIGS_STRICTstate (#2502), or the guard's behaviour is changed to match them, with a decision recorded. -
grep -nE 'raises? under strict' src/*.c src/*.hlists no comment that describesSTRICT_REQUIREorARG_GUARDas strict-only. Thejson_decodestrict-decode comment atsrc/builtins.c:1139may remain.
- 主要语言
- C
- 星标
- 3
- 派生
- 7
- 平均合并
- 4 小时 33 分钟
- 30 天内合并 PR
- 156
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InauguralSystems/EigenScript 的其他 Issue
-
docs: EigenLua is labelled private in docs/CI.md and consumer_acceptance.sh, but the repo is public未关闭area:docs kind:bug
难度 2/5 1-3 小时 新手友好度 76/100
InauguralSystems/EigenScript#2602 ·
维护者通常 1 天内回复
-
area:gates kind:gate-defect
难度 2/5 1-3 小时 新手友好度 75/100
InauguralSystems/EigenScript#2591 · 1 条评论 ·
维护者通常 1 天内回复
-
area:stdlib kind:silent-wrong
难度 2/5 1-3 小时 新手友好度 78/100
InauguralSystems/EigenScript#2583 ·
维护者通常 1 天内回复
-
Freestanding pow: a negative-zero base loses its sign for odd exponents可能已有人在做 @InauguralPhysicist 今天认领。 未关闭area:embed kind:silent-wrong
难度 2/5 1-3 小时 新手友好度 78/100
InauguralSystems/EigenScript#2567 · 1 条评论 ·
维护者通常 1 天内回复
-
EIGS_SEED_RANDOM: no test pins a seed outside 32 bits可能已有人在做 @InauguralPhysicist 今天认领。 未关闭area:gates kind:docs-drift kind:gate-defect
难度 2/5 1-3 小时 新手友好度 78/100
InauguralSystems/EigenScript#2566 · 1 条评论 ·
维护者通常 1 天内回复
查看 InauguralSystems/EigenScript 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
Polprzewodnikowy/N64FlashcartMenu#486 · 3 条评论 ·
-
category:port-update
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 2 天内回复
-
crash
难度 2/5 1-3 小时 新手友好度 64/100