Brendan Eich wrote:
Herby Vojčík wrote:
You need (need in the sense "having readable construct to perform")
.{...} with [[DefineOwnProperty]] not for "foo":"bar" (yes, there
[[Put]] should happen

No, again: JSON theft attack possible again with [[Put]]. Declarative
syntax is foo: bar. That means define not assign.

Sorry, but I never said that. Yes, I wrote it too dense, but I did not meant that, I meant "foo":"bar" is not the reason for which it was needed, there [[Put]] is desired bejaviour and .(foo="bar") is the right one to choose.

I never said .{"foo":"bar"} should do [[Put]].

), but for dynamically adding concise methods and/or getters/setters
to objects.

These need define, of course, but it's not correct to say that data
properties can use assign under :-separated object-literal(-based) syntax.

See above.

/be

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

Reply via email to