Re: Object.freezing proxies should freeze or throw?

2016-08-08 Thread Mark S. Miller
On Mon, Aug 8, 2016 at 1:35 PM, Tom Van Cutsem wrote: > Claude's additional example is indeed evidence that Object.freeze is not > to blame, but rather that the invariant checks of > [[GetOwnPropertyDescriptor]] and [[DefineOwnProperty]] are too weak. The > culprit is, as far

Re: Object.freezing proxies should freeze or throw?

2016-08-08 Thread Tom Van Cutsem
I just realized: since the tightened test is reading Desc.[[Writable]] but Desc can by any descriptor, we probably need to first check whether Desc is a DataDescriptor and disregard the writability test otherwise. 2016-08-08 22:35 GMT+02:00 Tom Van Cutsem : > Claude's

Re: Object.freezing proxies should freeze or throw?

2016-08-08 Thread Tom Van Cutsem
Claude's additional example is indeed evidence that Object.freeze is not to blame, but rather that the invariant checks of [[GetOwnPropertyDescriptor]] and [[DefineOwnProperty]] are too weak. The culprit is, as far as I can tell, that we re-used the state transitions allowed by DefineOwnProperty,

Re: Operating with arbitrary timezones

2016-08-08 Thread peter miller
On Fri, 05 Aug 2016 22:30:28 +0100, Tab Atkins Jr. wrote: Much of what follows is wanton pedantry, for which I apologise. ;) I would disagree. Time isn't useful without a point in space (space and time should be looked at as one thing, not two) and since the Date object

Re: Object.freezing proxies should freeze or throw?

2016-08-08 Thread Claude Pache
> Le 8 août 2016 à 11:02, Claude Pache a écrit : > > Here is another test case, with [[GetOwnPropertyDescriptor]]: > > ```js > var target = Object.seal({x: 2}); > var proxy = new Proxy(target, { >getOwnPropertyDescriptor(o, p) { >var d =

Re: Ignoring arguments

2016-08-08 Thread Cyril Auburtin
Just bumping this up Calling `foo(1)` where foo is defined with 3 arguments, lets the 2 others undefined, this behavior is already a bit magic and similar to the behavior of an array, so I still think foo(a,,b,,,c) should be like foo(...[a,,b,,,c]) Other example: ``` var m=new Map([[1], [2,],

Re: Object.freezing proxies should freeze or throw?

2016-08-08 Thread Claude Pache
Here is another test case, with [[GetOwnPropertyDescriptor]]: ```js var target = Object.seal({x: 2}); var proxy = new Proxy(target, { getOwnPropertyDescriptor(o, p) { var d = Reflect.getOwnPropertyDescriptor(o, p) if (d && 'writable' in d) d.writable = false

Re: Re: Try/catch conditional exceptions in light of generators

2016-08-08 Thread Vlad Fedosov
Hi! Is there is any way to push this proposal forward? ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss