feat: 补充 VM 对象相关字节码执行逻辑

This commit is contained in:
爱特每羊队
2026-06-05 17:59:13 +08:00
parent cc76f190c1
commit a0d7efccda
2 changed files with 34 additions and 2 deletions
+1 -2
View File
@@ -2,8 +2,6 @@ use crate::value::JsValue;
pub type ShapeId = u32;
pub const EMPTY_SHAPE_ID: ShapeId = 0;
/// Layout:
/// header: u32 bits
/// [0:23] shape_id
@@ -178,6 +176,7 @@ impl JsObject {
#[cfg(test)]
mod tests {
use super::*;
use crate::shape::EMPTY_SHAPE_ID;
#[test]
fn object_size_64_bytes() {