From e5d0558388a4aa542c8a94df690313a5683b5d09 Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Mon, 14 Sep 2026 16:35:47 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=E7=B1=BB=E5=8E=9F=E5=9E=8B=E6=96=AD?= =?UTF-8?q?=E8=A8=80=E6=9C=9F=E6=9C=9B=E5=90=8C=E6=AD=A5=20session=20?= =?UTF-8?q?=E7=9B=B4=E5=88=86=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/oxide_compiler/tests/compile_stmt_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxide_compiler/tests/compile_stmt_tests.rs b/crates/oxide_compiler/tests/compile_stmt_tests.rs index df481049..23e50013 100644 --- a/crates/oxide_compiler/tests/compile_stmt_tests.rs +++ b/crates/oxide_compiler/tests/compile_stmt_tests.rs @@ -269,10 +269,10 @@ fn compile_class_declaration_emits_constructor_and_prototype_setup() { module .bytecode .iter() - .filter(|&&i| opcode::opcode(i) == OpCode::NEW_OBJECT) + .filter(|&&i| opcode::opcode(i) == OpCode::NEW_SESSION_OBJECT) .count() >= 1, - "class should allocate a prototype object" + "class prototype should be allocated as a session object (identity stable across promotion)" ); assert!( module