From 49d57703fff1ab8541de0374d8c644f1cb9b6d3f Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 1 Feb 2023 20:54:28 +0800 Subject: [PATCH] Update vm.h --- src/vm.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vm.h b/src/vm.h index d97e9763..6cc429e0 100644 --- a/src/vm.h +++ b/src/vm.h @@ -835,9 +835,6 @@ public: _tp_range = new_type_object("range"); _tp_module = new_type_object("module"); _tp_ref = new_type_object("_ref"); - - new_type_object("NoneType"); - new_type_object("ellipsis"); _tp_function = new_type_object("function"); _tp_native_function = new_type_object("_native_function"); @@ -845,8 +842,8 @@ public: _tp_bounded_method = new_type_object("_bounded_method"); _tp_super = new_type_object("super"); - this->None = new_object(_types["NoneType"], DUMMY_VAL); - this->Ellipsis = new_object(_types["ellipsis"], DUMMY_VAL); + this->None = new_object(new_type_object("NoneType"), DUMMY_VAL); + this->Ellipsis = new_object(new_type_object("ellipsis"), DUMMY_VAL); this->True = new_object(_tp_bool, true); this->False = new_object(_tp_bool, false); this->builtins = new_module("builtins");