Escape null characters as \x00
authorVille Lautanala <lautis@gmail.com>
Mon, 3 Jun 2013 17:18:42 +0000 (20:18 +0300)
committerVille Lautanala <lautis@gmail.com>
Mon, 3 Jun 2013 17:46:42 +0000 (20:46 +0300)
commitf29f07aabd9d9f67ef7b826abb949262033d9273
tree6ebb73f79344cf2733ee210aa5757b9ff70dbbf6
parent188e28efd7fa45711be5ced62b04da13511feb8b
Escape null characters as \x00

Since \0 might be mistakenly interpreted as octal if followed by a
number and using literal null is in some cases interpreted as end of
string, escape null as \x00.
lib/output.js