mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
9013a07272
as_string 由兜底转换改 Result 化:Symbol 与其余转换失败抛 TypeError,对象 ToString 抛出的原生异常经 take_uncaught_value 原样传播,不再静默降级为空串/占位文本。17 处调用点统一经 try_string! 抛错。 indexOf/includes/startsWith/endsWith/lastIndexOf 删除缺参短路: searchString 缺省按 ToString(undefined)="undefined" 参与查找, 'undefined'.indexOf() 现得 0。 类正则对象(Object.create(RegExp.prototype))默认 toString 抛 TypeError 的 replace/split 用例随异常传播行为更新断言。