Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.1
-
None
-
Windows 7
Description
If you define a constant containing single quotes in the thrift IDL the resulting JS constants are not properly escaped.
Example:
test.thrift
const string test = "blah ' blub '' blahblahblubberblub''''''''"
gets compiled into
test_types.js
test = 'blah ' blub '' blahblahblubberblub''''''''';
instead it should result in
test_types.js - new
test = 'blah \' blub \'\' blahblahblubberblub\'\'\'\'\'\'\'\'';