From 5caa34c64382d8587a3ec3de5edbb30976b1390d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 6 Jun 2018 18:00:14 +0000 Subject: [fm2js] Fixup initialized variable conversion When converting a Var statement from formcalc to JS we would neglect to add the ; if the variable was initialized. This generated invalid JS as we'd end up with two statements smushed together. FormCalc: var s = "" Previous JS: var s = ""s = pfm.... New JS: var s = ""; s = pfm ... Bug: pdfium:1097 Change-Id: I8a869f07374cac68a06a487dace89699a4e5540c Reviewed-on: https://pdfium-review.googlesource.com/34110 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison Reviewed-by: Henrique Nakashima --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index d9db5a7877..d88c1d621b 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -2945,6 +2945,7 @@ test("pdfium_unittests") { "xfa/fwl/cfx_barcode_unittest.cpp", "xfa/fxfa/cxfa_ffbarcode_unittest.cpp", "xfa/fxfa/cxfa_textparser_unittest.cpp", + "xfa/fxfa/fm2js/cxfa_fmexpression_unittest.cpp", "xfa/fxfa/fm2js/cxfa_fmlexer_unittest.cpp", "xfa/fxfa/fm2js/cxfa_fmparser_unittest.cpp", "xfa/fxfa/fm2js/cxfa_fmsimpleexpression_unittest.cpp", -- cgit v1.2.3