less/less.js — pull request #2311 by ForbesLindesay (2014-11-26 15:11:01+00:00)
Title: Pass this from promise based calling

Fixes https://github.com/less/less-plugin-npm-import/issues/4

Plugins rely on the `this` context being correctly set for the render function, but it was not correctly set in the case of the promise code path. This fixes that so that it works correctly.