summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/ejs/smbscript.c')
-rw-r--r--source4/scripting/ejs/smbscript.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/ejs/smbscript.c b/source4/scripting/ejs/smbscript.c
index 43a9377143..4bde40a955 100644
--- a/source4/scripting/ejs/smbscript.c
+++ b/source4/scripting/ejs/smbscript.c
@@ -78,6 +78,7 @@ void ejs_exception(const char *reason)
argv_list = str_list_add(argv_list, argv[i]);
}
v = mprList("ARGV", argv_list);
+ mprSetPropertyValue(&v, "length", mprCreateIntegerVar(argc - 2));
mprCreateProperty(ejsGetGlobalObject(eid), "ARGV", &v);
/* load the script and advance past interpreter line*/