Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Parser.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 1 deletions
-rw-r--r--JSImpl/src/Parser.cpp3
diff --git a/JSImpl/src/Parser.cpp b/JSImpl/src/Parser.cpp
index 97ad735..4e1fbca 100644
--- a/JSImpl/src/Parser.cpp
+++ b/JSImpl/src/Parser.cpp
@@ -350,9 +350,10 @@ ExpressionPtr Parser::Unary()
TokenType::PlusPlus,
}))
{
+ auto op = Prev().Type;
auto ls = LeftSideExpression();
auto suffix = false;
- return IPLMakeSharePtr<UnaryExpression>(ls, Prev().Type, suffix);
+ return IPLMakeSharePtr<UnaryExpression>(ls, op, suffix);
}
else if (MatchOneOf({
TokenType::Void,