hasharray / revaluate.js

non destructive code revaluation
https://revaluate.js.org
2 stars 0 forks source link

WIP: Cache classes #16

Closed caspervonb closed 7 years ago

caspervonb commented 8 years ago

Each revaluation currently yields a new set of classes, since classes are stateless this kind-of looks okay but it means the connection between instances and classes are not there.

Since these classes share the same proxy functions, it looks like they are being updated but an instance of Robot created in a previous revaluation will not be an instanceof a later revaluated Robot class, which is just wrong behaviour since this means you cannot add or remove properties to instances.