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
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
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,
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
> 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 =
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,],
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
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
8 matches
Mail list logo