From 8c0a80087c42895b2b3fd899117df873fb96acbf Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 20 Feb 2018 15:52:59 +0000 Subject: [formcalc] The if token is a keyword and should not be made an identifier This CL removes the code from PrimaryExpression which converts the if token into an indentifier. if() is a reserved keyword and can't be used as an indentifier according to the spec. Change-Id: I5644cdbe57ef62f4089b4704e1b8d196927e68a4 Reviewed-on: https://pdfium-review.googlesource.com/27370 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- xfa/fxfa/fm2js/cxfa_fmparser.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xfa/fxfa/fm2js/cxfa_fmparser.cpp b/xfa/fxfa/fm2js/cxfa_fmparser.cpp index 7add9888f8..93fa44fedd 100644 --- a/xfa/fxfa/fm2js/cxfa_fmparser.cpp +++ b/xfa/fxfa/fm2js/cxfa_fmparser.cpp @@ -628,12 +628,6 @@ CXFA_FMParser::ParsePrimaryExpression() { } break; } - case TOKif: - expr = pdfium::MakeUnique(line, - m_token.m_string); - if (!expr || !NextToken()) - return nullptr; - break; case TOKnull: expr = pdfium::MakeUnique(line); if (!expr || !NextToken()) -- cgit v1.2.3