> function Point(x, y) {
>    const self = Object.create(Point.prototype, {
>        toString: {value: Object.freeze(function() ('<' + self.getX()
> + ',' + self.getY() + '>'))},
>            enumerable: true},
>        getX: {value: Object.freeze(function() x),
>            enumerable: true},
>        getY: {value: Object.freeze(function() y),
>            enumerable: true}
>    }, true);
>    return self;


Why do you freeze the functions? Is this just to cater to mutable function 
critics, or is there actually a reason tied class semantics?

Kris 

_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to