Hi all,

I'm trying to port a nodejs module called "sweet.js" into v8. I'm doing 
this by resolving the dependencies. Specifically, I'm replacing the calls 
to "require()" method of a module by replacing it with the actual code of 
the dependency.
e.g. Contents of "a.js"
var b=require('./b');

Contents of "b.js"
function(){
 console.log('inside b');
}

Now I replace the contents of "a.js" as -
var b=(function(){
             console.log('inside b');
            });

However, I got stuck when I tried to resolve circular dependencies. 
"require()" somehow takes care of resolving circular dependencies 
"silently" as it says in the docs.
Could anyone please shed some light regarding this?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/7427875a-11d5-4478-943e-a664613f9637%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to