Commit Graph

374 Commits

Author SHA1 Message Date
pjh123 d22c5dfcdb docs: 改写数组域注释并清除遗留乱码
改动点:
- array/common.rs:require_callback 文档与上一函数之间补空行,与同文件其余条目的空行分隔格式一致。
- array/immutable.rs:array_to_sorted、array_to_spliced 两处文档前补空行;删除 array_to_spliced 体内与文档重复的缺省规则注释,缺省规则由函数文档的「边界与前提」唯一承载。
- 派单清单所列数组面注释绝大多数已由数组工具族注释批次落地,本批补齐 toSpliced 文档去重与三处空行,纯注释零逻辑。
2026-09-17 12:55:04 +00:00
pjh123 4b080b6f63 docs: 改写字符串域注释并补正则工具文档
string/common.rs:文本通道节头改写为三载荷形态与两条匹配入口的范围单位约定,删依赖 crate 名与历史表述;to_value 文档由「物化/臂」改为「构造/变体」。
string/regex.rs:为 is_regexp_obj、builder_wrapper、make_match_done_result 补函数文档;string_raw 体内注释删除规范章节号,仅保留语义。
2026-09-17 12:50:15 +00:00
pjh123 aaad3786b7 docs: 修正数组助手与类型化数组的注释示例
改动点:
- array/common.rs 的 get_this_arraylike:消费者示例由实际不经过本助手的
  values/entries/keys/iterator 改为真实调用族,即遍历查找族、切片拼接族与
  不可变复制族。
- typed_array.rs 的 get_typed_array_data:对象指针为空分支从"接收者不兼容"
  移入"内部状态无效",与代码实际抛出的错误消息一致。

