prepack/test
Herman Venter d2446b8de0 Promote empty to undefined for optimized function return values
Summary:
Release note: none

EmptyValue is a signal that the property that (might) have the value could in fact not actually be there. This matters when constructing objects at runtime, since code has to be emitted to deal with the case where the property will not be created at all, due to a runtime switch.

On the other hand, when the value of a missing property is *used*, it should be the undefined value. For that scenario, there is a promoteEmptyToUndefined on Value and this should be called before serializing empty values that are actually used.

This was not done for values returned from optimized functions. This PR plugs that hole.
Closes https://github.com/facebook/prepack/pull/1787

Differential Revision: D7776331

Pulled By: hermanventer

fbshipit-source-id: ebf8f5335e8ed3f6c557e00f3c88b08ccbd9c14d
2018-04-26 14:22:20 -07:00
..
error-handler Handle abstract conditional break inside definite for loop 2018-04-26 01:58:46 -07:00
node-cli Add minimal test case for the node-cli mode 2017-05-18 15:08:39 -07:00
react Fixes a bunch of serialization bugs 2018-04-26 14:22:19 -07:00
residual Partial evaluation of throw statements 2018-02-22 12:31:52 -08:00
serializer Promote empty to undefined for optimized function return values 2018-04-26 14:22:20 -07:00
source-maps Initial commit 2017-03-28 20:52:41 -07:00
std-in fix #1239 - Command-line based syntax errors now print location 2017-12-18 13:56:26 -08:00
test262@098f9ca3de Initial commit 2017-03-28 20:52:41 -07:00