thin-wrap
Thin Class Wrapper (experimental)
{ console; return newTarget ? Reflect : f;};;
Install
Browsers
bower install --save thin-wrap
NodeJS
npm install --save thin-wrap
Import
Browsers
NodeJS
const wrap = ;
API
TBD
Advantages
- Small overheads (Significantly faster than ES6 Proxy)
this
is unique and identical for each instance
Known Limitations
Architectural Limitations
Class !== Class.prototype.constructor
new Class()
is not trackablenew Class.prototype.constructor()
ornew (wrap(Class))()
is trackable- Properties without setter/getter are not trackable
Current Design Limitations
- Inherited properties are not tracked
- Generation of setter/getter for properties are not implemented