diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-28 12:56:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-28 12:56:23 -0700 |
commit | dd49d1d8b5a8585eeb2a475ac47f7bc1ac91cbed (patch) | |
tree | 80c3ec0d2e91bec94aac16de9fbc45a4459ce003 | |
parent | 45d77d16d66e25b3d90b259169e344124ce7049a (diff) |
prettyPrint bools as ints
-rw-r--r-- | src/runtime.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js index 9b52bbe4..5e3dcdcc 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -322,6 +322,7 @@ var Runtime = { prettyPrint: function(arg) { if (typeof arg == 'undefined') return '!UNDEFINED!'; + if (typeof arg == 'boolean') arg = arg + 0; if (!arg) return arg; var index = Runtime.printObjectList.indexOf(arg); if (index >= 0) return '<' + arg + '|' + index + '>'; |