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

MessageChannel and setTimeout execution order is unstable #10420

Closed
XiaoDHuang opened this issue Aug 22, 2019 · 1 comment
Closed

MessageChannel and setTimeout execution order is unstable #10420

XiaoDHuang opened this issue Aug 22, 2019 · 1 comment

Comments

@XiaoDHuang
Copy link

Version

2.5.13

Reproduction link

https://codepen.io/hddgithub02/pen/GRKNzjP?editors=1111

Steps to reproduce

chrome 49.0.2623.75

What is expected?

nextTick 早于 setTimeout

What is actually happening?

实际结果两个调用顺序不稳定


chrome 49.0.2623.75 此版本浏览器已经确认支持Promise API 测试一下跟 MessageChannel 与setTimeout 异步有关

@haoqunjiang
Copy link
Member

在 2.6 里我们已经不再使用 MessageChannel 实现 nextTick 了 #8450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants