Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.observe order of notification is incorrect #3671

Closed
ken107 opened this issue Nov 5, 2015 · 3 comments
Closed

Object.observe order of notification is incorrect #3671

ken107 opened this issue Nov 5, 2015 · 3 comments
Labels
v8 engine Issues and PRs related to the V8 dependency.

Comments

@ken107
Copy link

ken107 commented Nov 5, 2015

o = {a:0};
p = {b:0};
Object.observe(o, function(c) {console.log(c)});
Object.observe(p, function(c) {console.log(c)});
p.b++; o.a++;

This prints out:

[ { type: 'update', object: { a: 1 }, name: 'a', oldValue: 0 } ]
[ { type: 'update', object: { b: 1 }, name: 'b', oldValue: 0 } ]

If I pass the same function instance to both calls to Object.observe, then the order comes out correct.

@mscdex mscdex added the v8 engine Issues and PRs related to the V8 dependency. label Nov 5, 2015
@ChALkeR
Copy link
Member

ChALkeR commented Nov 5, 2015

сс @Fishrock123 for Object.observe. What's the current status?

@thefourtheye
Copy link
Contributor

As per this thread, the proposal will be withdrawn and v8 support will also be dropped by the end of the year.

After much discussion with the parties involved, I plan to withdraw the Object.observe proposal from TC39 (where it currently sits at stage 2 in the ES spec process), and hope to remove support from V8 by the end of the year (the feature is used on 0.0169% of Chrome pageviews, according to chromestatus.com).

@ken107
Copy link
Author

ken107 commented Nov 5, 2015

Thank you for the link, looks like I better start looking into Harmony Proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

No branches or pull requests

5 participants