条件项:本批无新增可选 doc 补充,其余 16 处注释与上一提交保持一致。
2026-09-17 12:41:02 +00:00
pjh123 c9eef0f417 docs: 改写迭代器域注释黑话并补无文档函数 2026-09-17 12:37:40 +00:00
pjh123 10f0f74b76 docs: 补齐数组与对象工具族注释并清除乱码 2026-09-17 12:35:05 +00:00
pjh123 598ce98d4a refactor: array 模块收口定型骨架与子模块头 2026-09-17 12:27:24 +00:00
pjh123 51157473df refactor: array 不可变方法族拆出 immutable 模块 2026-09-17 12:18:48 +00:00
pjh123 a43054b919 refactor: array 排序与迭代协议拆出 sort_iterator 模块 2026-09-17 12:09:55 +00:00
pjh123 f2a1320810 refactor: array 迭代与查找族拆出 iterate 模块 2026-09-17 12:05:28 +00:00
pjh123 25bfe2d076 refactor: array element 族拆出 element 模块 2026-09-17 11:58:41 +00:00
pjh123 c509f78758 refactor: array from 族拆出 from 模块 2026-09-17 11:50:22 +00:00
pjh123 24f15d3a7c refactor: array 共享层拆出 common 模块 2026-09-17 11:26:34 +00:00
pjh123 4f940d9f00 docs: 修正 string 模块头消费路径表述 2026-09-17 11:15:13 +00:00
pjh123 7e5bc66689 refactor: array 单文件迁目录模块 2026-09-17 11:07:13 +00:00
pjh123 3129e87f55 refactor: string 模块拆分收口定型骨架 2026-09-17 11:05:03 +00:00
pjh123 a93d08779e refactor: string 正则族拆出 regex 模块 2026-09-17 10:59:00 +00:00
pjh123 cad52546d6 refactor: string 基础方法族拆出 basic 模块 2026-09-17 10:51:46 +00:00
pjh123 3c691ef4d6 refactor: string 共享层拆出 common 模块 2026-09-17 10:41:26 +00:00
pjh123 27f48a6e39 refactor: string 单文件迁目录模块 2026-09-17 10:34:28 +00:00
pjh123 0679c805b1 refactor: temporal 收口,构造层并入 common 并外移内联测试 2026-09-17 10:31:51 +00:00
pjh123 7f012c2119 refactor: temporal 年月与月日族拆出双模块 2026-09-17 10:22:45 +00:00
pjh123 b9e3886a30 refactor: temporal PlainDateTime 族拆出独立模块 2026-09-17 10:16:33 +00:00
pjh123 d41b2fe9ff refactor: temporal PlainTime 族拆出独立模块 2026-09-17 10:02:43 +00:00
pjh123 e1132b98ff refactor: temporal PlainDate 族拆出独立模块 2026-09-17 09:53:05 +00:00
pjh123 a1abdff61e refactor: temporal duration 族拆出独立模块 2026-09-17 09:40:09 +00:00
pjh123 9811b96ac8 refactor: temporal ZonedDateTime 族拆出独立模块 2026-09-17 09:30:12 +00:00
pjh123 abff09df3a refactor: temporal instant 层拆出独立模块 2026-09-17 09:21:20 +00:00
pjh123 d6f1943c92 refactor: temporal 差量层拆出独立模块 2026-09-17 08:32:50 +00:00
pjh123 e4207b41c0 refactor: temporal 字符串解析与算历层并入 common 2026-09-17 07:54:13 +00:00
pjh123 a83916c060 refactor: temporal 共享层拆出 common 模块 2026-09-17 06:37:03 +00:00
pjh123 a77f1c37f6 refactor: temporal 单文件迁目录模块 2026-09-17 05:52:51 +00:00
pjh123 1702aa9051 docs: json reviver 注释去重 2026-09-16 19:01:16 +00:00
pjh123 1e84522f42 docs: set 注释章节号清扫 2026-09-16 19:01:15 +00:00
pjh123 cc43022ece docs: error 注释黑话清扫 2026-09-16 19:01:15 +00:00
pjh123 c257d8a5c1 docs: bigint 注释黑话清扫 2026-09-16 19:01:15 +00:00
pjh123 026fb7e2c9 docs: date 英文注释改中文 2026-09-16 19:01:15 +00:00
pjh123 890c322a06 docs: number 注释黑话清扫 2026-09-16 19:01:15 +00:00
pjh123 eeba38de89 docs: 修正内置层模块头失效的占位特性清单 2026-09-16 19:01:15 +00:00
pjh123 0f5bd1577e fix: 字符串面 GetIterator 尊重用户 @@iterator 覆盖
String 臂此前对原始串与装箱串一律走码元步进、忽略用户覆盖的
@@iterator。改为按 GetMethod 语义以值自身为 receiver 读 @@iterator
(原始串落 String.prototype、装箱串读自身→原型链),默认迭代器
自别名即 @@iterator 槽本身、以绑定层捕获的函数指针比较走快速
路径避免递归回本臂;覆盖则调用、receiver 为值。peek 对非字符串
原始值先装箱再读 @@iterator;Iterator.from 增 GetIteratorFlattenable
前置校验,非字符串原始值非对象 → TypeError(不装箱)。
2026-09-15 02:18:12 +00:00
pjh123 92df76565b fix: 迭代可选入口对非空不可调用 @@iterator 抛错并实现 IsHTMLDDA 宿主值 2026-09-14 22:16:43 +00:00
pjh123 53da6ef817 fix: @@iterator 解析不到可调用时迭代可选入口回退 array-like 2026-09-14 19:45:52 +00:00
pjh123 eff4de358a style: rustfmt 折行同步 2026-09-14 17:42:30 +00:00
pjh123 c7ebcea305 fix: with reject 分支负分量先校验范围再截断 2026-09-14 17:41:05 +00:00
pjh123 d67e1469c1 fix: 迭代器快速路径尊重用户覆盖的 @@iterator 2026-09-14 17:35:40 +00:00
pjh123 954ceb2109 fix: PlainTime 构造器负时间分量改抛 RangeError 不再饱和归零 2026-09-14 16:31:51 +00:00
pjh123 91946f3fe3 fix: PlainDateTime 构造器显式 undefined 时间分量取默认值 2026-09-14 13:40:32 +00:00
pjh123 2760edfbb9 fix: PlainDate 与 PlainTime 构造器数字分量走 number-only 转换面 2026-09-14 13:29:58 +00:00
pjh123 d877e63cf1 fix: 全局对象成员写与删后镜像槽反向同步防裸读失步 2026-09-14 13:10:17 +00:00
pjh123 4284aed79a chore: 移除键域调试探针与死代码并修正动态源注释 2026-09-14 10:56:32 +00:00
pjh123 68d2974eb5 kernel/builtins/test262: 本批新码 clippy 三则 + fmt 归净——obfuscated_if_else(source_escape_to_key 值域判定改 if/else)、needless_range_loop(decode_uri_units 保留字符原样段改 extend_from_slice)、needless_borrows_for_generic_args(844f2f4 rename 调用两处冗余借用);fmt 漂移(compiler.rs/vm.rs 构造体折行)一并归净。七 crate clippy 零告警、fmt --check 净、七 crate 2879/1(唯一失败 compile_class_declaration 既有)、release 子集 8/8 + 2/2 终验 2026-09-14 08:18:38 +00:00