Comment #2 on issue 1868 by kpreid.switchb.org: Investigate minifier bug / upgrade JS processing libraries
http://code.google.com/p/google-caja/issues/detail?id=1868

The minifier doesn't mangle regexps, acorn, or escodegen directly. Rather, a minified escodegen will mangle regexps. Example, run from the console of http://localhost:8000/ant-testlib/com/google/caja/ses/test-ses-mitigation-min.html with upgraded acorn and escodegen:

JSON.stringify(exports.parse('/foo/;'))
"{"type":"Program","start":0,"end":6,"body":[{"type":"ExpressionStatement","start":0,"end":6,"expression":{"type":"Literal","start":0,"end":5,"value":{},"raw":"/foo/"}}]}"

This indicates acorn's tree output is OK.

exports.generate(exports.parse('/foo/;'))
"/ffoooo/;"

but escodegen's is not.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" 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/groups/opt_out.

Reply via email to