Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

chakrashim: use microtask queue to run Promise#45

Merged
jianchun merged 1 commit into
nodejs:chakracore-masterfrom
jianchun:microtask
Mar 28, 2016
Merged

chakrashim: use microtask queue to run Promise#45
jianchun merged 1 commit into
nodejs:chakracore-masterfrom
jianchun:microtask

Conversation

@jianchun

Copy link
Copy Markdown

Previously we enqueue Promise callbacks with "process.nextTick". This
turns out incompatible with node/v8 and causing execution order
differences, breaking some Promise uses.

This change implements a micro task queue in each ContextShim and uses it
to run Promise callbacks
(read: nodejs/node-v0.x-archive#8325).

@jianchun

Copy link
Copy Markdown
Author

@nodejs/chakracore Please review. This fixed a module compatibility issue reported by @munyirik.

@agarwal-sandeep

Copy link
Copy Markdown
Contributor

Looks good to me

Previously we enqueue Promise callbacks with "process.nextTick". This
turns out incompatible with node/v8 and causing execution order
differences, breaking some Promise uses.

This change implements a micro task queue in each ContextShim and uses it
to run Promise callbacks
(read: nodejs/node-v0.x-archive#8325).

PR-URL: nodejs#45
Reviewed-By: Sandeep Agarwal <Agarwal.Sandeep@microsoft.com>
@jianchun

Copy link
Copy Markdown
Author

Thanks @agarwal-sandeep!

@jianchun jianchun merged commit b838007 into nodejs:chakracore-master Mar 28, 2016
@jianchun jianchun deleted the microtask branch March 28, 2016 20:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants