Add missing isPure to abstract temporal (#2167)

Summary:
Release notes: none

This should have been added to my previous PR https://github.com/facebook/prepack/pull/2097 but I must have missed it.
Closes https://github.com/facebook/prepack/pull/2167

Differential Revision: D8641050

Pulled By: trueadm

fbshipit-source-id: c1a07c904bf8e6eed0af566a2ce6ff27f0863909
This commit is contained in:
Dominic Gannaway 2018-06-26 09:44:46 -07:00 committed by Facebook Github Bot
parent 8554d2d1ee
commit b66b3f5056

View File

@ -1318,6 +1318,7 @@ export class PropertiesImplementation {
let realmGenerator = realm.generator;
invariant(realmGenerator);
value = realmGenerator.deriveAbstract(value.types, value.values, value.args, value.getBuildNode(), {
isPure: true,
kind: "resolved",
// We can't emit the invariant here otherwise it'll assume the AbstractValue's type not the union type
skipInvariant: true,