diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-24 12:02:42 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-24 12:02:42 -0800 |
commit | 64c779641a2a9587613cc65ad7251890f18e25c3 (patch) | |
tree | 87344a57db509e92b3196e5a4291a8c3bd8c2449 /src/utility.js | |
parent | 4e09482e006eda934527e1707036d74245d8dd91 (diff) | |
parent | 03e2e6c321d28e3df3b37a2c0bed3ba9d04e52b3 (diff) |
Merge branch 'incoming'
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 6 |
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; } } |