jwacs icon indicating copy to clipboard operation
jwacs copied to clipboard

Support ES5 getter / setter

Open bendlas opened this issue 7 years ago • 0 comments

Those can't be transpiled away, so it would be nice, if jwacs was able to deal with them. Options include:

  • Just CPS the etter function and let it trampoline
  • Leave the etter function alone
  • Instrument all candidate property accesses to the etter

Letting it trampoline doesn't seem like a good option, because it introduces unexpected pitfalls in case of asynchronous continuations, so just passing the etter through seems like a good first step.

Instrumenting all the property accesses would potentially incur a large overhead, especially in case of computed property names.

bendlas avatar Jun 12 '18 01:06 bendlas