Ok, here is another attempt.
Digging back in history it seems that current AsUC16 behaves pretty much
like %k
used to behave. %k was almost exclusively used for by jsregexp printing code
(probably to make output compatible with dot file format and avoid 0 bytes
in
char* strings).
I think %k was (un)intentionally not reversible. It's a testing and
debugging
facility only after all so it would be fine with %k%k producing something
like
"\\0xa" which impossible to turn back into symbols (is it '\\'
and '0' 'x' 'a'
or '\' '\n', nobody knows).
I decided to introduce reversible encoding on the side leaving AsUC16
behave as
it is. After all for reversibility it is enough to guarantee that '\\' is
also
escaped as its character code.
Please take another look, Sven!
https://codereview.chromium.org/458533002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.