prepack/test
Herman Venter 0e460bdb09 Treat first operand of a logical operation as a condition
Summary:
Release note: Partially fixes #1182

When dealing with x || y and x && y where x is an abstract value, we can avoid evaluating x if it is known to be false in the first case and true in the second. When x is being refined with the path condition, it helps to know that the refined result will only be checked for truthiness. Duly add a call to Environment.GetConditionValue to make this happen.
Closes https://github.com/facebook/prepack/pull/1184

Differential Revision: D6420018

Pulled By: hermanventer

fbshipit-source-id: ec45808b0235cda896634c09940a8d20b318eb48
2017-11-27 16:41:38 -08:00
..
error-handler Allow required modules to throw conditionally 2017-10-30 13:00:01 -07:00
node-cli Add minimal test case for the node-cli mode 2017-05-18 15:08:39 -07:00
react/functional-components Fold functional component trees that have a class component as root 2017-11-16 05:23:48 -08:00
residual Partial evaluator for calls (#713) 2017-06-12 13:07:50 -07:00
serializer Treat first operand of a logical operation as a condition 2017-11-27 16:41:38 -08:00
source-maps Initial commit 2017-03-28 20:52:41 -07:00
std-in Change processSerializedCode func to receive error as 1st arg 2017-07-06 12:39:48 -07:00
test262@098f9ca3de Initial commit 2017-03-28 20:52:41 -07:00