summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-02-26 18:58:23 +0000
committerBram Moolenaar <Bram@vim.org>2023-02-26 18:58:23 +0000
commitc4e1b86cb0d88fa5ec1141d3c600e026dcc1bc21 (patch)
treea88b06484d645fbb3e397d9417617f449f98c9d1 /src/vim9.h
parent4f026ea9f1ad9db262f0dba522768c84e5ae37b4 (diff)
downloadvim-git-c4e1b86cb0d88fa5ec1141d3c600e026dcc1bc21.tar.gz
patch 9.0.1357: using null_object results in an internal errorv9.0.1357
Problem: Using null_object results in an internal error. (Ernie Rael) Solution: Add instructions for pushing an object and class. (closes #12044)
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 4df97c644..d9b25dae5 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -101,6 +101,8 @@ typedef enum {
ISN_PUSHFUNC, // push func isn_arg.string
ISN_PUSHCHANNEL, // push NULL channel
ISN_PUSHJOB, // push NULL job
+ ISN_PUSHOBJ, // push NULL object
+ ISN_PUSHCLASS, // push class, uses isn_arg.class
ISN_NEWLIST, // push list from stack items, size is isn_arg.number
// -1 for null_list
ISN_NEWDICT, // push dict from stack items, size is isn_arg.number
@@ -518,6 +520,7 @@ struct isn_S {
channel_T *channel;
job_T *job;
partial_T *partial;
+ class_T *class;
jump_T jump;
jumparg_T jumparg;
forloop_T forloop;