pulumi/sdk/nodejs/runtime
CyrusNajmabadi e7c0e4cdaa
Make many fixes to closure serialization (#944)
Make many fixes to closure serialization

Primary things that i've done as part of this change:

    Added support for cyclic objects.
    Properly serialize objects that are shared across different function. previously you would get multiple copies, now you properly reference the same copy.
    Remove the usages of 'hashes' for functions. Because we track identity of objects, we no longer need them.
    Serialize properties of functions (if they have any).
    Handle Objects/Functions with different __proto__s than normal. i.e. classes/constructors. but also anything the user may have done themselves to the object.
    Handle generator functions.
    Handle functions with 'computed' names.
    Handle functions with 'symbol' names.
    Handle serializing Promises as Promises.
    Removed the dual Closure/AsyncClosure tree. One existed solely so we could have a tree without promises (for use in testing maybe?). Because this all exists in a part of our codebase that is entirely async, it's fine to have promises in the tree, and to await them when serializing the Closure to a string.
    Handle serializing class-constructors and methods. Including properly handling 'super' calls.
2018-03-01 00:32:01 -08:00
..
native Make many fixes to closure serialization (#944) 2018-03-01 00:32:01 -08:00
closure.ts Make many fixes to closure serialization (#944) 2018-03-01 00:32:01 -08:00
config.ts Improve failure messages (#932) 2018-02-14 09:55:02 -08:00
debuggable.ts Treat unhandled promise rejections as uncaught exceptions. 2017-12-13 17:24:47 -08:00
index.ts Move language host logic from Node to Go (#901) 2018-02-10 02:15:04 +00:00
invoke.ts Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00
resource.ts Code review feedback: 2018-02-22 13:33:50 -08:00
rpc.ts Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00
settings.ts Improve failure messages (#932) 2018-02-14 09:55:02 -08:00
stack.ts Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00