summaryrefslogtreecommitdiff
path: root/testprogs/ejs/resolveName.js
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs/resolveName.js')
-rw-r--r--testprogs/ejs/resolveName.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/testprogs/ejs/resolveName.js b/testprogs/ejs/resolveName.js
new file mode 100644
index 0000000000..c2d06b5c74
--- /dev/null
+++ b/testprogs/ejs/resolveName.js
@@ -0,0 +1,12 @@
+/*
+ Demonstrate use of resolveName() js function
+*/
+
+var result;
+res = resolveName(result, "frogurt");
+
+if (!res.is_ok) {
+ println(res.errstr);
+} else {
+ println(result);
+}