feat: 支持 JSON 成员方法

This commit is contained in:
2026-06-07 23:41:52 +08:00
parent 531d1f2ba0
commit fe1cce5fbe
8 changed files with 572 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::coercion;
use crate::native::NativeResult;
use crate::vm::Vm;
fn walk_own_keys(vm: &Vm, obj: &JsObject) -> Vec<(u32, u8)> {
pub(crate) fn walk_own_keys(vm: &Vm, obj: &JsObject) -> Vec<(u32, u8)> {
let mut keys: Vec<(u32, u8)> = Vec::new();
let shape_id = obj.shape_id();
let mut pos: u8 = 0;