1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/testprogs/ejs/resolveName.js
Tim Potter b124351079 r7261: Pass by reference is done in js via MPR_TYPE_OBJECT. Update argument
parsing and example for resolveName().
(This used to be commit 1a4a549317)
2007-10-10 13:17:33 -05:00

14 lines
194 B
JavaScript

/*
Demonstrate use of resolveName() js function
*/
var result = new Object();
res = resolveName(result, ARGV[0]);
if (res.is_ok) {
println(result.value);
} else {
println(res.errstr);
}