summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-04-27 13:59:49 +0000
committerXavier Morel <xmo@odoo.com>2020-04-27 13:59:49 +0000
commitf08b5d22a4a39c3cb83585947506c0550b36f972 (patch)
treecc8df410aa444f9c6f583a291d13b5bdbffc203c /doc/reference/javascript_reference.rst
parent7b402c5e59282eb9100adede97e730cdc73da690 (diff)
[IMP] web: handling of escaping in literals
Handling of escapes (`\`) was performed during evaluation rather than parsing, so strings in the AST stored the escaped form (rather than the proper one), and _formatAST had to mess around in order to try and get it back into a semblance of relevance (especially as the AST would store the escaped string without delimiters). Fix: perform the escapes handling (aka normalisation) during tokenization where it belongs. This means the AST formatter can now just JSON.stringify the data. Until and unless we decide to produce a cpython-compliant repr (https://github.com/python/cpython/blob/0169d3003be3d072751dd14a5c84748ab63a249f/Objects/unicodeobject.c#L12902-L13006) which is unlikely. closes odoo/odoo#50236 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions