kevinbarabash / live-proxy

Live reloading for JavaScript + sand boxing.
http://kevinbarabash.github.io/live-proxy/
3 stars 0 forks source link

handle new class syntax #32

Open kevinbarabash opened 8 years ago

kevinbarabash commented 8 years ago

This is a little tricky because we can't rewrite FunctionExpressions that are the value of a MemberDefinition. This means we have to filter these out while continuing the rewrite the other FunctionExpressions. In order to get .toString() working correctly on methods we'll have to override the toString() methods immediately after the ClassDeclaration. An edge case that we'll have to deal with is ClassExpressions.

kevinbarabash commented 8 years ago

Updating the strokeWeight doesn't work with classes, try it using example_2a.js.