Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Oct 20, 2018

Support for node 10 involve a change for callback_bridge.h.
Adding node 10 caused the tests to fail. We debugged the code to find where the test fails exactly and followed changes that was made in node-saas. We haven't updated NaN package.

node-sass PR and the commit related to the change explanation:
Starting with Nan 2.9.0, we have the ability to propagate async context
across async hops. Certain variants of Nan::Callback::Call are now
deprecated to encourage use of the context presevering alternatives.
Certain variants of Node's MakeCallback that were used internally are
going to be deprecated in Node 10.

Summary is that one should use Nan::Call for sync calls, and
Nan::Callback::Call for async. The latter expects an async resource
corresponding to the async operation to be provided at the call time.

This patch fixes things up so that 1) node-sass isn't using any
deprecated APIs, and 2) properly propagates async context for async
callbacks by creating async resources in the appropriate places.

@franzese
Copy link

Node is on v12 now. Are there plans to merge this PR @mattolson ?

@junedkazi
Copy link

closing this in favor of #6

@junedkazi junedkazi closed this Sep 6, 2019
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

Successfully merging this pull request may close these issues.

2 participants