aboutsummaryrefslogtreecommitdiff
path: root/src/utility.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility.js')
-rw-r--r--src/utility.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js
index 63582ae8..8db37c61 100644
--- a/src/utility.js
+++ b/src/utility.js
@@ -10,6 +10,10 @@ function safeQuote(x) {
function dump(item) {
try {
+ if (typeof item == 'object' && item !== null && item.funcData) {
+ var funcData = item.funcData;
+ item.funcData = null;
+ }
return '// ' + JSON.stringify(item, null, ' ').replace(/\n/g, '\n// ');
} catch(e) {
var ret = [];
@@ -22,6 +26,8 @@ function dump(item) {
}
}
return ret.join(',\n');
+ } finally {
+ if (funcData) item.funcData = funcData;
}
}