117117import java .util .Map ;
118118import java .util .function .Consumer ;
119119
120- import com .oracle .js .parser .ir .ClassElement ;
121120import org .graalvm .collections .Pair ;
122121
123122import com .oracle .js .parser .ir .AccessNode ;
129128import com .oracle .js .parser .ir .CallNode ;
130129import com .oracle .js .parser .ir .CaseNode ;
131130import com .oracle .js .parser .ir .CatchNode ;
131+ import com .oracle .js .parser .ir .ClassElement ;
132132import com .oracle .js .parser .ir .ClassNode ;
133133import com .oracle .js .parser .ir .ContinueNode ;
134134import com .oracle .js .parser .ir .DebuggerNode ;
@@ -5848,7 +5848,6 @@ private ParserException invalidLHSError(final Expression lhs) {
58485848 * @return Expression node.
58495849 */
58505850 private Expression unaryExpression (boolean yield , boolean await , CoverExpressionError coverExpression ) {
5851- final int unaryLine = line ;
58525851 final long unaryToken = token ;
58535852
58545853 switch (type ) {
@@ -5860,7 +5859,7 @@ private Expression unaryExpression(boolean yield, boolean await, CoverExpression
58605859 throw error (AbstractParser .message (MSG_UNEXPECTED_TOKEN , type .getNameOrType ()));
58615860 }
58625861
5863- return verifyDeleteExpression (unaryLine , unaryToken , expr );
5862+ return verifyDeleteExpression (unaryToken , expr );
58645863 }
58655864 case VOID :
58665865 case TYPEOF :
@@ -5913,7 +5912,7 @@ private Expression unaryExpression(boolean yield, boolean await, CoverExpression
59135912 return expression ;
59145913 }
59155914
5916- private Expression verifyDeleteExpression (final int unaryLine , final long unaryToken , final Expression expr ) {
5915+ private Expression verifyDeleteExpression (final long unaryToken , final Expression expr ) {
59175916 if (expr instanceof BaseNode || expr instanceof IdentNode ) {
59185917 if (isStrictMode ) {
59195918 if (expr instanceof IdentNode ) {
@@ -5925,10 +5924,8 @@ private Expression verifyDeleteExpression(final int unaryLine, final long unaryT
59255924 throw error (AbstractParser .message (MSG_STRICT_CANT_DELETE_PRIVATE ), unaryToken );
59265925 }
59275926 }
5928- return new UnaryNode (unaryToken , expr );
59295927 }
5930- appendStatement (new ExpressionStatement (unaryLine , unaryToken , finish , expr ));
5931- return LiteralNode .newInstance (unaryToken , finish , true );
5928+ return new UnaryNode (unaryToken , expr );
59325929 }
59335930
59345931 private Expression verifyIncDecExpression (final long unaryToken , final TokenType opType , final Expression lhs , final boolean isPostfix ) {
0 commit comments