All done.
I'd like to understand when to use $Array/$Object and when to use [], {}. I
was
under the impression that the former were used to protect from
monkey-patching.
Let's talk about that at GVC.
Ok. Going "with semicolons" ;-)
On 2012/10/24 09:57:24, rossberg wrote:
On 2012/10/24 09:57:24, rossberg wrote:
> Nit: add "(implies harmony collections)"
Done.
Sadly, yes. This was necessary to prevent a side-channel.
On 2012/10/24 09:57:24, rossberg wrote:
On 2012/10/24 09:57:24, rossberg wrote:
> Nit: {} is clearer and potentially more efficient (same below).
Done.
On 2012/10/24 09:57:24, rossberg wrote:
> Nit: [callback] instead of invoking Array constructor.
Done.
AFAIC, The V8 implementation for Map & Set isn't complete. There's no
way yet to iterate over the keys of either.
On 2012/10/24 09:57:24, rossberg wrote:
You mean: unobserving something that isn't observed? Probably to be
consistent with existing listener patterns (e.g. DOM Event Listeners,
which also silently succeed even if the call had no effect).
On 2012/10/24 09:57:24, rossberg wrote:
On 2012/10/24 09:57:24, rossberg wrote:
> Line too long.
Done.
I asked Arv about this in the spec. He pointed out that its unnecessary.
E.g.
Number.prototype.type = 'updated';
var foo = 5;
foo.type; // 'updated';
On 2012/10/24 09:57:24, rossberg wrote:
On 2012/10/24 09:57:24, rossberg wrote:
> Preferable: changeRecord.type
Done.
On 2012/10/24 09:57:24, rossberg wrote:
> {}
Done.
On 2012/10/24 09:57:24, rossberg wrote:
> newRecord.object
Done.
https://codereview.chromium.org/11225058/diff/13001/test/mjsunit/harmony/object-observe.js#newcode30
test/mjsunit/harmony/object-observe.js:30: (function() {
On 2012/10/24 09:57:24, rossberg wrote:
> Nit: We don't usually turn test cases into iffies, since they are all
executed
> in a fresh environment anyway.
Done.
On 2012/10/24 09:57:24, rossberg wrote:
> Better reset callback count and test for 0. Otherwise it gets messy
when you
> refactor tests (similarly below).
Done.
Done.
Yeah. I think I'd like to add that in the next patch which will
implement prioritized delivery. Cool?