You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hmm... sure you defined C with var? Try this:

    (function() {
      var C = {
        foo : 42
      };
      exports.hello = function() { return C.foo+1; }
    })()
    

    Just done and it compiles to:

    (function(){exports.hello=function(){ret­urn 43}})();
    
About

Avatar for Gordon @Gordon started