summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-20 15:52:59 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-20 15:52:59 +0000
commit8c0a80087c42895b2b3fd899117df873fb96acbf (patch)
treed6cf92fe6fd34c24b2832e4d2770209a35186e18 /xfa/fxfa/fm2js
parentdd019e9e8144636c75111565af5b120cf9c0ef9b (diff)
downloadpdfium-8c0a80087c42895b2b3fd899117df873fb96acbf.tar.xz
[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 <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmparser.cpp6
1 files changed, 0 insertions, 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<CXFA_FMIdentifierExpression>(line,
- m_token.m_string);
- if (!expr || !NextToken())
- return nullptr;
- break;
case TOKnull:
expr = pdfium::MakeUnique<CXFA_FMNullExpression>(line);
if (!expr || !NextToken())