sass/node-sass — pull request #543 by am11 (2014-11-16 23:33:36+00:00)
Title: Binding: Refurbishes binding to use new API [DO NOT MERGE]

**This is a work in progress.**

Libsass is getting a new API. It doesn't replaces the current one, but renders it somewhat obsolete.

Thanks to @mgreter; the new API is a beauty! :+1:

I have managed to implement it as drop-in replacement to the existing one, by revamping the bindings and context-wrapper.

Status:

- [x] Update binding.gyp to acquire new code files.
- [x] Update context-wrapper to act like an interface as well as helper to our bindings: now compilation takes place from context-wrapper.
- [x] Update binding.cpp to abide by the new [API docs](https://github.com/mgreter/libsass/wiki/API-Documentation).
- [x] Make use of new JSON serialized errors (fixes https://github.com/sass/node-sass/issues/464 and https://github.com/sass/libsass/issues/235).
- [ ] Make sure the code is cleaned up, no memory leaks, remove unused header inclusions and keep code readable.
- [ ] Make sure all existing tests are passing.
- [ ] Once @mgreter's repo is merged and tag release is available rebase and pull libsass and sass-spec submodules.

The new API also fixed: https://github.com/sass/libsass/issues/634 and the corresponding node-sass test is updated and is passing.