DELSLICE should not push result

This commit is contained in:
K. Lange 2021-04-12 18:25:50 +09:00
parent 9098ae4f66
commit bdd5e3dcef

View File

@ -2235,7 +2235,7 @@ _finishReturn: (void)0;
case OP_INVOKE_DELSLICE: {
KrkClass * type = krk_getType(krk_peek(2));
if (likely(type->_delslice != NULL)) {
krk_push(krk_callSimple(OBJECT_VAL(type->_delslice), 3, 0));
krk_callSimple(OBJECT_VAL(type->_delslice), 3, 0);
} else {
krk_runtimeError(vm.exceptions->attributeError, "'%s' object is not sliceable", krk_typeName(krk_peek(2)));
}