diff --git a/include/pocketpy/pocketpy.h b/include/pocketpy/pocketpy.h index 45fd864c..38b18d4a 100644 --- a/include/pocketpy/pocketpy.h +++ b/include/pocketpy/pocketpy.h @@ -867,6 +867,7 @@ enum py_PredefinedType { tp_SyntaxError, tp_RecursionError, tp_OSError, + tp_PermissionError, tp_NotImplementedError, tp_TypeError, tp_IndexError, diff --git a/src/interpreter/vm.c b/src/interpreter/vm.c index dd4d7acb..ca2e182e 100644 --- a/src/interpreter/vm.c +++ b/src/interpreter/vm.c @@ -195,6 +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(NotImplementedError, tp_Exception); INJECT_BUILTIN_EXC(TypeError, tp_Exception); INJECT_BUILTIN_EXC(IndexError, tp_Exception);