# HG changeset patch # User Atul Varma # Date 1245454982 25200 # Node ID 1f48075a404e8d541fc1e2c97fa91f3fbaeaa8fc # Parent d200a8158bd52a187edeaae45da6b4dc02bf339f changed tcb and sample module again diff -r d200a8158bd5 -r 1f48075a404e sample-module.js --- a/sample-module.js Fri Jun 19 15:25:32 2009 -0700 +++ b/sample-module.js Fri Jun 19 16:43:02 2009 -0700 @@ -3,5 +3,5 @@ } exports.foo = function foo() { - return imports.blop + " " + foo.caller + " " + boo(); + imports.print(imports.blop + " " + foo.caller + " " + boo()); }; diff -r d200a8158bd5 -r 1f48075a404e tcb.js --- a/tcb.js Fri Jun 19 15:25:32 2009 -0700 +++ b/tcb.js Fri Jun 19 16:43:02 2009 -0700 @@ -53,8 +53,10 @@ print(" " + name + ": " + scopeChain[name]); } -var module = require("sample-module.js", {blop: "hello"}); +var module = require("sample-module.js", {blop: "hello", print: print}); -print("module.foo() is " + module.foo()); +(function() { + print("module.foo() is " + module.foo()); + })(); var wrapped = wrap({}, {});