Skip to content

Commit a135732

Browse files
committed
Fixed a setter issue that affects some unit tests too
1 parent 6ec69ff commit a135732

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/runtime/gravity_vm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ static bool gravity_vm_exec (gravity_vm *vm) {
630630
// check for special setter trick
631631
if (VALUE_ISA_CLOSURE(STACK_GET(r1))) {
632632
closure = VALUE_AS_CLOSURE(STACK_GET(r1));
633+
if (closure->f->tag == EXEC_TYPE_INTERNAL) r1copy = STACK_GET(rwin+1);
633634
SETVALUE(r1, r1copy);
634635
reset_r1 = true;
635636
goto execute_store_function;

src/shared/gravity_value.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
extern "C" {
6767
#endif
6868

69-
#define GRAVITY_VERSION "0.8.4" // git tag 0.8.4
70-
#define GRAVITY_VERSION_NUMBER 0x000804 // git push --tags
69+
#define GRAVITY_VERSION "0.8.5" // git tag 0.8.5
70+
#define GRAVITY_VERSION_NUMBER 0x000805 // git push --tags
7171
#define GRAVITY_BUILD_DATE __DATE__
7272

7373
#ifndef GRAVITY_ENABLE_DOUBLE

0 commit comments

Comments
 (0)