mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
r7262: Add a length property to ARGV array.
(This used to be commit 4b775c619b
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b124351079
commit
d6555cadb7
@ -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*/
|
||||
|
Reference in New Issue
Block a user