From 7baf64e67c7c88f736aff9a3329c69fe4723a137 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 6 Aug 2026 00:13:25 +0800 Subject: [PATCH] Update vm.c --- src/interpreter/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/vm.c b/src/interpreter/vm.c index ca2e182e..d8b0827d 100644 --- a/src/interpreter/vm.c +++ b/src/interpreter/vm.c @@ -195,7 +195,7 @@ void VM__ctor(VM* self) { INJECT_BUILTIN_EXC(SyntaxError, tp_Exception); INJECT_BUILTIN_EXC(RecursionError, tp_Exception); INJECT_BUILTIN_EXC(OSError, tp_Exception); - INJECT_BUILTIN_EXC(PermissionError, tp_OSError); + INJECT_BUILTIN_EXC(PermissionError, tp_Exception); INJECT_BUILTIN_EXC(NotImplementedError, tp_Exception); INJECT_BUILTIN_EXC(TypeError, tp_Exception); INJECT_BUILTIN_EXC(IndexError, tp_Exception);