]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - parser/NodeConstructors.h
JavaScriptCore-1218.33.tar.gz
[apple/javascriptcore.git] / parser / NodeConstructors.h
index 47f6eea0927aac2a04cff958a2770cb95af1e207..b10a0787cf09d608a9b5ed88fe24038994aa390c 100644 (file)
@@ -521,7 +521,7 @@ inline ResolveNode::ResolveNode(const JSTokenLocation& location, const Identifie
     }
 
     inline LogicalOpNode::LogicalOpNode(const JSTokenLocation& location, ExpressionNode* expr1, ExpressionNode* expr2, LogicalOperator oper)
-        : ExpressionNode(location, ResultType::booleanType())
+        : ExpressionNode(location, ResultType::forLogicalOp(expr1->resultDescriptor(), expr2->resultDescriptor()))
         , m_expr1(expr1)
         , m_expr2(expr2)
         , m_operator(oper)