Hi there,

I created a static file packer of sorts which looks at a file
dependency tree and flattens it such that each file is included and
cajoled only once, and such that files are ordered in descending order
from the root of the tree. I say "file," even though the cajoler
treats each file as its own module. Which is fine, that's not a
problem as far as I know, except for one thing: debug mode isn't
working properly.

For instance, when using setDebugMode(true), the output of my packer
is something like:

// File packed.js
// --------------------
// --- Including File foo.js ---
{
  ___.loadModule(function (___, IMPORTS___) {
                   ___.useDebugSymbols('/path/to/foo.js:34+42 -
35+39', 7);
                   var moduleResult___ = ___.NO_RESULT;
                   var $v = ___.readImport(IMPORTS___, '$v',{ ...
}
// --- Including File bar.js ---
{
  ___.loadModule(function (___, IMPORTS___) {
                   ___.useDebugSymbols('/path/to/bar.js:5+9 - 54+10',
26);
                   var moduleResult___ = ___.NO_RESULT;
                   var $v = ___.readImport(IMPORTS___, '$v',{ ...
}

When I include that from the browser, it errors out saying '___ reused
with different debug symbols'. It does, however, work, if I set debug
to false. My questions are:

a) What should I do so that debug symbols are "per module?"
b) Can I "reset" the symbols in ___ after each module loads so that
the check passes? (didn't see a way when perusing the source)
c) If you notice the path given to useDebugSymbols, it is actually an
absolute path which in my case reveals a little more server
information that I'd like. Is it possible to influence that string
without a brute postprocessing pass?

Many thanks for your help!

Regards,
    Al.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to 
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to