refactor: 重写 abstract_eq 为 ES §7.2.15 11 步算法

This commit is contained in:
2026-06-27 13:23:35 +08:00
parent f23d75a63e
commit 27b7e8ad29
5 changed files with 136 additions and 56 deletions
+6 -6
View File
@@ -830,27 +830,27 @@ impl Vm {
}
OpCode::EQ => {
self.dispatch_eq(rd, a, b);
self.dispatch_eq(rd, a, b)?;
}
OpCode::NEQ => {
self.dispatch_neq(rd, a, b);
self.dispatch_neq(rd, a, b)?;
}
OpCode::LT => {
self.dispatch_lt(rd, a, b);
self.dispatch_lt(rd, a, b)?;
}
OpCode::GT => {
self.dispatch_gt(rd, a, b);
self.dispatch_gt(rd, a, b)?;
}
OpCode::LTE => {
self.dispatch_lte(rd, a, b);
self.dispatch_lte(rd, a, b)?;
}
OpCode::GTE => {
self.dispatch_gte(rd, a, b);
self.dispatch_gte(rd, a, b)?;
}
OpCode::STRICT_EQ => {