diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-02 16:57:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-02 16:57:05 -0700 |
commit | fa9e495e4dcd5c433c74175974d7d0962aa10df6 (patch) | |
tree | 58a4697fe736ddde206dea96392cb9a3360d4bc8 /src/jsifier.js | |
parent | cb596dcd841e22143ae8fdb66c1356a7553b93f8 (diff) |
LIBRARY_DEBUG option
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 1c512581..f20bd680 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -314,6 +314,9 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { snippet = snippet.toString(); // name the function; overwrite if it's already named snippet = snippet.replace(/function(?:\s+([^(]+))?\s*\(/, 'function _' + ident + '('); + if (LIBRARY_DEBUG) { + snippet = snippet.replace('{', '{ print("[library call:' + ident + ']"); '); + } } var postsetId = ident + '__postset'; |