Commit Graph

13 Commits

Author SHA1 Message Date
pjh123 75f28f6e3e fix: class 生成器方法补 is_generator 标志,修正方法形态生成器语义 2026-08-16 11:44:20 +08:00
pjh123 0c6aa7fbef fix: 构造帧 super 状态改显式标志修复多层继承与 return 语义
derived 构造器 super 状态改由 CallFrame.super_called 显式标志承载,
取代依赖 regs[254] 值判定:多层继承中间 derived 帧由 SUPER_CALL 压入
this=构造对象,值判定三重失效(未调 super 不报错 / this-before-super
失效 / 合法 super() 误判 more-than-once)。父构造器正常返回经
construct_result_reg==Some(254) 识别置位调用方帧(该 ABI 不变量仅
SUPER_CALL 压帧满足),抛错走 unwind 不置位。

do_return 检查放宽为非对象返回值(含 undefined/null/原始值)且未调
super 时抛 ReferenceError(规范 §9.2.2.2),调过 super 回退构造 this。

super 构造器改取当前帧 callee 原型而非 newTarget 原型:newTarget 跨
SUPER_CALL 压帧保持为最外层类,取其原型在中间 derived 层解析回同一
父类导致无限压帧。
2026-08-16 01:23:52 +08:00
pjh123 7f7a8c3b66 test: 数值断言容忍 int 表示,类私有字段 for-in 用例补公有字段 2026-08-14 06:14:38 +08:00
爱特每羊队 d18b2adf08 fix: 私有字段 brand 检查 own 槽(字段不跨原型,规避 cell 值缺陷) 2026-08-10 11:23:52 +08:00
爱特每羊队 915dedb151 feat: class 私有成员语义(字段/方法/访问器 + brand 检查 + 契约修复) 2026-08-09 11:08:36 +08:00
爱特每羊队 38abdfd9ab feat: class 公有字段 define 语义 + computed key 类定义期求值一次 2026-08-09 09:35:24 +08:00
爱特每羊队 b797dcdec0 fix: native 调用保存/恢复 this 寄存器,避免方法内调用后 this 被 callee 覆盖 2026-06-30 16:12:42 +08:00
爱特每羊队 1b77028340 feat: 支持 class 私有字段与品牌检查 2026-06-17 08:56:58 +08:00
爱特每羊队 4fc73a4ed4 feat: 支持公开类字段和静态块 2026-06-17 08:20:52 +08:00
爱特每羊队 ed0864d01f feat: 支持访问器描述符与 get/set 语法 2026-06-09 16:22:24 +08:00
爱特每羊队 b2540f427b feat: 支持 class 静态方法与静态 super 2026-06-09 09:59:42 +08:00
爱特每羊队 5638638909 feat: 支持 class extends 与 super 调用 2026-06-09 09:51:34 +08:00
爱特每羊队 85e78bd248 feat: 支持基础 class 声明表达式与原型方法 2026-06-09 08:38:21 +08:00