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]: https://github.com/sass/node-sass/pull/2295
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| libsass | Loading commit data... | |
| sass_types | Loading commit data... | |
| binding.cpp | Loading commit data... | |
| callback_bridge.h | Loading commit data... | |
| create_string.cpp | Loading commit data... | |
| create_string.h | Loading commit data... | |
| custom_function_bridge.cpp | Loading commit data... | |
| custom_function_bridge.h | Loading commit data... | |
| custom_importer_bridge.cpp | Loading commit data... | |
| custom_importer_bridge.h | Loading commit data... | |
| libsass.gyp | Loading commit data... | |
| sass_context_wrapper.cpp | Loading commit data... | |
| sass_context_wrapper.h | Loading commit data... |