-
Notifications
You must be signed in to change notification settings - Fork 14
Description
This issue is the follow up of ibm-js/delite#402
@asudoh said:
Guessing @clmath is using node.js 0.8, where setImmediate() is not available. Create a PR adding process.nextTick() support to decor/schedule to cope with that. Also - setImmediate() runs after painting, etc. stuffs happens, whereas end-of-microtask queue like process.nextTick() and Mutation Observer callbacks runs before painting, etc. stuffs - Which means process.nextTick() is much closer to Object.observe() spec than setImmediate() is.
Actually I am using node v0.10.33. I have checked and setImmediate()
is available.
The problem is that the has
plugin is set to not execute feature tests during the build since they could lead to incorrect modules inclusion in the layer.
So has("setImmediate")
is always false during the build even on node v0.10.33.
So maybe a quick fix can be to have a typeof window !== "undefined"
check before accessing window.