Marco Bambini 4 年之前
父節點
當前提交
4eea7255f4
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 2 3
      src/runtime/gravity_core.c
  2. 2 2
      src/shared/gravity_value.h

+ 2 - 3
src/runtime/gravity_core.c

@@ -1691,9 +1691,8 @@ static bool class_exec (gravity_vm *vm, gravity_value_t *args, uint16_t nargs, u
         mem_free(c->superlook);
         c->superlook = NULL;
         c->superclass = super;
-    }
-    
-    if (c->superclass) {
+        
+        // force superclass initialization
         STATICVALUE_FROM_STRING(key, GRAVITY_INTERNAL_EXEC_NAME, strlen(GRAVITY_INTERNAL_EXEC_NAME));
         gravity_closure_t *super_closure = gravity_class_lookup_closure(gravity_class_get_meta(c->superclass), key);
         if (super_closure) RETURN_CLOSURE(VALUE_FROM_OBJECT(super_closure), rindex);

+ 2 - 2
src/shared/gravity_value.h

@@ -66,8 +66,8 @@
 extern "C" {
 #endif
 
-#define GRAVITY_VERSION						"0.8.3"     // git tag 0.8.3
-#define GRAVITY_VERSION_NUMBER				0x000803    // git push --tags
+#define GRAVITY_VERSION						"0.8.4"     // git tag 0.8.4
+#define GRAVITY_VERSION_NUMBER				0x000804    // git push --tags
 #define GRAVITY_BUILD_DATE                  __DATE__
 
 #ifndef GRAVITY_ENABLE_DOUBLE