noSuchMethod: "funargs" + "invoke-only-phantoms"
brendan at mozilla.com
Sat Dec 17 14:51:39 PST 2011
From: "Dmitry Soshnikov" <dmitry.soshnikov at gmail.com>
> On 17.12.2011 17:21, Herby Vojčík wrote:
> > Hello,
> > from my point the scenario that:
> > delete lib.toRussianName;
> > then it still:
> > typeof lib.toRussianName; // "function", Trollface ;D
> > is much more acceptable (it happens everyday - there are non-writable
> > properties everywhere),
> Yes, good point on non-configurable properties. So, we may justify this
> broken invariant with `delete' which becomes not so broken. it's good.
Not so fast: the result of the delete expression differs in the non-configurable case (false) from the no-such-property case (true).
More information about the es-discuss