changeset 7:1b374020485b

Added more code to sample securableModule
author Atul Varma <varmaa@toolness.com>
date Fri, 19 Jun 2009 09:34:09 -0700
parents 500e267ed094
children e14f496e6e08
files sample-module.js tcb.js
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sample-module.js	Fri Jun 19 09:33:13 2009 -0700
+++ b/sample-module.js	Fri Jun 19 09:34:09 2009 -0700
@@ -1,3 +1,3 @@
 exports.foo = function foo() {
-  return foo.caller;
+  return imports.blop + " "  + foo.caller;
 };
--- a/tcb.js	Fri Jun 19 09:33:13 2009 -0700
+++ b/tcb.js	Fri Jun 19 09:34:09 2009 -0700
@@ -32,7 +32,7 @@
   print(e);
 }
 
-var module = require("sample-module.js", {});
+var module = require("sample-module.js", {blop: "hello"});
 
 print("module.foo() is " + module.foo());