mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
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:
parent
8554d2d1ee
commit
b66b3f5056
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user