diff --git a/lib/index.js b/lib/index.js index 92f105d7c..2e83c8d2b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,7 +4,6 @@ var path = require('path'), clonedeep = require('lodash/cloneDeep'), - assign = require('lodash/assign'), sass = require('./extensions'); /** @@ -288,7 +287,7 @@ module.exports.render = function(opts, cb) { // options.error and options.success are for libsass binding options.error = function(err) { - var payload = assign(new Error(), JSON.parse(err)); + var payload = Object.assign(new Error(), JSON.parse(err)); if (cb) { options.context.callback.call(options.context, payload, null); @@ -438,7 +437,7 @@ module.exports.renderSync = function(opts) { return result; } - throw assign(new Error(), JSON.parse(result.error)); + throw Object.assign(new Error(), JSON.parse(result.error)); }; /**