aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-22 14:27:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-22 14:27:40 -0700
commit8b320996e250b6ad85bc282942dfde6839ec800d (patch)
treed14c8ae052d1dd6174c3d61c60e6c94f48499647 /src/jsifier.js
parente65c9798d79e84385e9caeb79c6055881ad64087 (diff)
fix and improve LIBRARY_DEBUG
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 5ad1573b..221f5d36 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -400,7 +400,7 @@ function JSify(data, functionsOnly, givenFunctions) {
// 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 + ']"); ');
+ snippet = snippet.replace('{', '{ Module.printErr("[library call:' + ident + ': " + Array.prototype.slice.call(arguments) + "]"); ');
}
}