You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate cmp/math/regex stdlib to VM-native types; fix cross-type numeric equality
- regex.rs: replace interpreter Value with ndc_vm::value::Value in nums,
unsigned_nums, captures, capture_once — no bridge on the hot path
- cmp.rs: assert_eq/assert_ne take ndc_vm::value::Value directly
- math.rs: float() and int() match on VM Value patterns (Bool, Object::String,
to_f64/to_number); drop unused interpreter Sequence import
- value.rs: extend Value and Object PartialEq to handle cross-type numeric
comparisons via ndc_core::Number (e.g. Rational(5/1) == Int(5)), consistent
with the existing PartialOrd behaviour; latent bug exposed by assert_eq migration
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
0 commit comments