Reviewed by
[WebKit-https.git] / JavaScriptCore / kjs / grammar.y
index d00d42aa2741717bfcf3b2401ffac9cbd8cb36b7..1c92f683cb5a3ac9d35857fe7693dbca4262271b 100644 (file)
@@ -239,7 +239,7 @@ PrimaryExprNoBrace:
   | Literal
   | ArrayLiteral
   | IDENT                               { $$ = new ResolveNode(*$1); }
-  | '(' Expr ')'                        { $$ = $2->isResolveNode() || $$ = $2->isGroupNode() ?
+  | '(' Expr ')'                        { $$ = ($2->isResolveNode() || $2->isGroupNode()) ?
                                             $2 : new GroupNode($2); }
 ;