pulumi/sdk
Joe Duffy 69f5882b97
Fix two closure bugs (#664)
This fixes two closure bugs.

First, we had special cased `__awaiter` from days of yore, when we had
special cased its capture.  I also think we were confused at some point
and instead of fixing the fact that we captured `this` for non-arrow
functions, which `__awaiter` would trigger, we doubled down on this
incorrect hack.  This means we missed a real bonafide `this` capture.

Second, we had a global cache of captured variable objects.  So, if a
free variable resolved to the same JavaScript object, it always resolved
to the first serialization of that object.  This is clearly wrong if
the object had been mutated in the meantime.  The cache is required to
reach a fixed point during mutually recursive captures, but we should
only be using it for the duration of a single closure serialization
call.  That's precisely what this commit does.

Also add a fix for this case.

This fixes pulumi/pulumi#663.
2017-12-07 16:21:28 -08:00
..
nodejs Fix two closure bugs (#664) 2017-12-07 16:21:28 -08:00
proto Return all computed inputs from Provider.Check. 2017-12-03 09:33:16 -08:00
README.md Clean up the READMEs 2017-09-11 13:18:09 -07:00

Pulumi Fabric SDKs

This directory contains the Pulumi Fabric SDKs, one for each supported language.

Please see the respective READMEs for information about installing and using these libraries: