From 2f7550bf2ea2c34474bc2ff2e986ed8c0e32ea0b Mon Sep 17 00:00:00 2001 From: lanyue-llk <270302213+lanyue-llk@users.noreply.github.com> Date: Sat, 10 Oct 2026 13:37:09 +0800 Subject: [PATCH] test(canvas): use the default runtime context --- moli-renderer-v8/src/script_vm/tests/canvas_fill_rect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moli-renderer-v8/src/script_vm/tests/canvas_fill_rect.rs b/moli-renderer-v8/src/script_vm/tests/canvas_fill_rect.rs index 11a734488b2..ccec434250e 100644 --- a/moli-renderer-v8/src/script_vm/tests/canvas_fill_rect.rs +++ b/moli-renderer-v8/src/script_vm/tests/canvas_fill_rect.rs @@ -34,7 +34,7 @@ fn canvas_fill_rect_registered_native_proxy_keeps_context_identity() { ctx.setTransform(1,0,0,1,20,10); ctx.fillStyle='red'; ctx.globalAlpha=.5;", ) .unwrap(); - let context_ptr = &vm.page_default_context as *const _; + let context_ptr = &vm.page_default_runtime.context as *const _; vm.with_context_scope_by_ptr_and_checkpoint_for_test(context_ptr, |scope, _| { let global = scope.get_current_context().global(scope); let key = crate::util::v8str(scope, "ctx");