Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fixes #2295

Merged
merged 4 commits into from
Mar 17, 2018
Merged

Fixes #2295

merged 4 commits into from
Mar 17, 2018

Conversation

kkoopa
Copy link
Contributor

@kkoopa kkoopa commented Mar 17, 2018

Fixes #2293

@xzyfer
Copy link
Contributor

xzyfer commented Mar 17, 2018

Thank you for this

@xzyfer xzyfer merged commit 2558763 into sass:master Mar 17, 2018
ofrobots added a commit to ofrobots/node-sass that referenced this pull request Mar 19, 2018
This is an alternative to some of the fixes in [1].

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.

[1]: sass#2295
xzyfer pushed a commit that referenced this pull request Apr 4, 2018
This is an alternative to some of the fixes in [1].

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.

[1]: #2295
@ghost ghost mentioned this pull request Oct 22, 2018
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