Commit Graph

597 Commits

Author SHA1 Message Date
爱特每羊队 d5b45d5b24 fix: Temporal PlainDate/PlainDateTime.from 表示范围边界、leap second、constrain 下限与实例转换 2026-08-12 14:17:28 +08:00
爱特每羊队 1a4663dcab fix: class 方法/访问器/constructor/prototype 属性描述符(非枚举/只读),新增 DEFINE_PROP_ATTRS/DEFINE_ACCESSOR_ATTRS
- opcode.rs/inst.rs/contract.rs/vm.rs/vm_dispatch_ctrl.rs:新增两个带 attrs 扩展字的 define 指令
  (attrs bit0=writable, bit1=enumerable, bit2=configurable,与 PropAttributes 一致)
- class/method.rs:方法与非计算访问器改按规范非枚举安装(DefineMethod 语义)
- class/prototype.rs:proto.constructor 非枚举;ctor.prototype 三标志全 false(MakeConstructor)
- 效果:language/statements/class 1782 pass/948 fail -> 1910 pass/716 fail(+128/-232)
2026-08-12 14:11:02 +08:00
爱特每羊队 5726d4126b feat: Temporal PlainDate 字符串走 ParseTemporalDateString(注解/UTC/小数位/分数分钟校验),property bag 支持 monthCode 与日历标识符解析 2026-08-12 13:49:58 +08:00
爱特每羊队 20486cd615 fix: PlainDate/PlainDateTime until/since 月分解 days 计算(current 保持真实钳制日期,锚定日只用于越界比较) 2026-08-12 13:31:15 +08:00
爱特每羊队 9a0ab79711 feat: PlainDate/PlainDateTime until/since 舍入选项(roundingMode/roundingIncrement/smallestUnit,GetDifferenceSettings 对齐) 2026-08-12 13:26:10 +08:00
爱特每羊队 cc78e6b28f fix: ArraySetLength 收缩遇不可配置元素静默失败、ToPrimitive 异常透传与既有属性描述符缺省回填
- arr.length 收缩时若 [newLen, oldLen) 内存在不可配置元素,整个收缩失败且不做任何修改(sloppy 赋值静默 no-op),不再抛错或截断
- length 赋值 ToPrimitive(valueOf/toString)抛错时按主 dispatch 约定直接返回,避免二次抛 RangeError 覆盖原异常(S15.4.5.1_A1.3_T2)
- Object.defineProperty/defineProperties/create 对已有属性省略描述符字段时保持现有属性值(无显式 meta 按 DEFAULT_DATA 回填),修复 toReversed/toSorted/toSpliced/with length-decreased-while-iterating
2026-08-12 13:07:32 +08:00
爱特每羊队 dc023b2637 fix: 数组 length 赋值 ArraySetLength 语义与超长逻辑长度(a.length 读取/收缩校验/空洞同步) 2026-08-12 12:52:02 +08:00
爱特每羊队 3e8cf3eb23 fix: Array 方法 array-like receiver/Get 异常传播、species 构造、slice/toSpliced/toSorted 规范化,数组字面量空洞语义 2026-08-12 12:51:28 +08:00
爱特每羊队 3e61b573db feat: 新增 Symbol.species well-known symbol 绑定(Symbol.species 解析/键槽/内建对象) 2026-08-12 12:50:53 +08:00
爱特每羊队 291250f3e6 feat: BigInt bitwise operators with ToNumeric semantics 2026-08-12 11:27:50 +08:00
爱特每羊队 ee9a9e12b8 fix: object-to-primitive conversion errors propagate through native builtins 2026-08-12 11:27:40 +08:00
爱特每羊队 c9b05ecc45 feat: PlainDate equals/compare 字符串参数经 date_like_ymd 转换并做 ISO 范围校验 2026-08-12 10:47:43 +08:00
爱特每羊队 bf3a0ff0da fix: PlainDate until/since 全范围 ISO 日期,civil 日计数 + 范围校验,修复全量运行崩溃 2026-08-12 10:47:32 +08:00
爱特每羊队 c4fda0f883 engine: ToPropertyKey via ToPrimitive, Symbol keys/description, catchable conversion errors 2026-08-12 09:59:56 +08:00
爱特每羊队 18eb6ef8ab feat: add Array entries/keys/findLastIndex/toSorted/toReversed/toSpliced/with 2026-08-12 03:42:42 +08:00
爱特每羊队 998327aa7e feat: BigInt.prototype[Symbol.toStringTag] = "BigInt"
Adds the well-known @@toStringTag data property (writable:false,
enumerable:false, configurable:true) so Object.prototype.toString and
property descriptors match the spec. Remaining built-ins/BigInt failure
(Symbol.toStringTag.js verifyProperty) is blocked on String(Symbol)
support in the Symbol track.
2026-08-12 03:41:22 +08:00
爱特每羊队 b844505ec7 fix: BigInt SUB/MUL with 0n no longer raise Division by zero
binary_arith! applied an unconditional is_zero() guard, so x - 0n and
x * 0n (and wrapped-object variants) incorrectly threw RangeError.
Only DIV/MOD legitimately reject BigInt zero divisors; SUB/MUL must
compute normally. test262 language/expressions/subtraction:
29/6 -> 30/5 (bigint-arithmetic now passes).
2026-08-12 03:30:03 +08:00
爱特每羊队 f3c37911f7 feat: arbitrary-precision BigInt via num-bigint (literals, arithmetic, toString, asIntN/asUintN) 2026-08-12 03:15:18 +08:00
爱特每羊队 ca293a57e9 fix: Object.prototype.toString tags for Math/JSON/Arguments 2026-08-12 02:29:40 +08:00
爱特每羊队 28477a3e47 feat: BigInt constructor ToPrimitive semantics, toString(radix), asIntN/asUintN; ctor [[Prototype]]=Function.prototype 2026-08-12 02:23:27 +08:00
爱特每羊队 ff9958d78b test262: unskip BigInt feature tests now that minimal BigInt exists 2026-08-12 01:40:18 +08:00
爱特每羊队 6afeaafb54 feat: implement PlainDateTime until/since with spec rounding semantics 2026-08-12 01:18:34 +08:00
爱特每羊队 ed8c76c60f feat: implement PlainDateTime add/subtract arithmetic 2026-08-11 23:14:42 +08:00
爱特每羊队 d1d85ffe4f feat: implement PlainDateTime toString options and ISO range parsing 2026-08-11 23:07:41 +08:00
爱特每羊队 ed90ebd4e4 feat: implement Temporal PlainDateTime conversion and serialization 2026-08-11 22:29:00 +08:00
爱特每羊队 e6627b02f1 feat: implement Temporal PlainDateTime foundation 2026-08-11 21:32:15 +08:00
爱特每羊队 5ec0dc2b7d feat: implement Temporal Instant zoned conversion 2026-08-11 20:54:25 +08:00
爱特每羊队 a9e194f2c6 feat: implement Temporal Instant serialization 2026-08-11 19:14:24 +08:00
爱特每羊队 6b00eaaf06 feat: implement Temporal Instant differences 2026-08-11 18:22:21 +08:00
爱特每羊队 d443808d96 fix: synchronize nested builtin register mappings 2026-08-11 18:06:42 +08:00
爱特每羊队 67c6d3a53a fix: preserve high template expression registers 2026-08-11 17:17:30 +08:00
爱特每羊队 e049a8df5d feat: implement Temporal Instant round 2026-08-11 16:57:53 +08:00
爱特每羊队 3839e18c0f fix: capture destructured function parameters 2026-08-11 16:57:13 +08:00
爱特每羊队 756d6b8e1b feat: implement precise Temporal Instant arithmetic 2026-08-11 15:55:05 +08:00
爱特每羊队 4c42112c51 feat: implement precise Temporal Instant factories 2026-08-11 15:21:28 +08:00
爱特每羊队 ec2efa7b6b fix: capture object keys and scope loop bindings 2026-08-11 14:17:45 +08:00
爱特每羊队 925ca358e9 fix: validate Temporal duration inputs 2026-08-11 13:11:51 +08:00
爱特每羊队 d7a63a0d54 feat: implement Temporal duration and plain date differences 2026-08-11 12:38:31 +08:00
爱特每羊队 1a7cef45d9 fix: support high register slots in register allocation 2026-08-11 12:37:56 +08:00
爱特每羊队 4bac4640c6 feat: Temporal ISO 日期解析器(basic/extended/扩展年)与 harness 解锁 2026-08-11 00:20:45 +08:00
爱特每羊队 ada4b23844 fix: builtin 槽恒等预着色号 >253 时改分配自由色,修复大函数晚引用全局报 too many registers 2026-08-11 00:19:29 +08:00
爱特每羊队 51da7ed3d9 feat: 新增 DEFINE_ACCESSOR_DYNAMIC opcode 支持计算键对象访问器 2026-08-10 23:28:18 +08:00
爱特每羊队 7e3d7b43b5 feat: 实现最小 BigInt 子集(字面量/算术/比较/构造器,Temporal 前置) 2026-08-10 23:02:31 +08:00
爱特每羊队 46b60ff003 feat: Temporal 解锁 + PlainDate 补齐日期派生字段与 add/subtract/equals/compare 2026-08-10 21:23:00 +08:00
爱特每羊队 7055ef1fbb fix: 块级 let/const/class 预声明 + TDZ 读取运行时抛 ReferenceError 2026-08-10 21:07:39 +08:00
爱特每羊队 717e927057 fix: 异常兜底路径经 create_from_text 恢复错误类型(不塌缩普通 Error) 2026-08-10 20:19:51 +08:00
爱特每羊队 e8506e6f29 fix: Object 内置方法 ToObject 装箱(原始值不再误抛 TypeError) 2026-08-10 20:08:40 +08:00
爱特每羊队 069e8920c4 fix: await 经 promise_resolve 按 constructor 查询包装被等待值 2026-08-10 20:00:52 +08:00
爱特每羊队 1765d567a1 feat: Temporal 最小子集(Temporal.Now/Instant/PlainDate/PlainTime) 2026-08-10 18:18:39 +08:00
爱特每羊队 d3ed1113ef feat: 编译管线/类型层 crate 补全多级日志宏 + 关键路径日志 2026-08-10 17:56:28 +08:00